Class KnowledgeAgentActivityRecord
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentActivityRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>
- Direct Known Subclasses:
KnowledgeAgentModelQueryPlanningActivityRecord,KnowledgeAgentSearchActivityRecord,KnowledgeAgentSemanticRankerActivityRecord
public class KnowledgeAgentActivityRecord
extends Object
implements com.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>
Base type for activity records.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeAgentActivityRecord(int id) Creates an instance of KnowledgeAgentActivityRecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeAgentActivityRecordfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentActivityRecord from the JsonReader.intgetId()Get the id property: The ID of the activity record.getType()Get the type property: The type of the activity record.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
-
KnowledgeAgentActivityRecord
public KnowledgeAgentActivityRecord(int id) Creates an instance of KnowledgeAgentActivityRecord class.- Parameters:
id- the id value to set.
-
-
Method Details
-
getType
Get the type property: The type of the activity record.- Returns:
- the type value.
-
getId
public int getId()Get the id property: The ID of the activity record.- Returns:
- the id value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>- Throws:
IOException
-
fromJson
public static KnowledgeAgentActivityRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentActivityRecord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentActivityRecord 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 KnowledgeAgentActivityRecord.
-