Class KnowledgeAgentAzureSearchDocReference
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentReference
com.azure.search.documents.agents.models.KnowledgeAgentAzureSearchDocReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentReference>
Represents an Azure Search document reference.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeAgentAzureSearchDocReference(String id, int activitySource) Creates an instance of KnowledgeAgentAzureSearchDocReference class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentAzureSearchDocReference from the JsonReader.Get the docKey property: The document key for the reference.Get the sourceData property: Dictionary of <any>.getType()Get the type property: The type of the reference.Set the docKey property: The document key for the reference.setSourceData(Map<String, Object> sourceData) Set the sourceData property: Dictionary of <any>.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.agents.models.KnowledgeAgentReference
getActivitySource, getIdMethods 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
-
KnowledgeAgentAzureSearchDocReference
Creates an instance of KnowledgeAgentAzureSearchDocReference class.- Parameters:
id- the id value to set.activitySource- the activitySource value to set.
-
-
Method Details
-
getType
Get the type property: The type of the reference.- Overrides:
getTypein classKnowledgeAgentReference- Returns:
- the type value.
-
getDocKey
Get the docKey property: The document key for the reference.- Returns:
- the docKey value.
-
setDocKey
Set the docKey property: The document key for the reference.- Parameters:
docKey- the docKey value to set.- Returns:
- the KnowledgeAgentAzureSearchDocReference object itself.
-
getSourceData
Get the sourceData property: Dictionary of <any>.- Returns:
- the sourceData value.
-
setSourceData
Set the sourceData property: Dictionary of <any>.- Parameters:
sourceData- the sourceData value to set.- Returns:
- the KnowledgeAgentAzureSearchDocReference object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentReference>- Overrides:
toJsonin classKnowledgeAgentReference- Throws:
IOException
-
fromJson
public static KnowledgeAgentAzureSearchDocReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentAzureSearchDocReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentAzureSearchDocReference 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 KnowledgeAgentAzureSearchDocReference.
-