Class KnowledgeSourceStatus
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeSourceStatus
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeSourceStatus>
public final class KnowledgeSourceStatus
extends Object
implements com.azure.json.JsonSerializable<KnowledgeSourceStatus>
Represents the status and synchronization history of a knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeSourceStatus(KnowledgeSourceSynchronizationStatus synchronizationStatus) Creates an instance of KnowledgeSourceStatus class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeSourceStatusfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeSourceStatus from the JsonReader.Get the currentSynchronizationState property: Current synchronization state that spans multiple indexer runs.Get the lastSynchronizationState property: Details of the last completed synchronization.Get the statistics property: Statistical information about the knowledge source synchronization history.Get the synchronizationInterval property: The synchronization interval (e.g., '1d' for daily).Get the synchronizationStatus property: The current synchronization status of the knowledge source.setCurrentSynchronizationState(SynchronizationState currentSynchronizationState) Set the currentSynchronizationState property: Current synchronization state that spans multiple indexer runs.setLastSynchronizationState(CompletedSynchronizationState lastSynchronizationState) Set the lastSynchronizationState property: Details of the last completed synchronization.setStatistics(KnowledgeSourceStatistics statistics) Set the statistics property: Statistical information about the knowledge source synchronization history.setSynchronizationInterval(String synchronizationInterval) Set the synchronizationInterval property: The synchronization interval (e.g., '1d' for daily).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
-
KnowledgeSourceStatus
Creates an instance of KnowledgeSourceStatus class.- Parameters:
synchronizationStatus- the synchronizationStatus value to set.
-
-
Method Details
-
getSynchronizationStatus
Get the synchronizationStatus property: The current synchronization status of the knowledge source.- Returns:
- the synchronizationStatus value.
-
getSynchronizationInterval
Get the synchronizationInterval property: The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured.- Returns:
- the synchronizationInterval value.
-
setSynchronizationInterval
Set the synchronizationInterval property: The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured.- Parameters:
synchronizationInterval- the synchronizationInterval value to set.- Returns:
- the KnowledgeSourceStatus object itself.
-
getCurrentSynchronizationState
Get the currentSynchronizationState property: Current synchronization state that spans multiple indexer runs.- Returns:
- the currentSynchronizationState value.
-
setCurrentSynchronizationState
public KnowledgeSourceStatus setCurrentSynchronizationState(SynchronizationState currentSynchronizationState) Set the currentSynchronizationState property: Current synchronization state that spans multiple indexer runs.- Parameters:
currentSynchronizationState- the currentSynchronizationState value to set.- Returns:
- the KnowledgeSourceStatus object itself.
-
getLastSynchronizationState
Get the lastSynchronizationState property: Details of the last completed synchronization. Null on first sync.- Returns:
- the lastSynchronizationState value.
-
setLastSynchronizationState
public KnowledgeSourceStatus setLastSynchronizationState(CompletedSynchronizationState lastSynchronizationState) Set the lastSynchronizationState property: Details of the last completed synchronization. Null on first sync.- Parameters:
lastSynchronizationState- the lastSynchronizationState value to set.- Returns:
- the KnowledgeSourceStatus object itself.
-
getStatistics
Get the statistics property: Statistical information about the knowledge source synchronization history. Null on first sync.- Returns:
- the statistics value.
-
setStatistics
Set the statistics property: Statistical information about the knowledge source synchronization history. Null on first sync.- Parameters:
statistics- the statistics value to set.- Returns:
- the KnowledgeSourceStatus object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeSourceStatus>- Throws:
IOException
-
fromJson
public static KnowledgeSourceStatus fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeSourceStatus from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeSourceStatus 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 KnowledgeSourceStatus.
-