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 Details

    • OperationResultLogItemContract

      public OperationResultLogItemContract()
      Creates an instance of OperationResultLogItemContract class.
  • Method Details

    • objectType

      public String objectType()
      Get the objectType property: The type of entity contract.
      Returns:
      the objectType value.
    • withObjectType

      public OperationResultLogItemContract withObjectType(String objectType)
      Set the objectType property: The type of entity contract.
      Parameters:
      objectType - the objectType value to set.
      Returns:
      the OperationResultLogItemContract object itself.
    • action

      public String action()
      Get the action property: Action like create/update/delete.
      Returns:
      the action value.
    • withAction

      public OperationResultLogItemContract withAction(String action)
      Set the action property: Action like create/update/delete.
      Parameters:
      action - the action value to set.
      Returns:
      the OperationResultLogItemContract object itself.
    • objectKey

      public String objectKey()
      Get the objectKey property: Identifier of the entity being created/updated/deleted.
      Returns:
      the objectKey value.
    • withObjectKey

      public OperationResultLogItemContract withObjectKey(String objectKey)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.