java.lang.Object
com.azure.resourcemanager.containerinstance.models.Operation
All Implemented Interfaces:
com.azure.json.JsonSerializable<Operation>

public final class Operation extends Object implements com.azure.json.JsonSerializable<Operation>
An operation for Azure Container Instance service.
  • Constructor Details

    • Operation

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

    • name

      public String name()
      Get the name property: The name of the operation.
      Returns:
      the name value.
    • withName

      public Operation withName(String name)
      Set the name property: The name of the operation.
      Parameters:
      name - the name value to set.
      Returns:
      the Operation object itself.
    • display

      public OperationDisplay display()
      Get the display property: The display information of the operation.
      Returns:
      the display value.
    • withDisplay

      public Operation withDisplay(OperationDisplay display)
      Set the display property: The display information of the operation.
      Parameters:
      display - the display value to set.
      Returns:
      the Operation object itself.
    • properties

      public Object properties()
      Get the properties property: The additional properties.
      Returns:
      the properties value.
    • withProperties

      public Operation withProperties(Object properties)
      Set the properties property: The additional properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the Operation object itself.
    • origin

      Get the origin property: The intended executor of the operation.
      Returns:
      the origin value.
    • withOrigin

      public Operation withOrigin(ContainerInstanceOperationsOrigin origin)
      Set the origin property: The intended executor of the operation.
      Parameters:
      origin - the origin value to set.
      Returns:
      the Operation 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<Operation>
      Throws:
      IOException
    • fromJson

      public static Operation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Operation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Operation 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 Operation.