Class IndexingSchedule
java.lang.Object
com.azure.search.documents.indexes.models.IndexingSchedule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IndexingSchedule>
public final class IndexingSchedule
extends Object
implements com.azure.json.JsonSerializable<IndexingSchedule>
Represents a schedule for indexer execution.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexingSchedule(Duration interval) Creates an instance of IndexingSchedule class. -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexingSchedulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IndexingSchedule from the JsonReader.Get the interval property: The interval of time between indexer executions.Get the startTime property: The time when an indexer should start running.setStartTime(OffsetDateTime startTime) Set the startTime property: The time when an indexer should start running.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.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
-
IndexingSchedule
Creates an instance of IndexingSchedule class.- Parameters:
interval- the interval value to set.
-
-
Method Details
-
getInterval
Get the interval property: The interval of time between indexer executions.- Returns:
- the interval value.
-
getStartTime
Get the startTime property: The time when an indexer should start running.- Returns:
- the startTime value.
-
setStartTime
Set the startTime property: The time when an indexer should start running.- Parameters:
startTime- the startTime value to set.- Returns:
- the IndexingSchedule object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IndexingSchedule>- Throws:
IOException
-
fromJson
Reads an instance of IndexingSchedule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IndexingSchedule 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 IndexingSchedule.
-