Class CompletedSynchronizationState
java.lang.Object
com.azure.search.documents.indexes.models.CompletedSynchronizationState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CompletedSynchronizationState>
public final class CompletedSynchronizationState
extends Object
implements com.azure.json.JsonSerializable<CompletedSynchronizationState>
Represents the completed state of the last synchronization.
-
Constructor Summary
ConstructorsConstructorDescriptionCompletedSynchronizationState(OffsetDateTime startTime, OffsetDateTime endTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped) Creates an instance of CompletedSynchronizationState class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CompletedSynchronizationState from the JsonReader.Get the endTime property: The end time of the last completed synchronization.intGet the itemsSkipped property: The number of items skipped in the last synchronization.intGet the itemsUpdatesFailed property: The number of item updates that failed in the last synchronization.intGet the itemsUpdatesProcessed property: The number of item updates successfully processed in the last synchronization.Get the startTime property: The start time of the last completed synchronization.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
-
getStartTime
Get the startTime property: The start time of the last completed synchronization.- Returns:
- the startTime value.
-
getEndTime
Get the endTime property: The end time of the last completed synchronization.- Returns:
- the endTime value.
-
getItemsUpdatesProcessed
public int getItemsUpdatesProcessed()Get the itemsUpdatesProcessed property: The number of item updates successfully processed in the last synchronization.- Returns:
- the itemsUpdatesProcessed value.
-
getItemsUpdatesFailed
public int getItemsUpdatesFailed()Get the itemsUpdatesFailed property: The number of item updates that failed in the last synchronization.- Returns:
- the itemsUpdatesFailed value.
-
getItemsSkipped
public int getItemsSkipped()Get the itemsSkipped property: The number of items skipped in the last synchronization.- Returns:
- the itemsSkipped value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CompletedSynchronizationState>- Throws:
IOException
-
fromJson
public static CompletedSynchronizationState fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CompletedSynchronizationState.
-