Class OperationResultLogItemContract
java.lang.Object
com.azure.resourcemanager.apimanagement.models.OperationResultLogItemContract
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationResultLogItemContract>
public final class OperationResultLogItemContract
extends Object
implements com.azure.json.JsonSerializable<OperationResultLogItemContract>
Log of the entity being created, updated or deleted.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OperationResultLogItemContract class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Action like create/update/delete.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationResultLogItemContract from the JsonReader.Get the objectKey property: Identifier of the entity being created/updated/deleted.Get the objectType property: The type of entity contract.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAction(String action) Set the action property: Action like create/update/delete.withObjectKey(String objectKey) Set the objectKey property: Identifier of the entity being created/updated/deleted.withObjectType(String objectType) Set the objectType property: The type of entity contract.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
-
OperationResultLogItemContract
public OperationResultLogItemContract()Creates an instance of OperationResultLogItemContract class.
-
-
Method Details
-
objectType
Get the objectType property: The type of entity contract.- Returns:
- the objectType value.
-
withObjectType
Set the objectType property: The type of entity contract.- Parameters:
objectType- the objectType value to set.- Returns:
- the OperationResultLogItemContract object itself.
-
action
Get the action property: Action like create/update/delete.- Returns:
- the action value.
-
withAction
Set the action property: Action like create/update/delete.- Parameters:
action- the action value to set.- Returns:
- the OperationResultLogItemContract object itself.
-
objectKey
Get the objectKey property: Identifier of the entity being created/updated/deleted.- Returns:
- the objectKey value.
-
withObjectKey
Set the objectKey property: Identifier of the entity being created/updated/deleted.- Parameters:
objectKey- the objectKey value to set.- Returns:
- the OperationResultLogItemContract object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationResultLogItemContract>- Throws:
IOException
-
fromJson
public static OperationResultLogItemContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationResultLogItemContract from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationResultLogItemContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the OperationResultLogItemContract.
-