CompletedSynchronizationState Class

  • java.lang.Object
    • com.azure.search.documents.knowledgebases.models.CompletedSynchronizationState

Implements

public final class CompletedSynchronizationState
implements JsonSerializable<CompletedSynchronizationState>

Represents the completed state of the last synchronization.

Constructor Summary

Constructor Description
CompletedSynchronizationState(OffsetDateTime startTime, OffsetDateTime endTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped)

Creates an instance of CompletedSynchronizationState class.

Method Summary

Modifier and Type Method and Description
static CompletedSynchronizationState fromJson(JsonReader jsonReader)

Reads an instance of CompletedSynchronizationState from the JsonReader.

OffsetDateTime getEndTime()

Get the endTime property: The end time of the last completed synchronization.

int getItemsSkipped()

Get the itemsSkipped property: The number of items skipped in the last synchronization.

int getItemsUpdatesFailed()

Get the itemsUpdatesFailed property: The number of item updates that failed in the last synchronization.

int getItemsUpdatesProcessed()

Get the itemsUpdatesProcessed property: The number of item updates successfully processed in the last synchronization.

OffsetDateTime getStartTime()

Get the startTime property: The start time of the last completed synchronization.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

CompletedSynchronizationState

public CompletedSynchronizationState(OffsetDateTime startTime, OffsetDateTime endTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped)

Creates an instance of CompletedSynchronizationState class.

Parameters:

startTime - the startTime value to set.
endTime - the endTime value to set.
itemsUpdatesProcessed - the itemsUpdatesProcessed value to set.
itemsUpdatesFailed - the itemsUpdatesFailed value to set.
itemsSkipped - the itemsSkipped value to set.

Method Details

fromJson

public static CompletedSynchronizationState fromJson(JsonReader jsonReader)

Reads an instance of CompletedSynchronizationState from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CompletedSynchronizationState if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getEndTime

public OffsetDateTime getEndTime()

Get the endTime property: The end time of the last completed synchronization.

Returns:

the endTime value.

getItemsSkipped

public int getItemsSkipped()

Get the itemsSkipped property: The number of items skipped in the last synchronization.

Returns:

the itemsSkipped value.

getItemsUpdatesFailed

public int getItemsUpdatesFailed()

Get the itemsUpdatesFailed property: The number of item updates that failed in the last synchronization.

Returns:

the itemsUpdatesFailed value.

getItemsUpdatesProcessed

public int getItemsUpdatesProcessed()

Get the itemsUpdatesProcessed property: The number of item updates successfully processed in the last synchronization.

Returns:

the itemsUpdatesProcessed value.

getStartTime

public OffsetDateTime getStartTime()

Get the startTime property: The start time of the last completed synchronization.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to