Class ComputeInstanceLastOperation

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

public final class ComputeInstanceLastOperation extends Object implements com.azure.json.JsonSerializable<ComputeInstanceLastOperation>
The last operation on ComputeInstance.
  • Constructor Details

    • ComputeInstanceLastOperation

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

    • operationName

      public OperationName operationName()
      Get the operationName property: Name of the last operation.
      Returns:
      the operationName value.
    • withOperationName

      public ComputeInstanceLastOperation withOperationName(OperationName operationName)
      Set the operationName property: Name of the last operation.
      Parameters:
      operationName - the operationName value to set.
      Returns:
      the ComputeInstanceLastOperation object itself.
    • operationTime

      public OffsetDateTime operationTime()
      Get the operationTime property: Time of the last operation.
      Returns:
      the operationTime value.
    • withOperationTime

      public ComputeInstanceLastOperation withOperationTime(OffsetDateTime operationTime)
      Set the operationTime property: Time of the last operation.
      Parameters:
      operationTime - the operationTime value to set.
      Returns:
      the ComputeInstanceLastOperation object itself.
    • operationStatus

      public OperationStatus operationStatus()
      Get the operationStatus property: Operation status.
      Returns:
      the operationStatus value.
    • withOperationStatus

      public ComputeInstanceLastOperation withOperationStatus(OperationStatus operationStatus)
      Set the operationStatus property: Operation status.
      Parameters:
      operationStatus - the operationStatus value to set.
      Returns:
      the ComputeInstanceLastOperation object itself.
    • operationTrigger

      public OperationTrigger operationTrigger()
      Get the operationTrigger property: Trigger of operation.
      Returns:
      the operationTrigger value.
    • withOperationTrigger

      public ComputeInstanceLastOperation withOperationTrigger(OperationTrigger operationTrigger)
      Set the operationTrigger property: Trigger of operation.
      Parameters:
      operationTrigger - the operationTrigger value to set.
      Returns:
      the ComputeInstanceLastOperation 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<ComputeInstanceLastOperation>
      Throws:
      IOException
    • fromJson

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