Class OperationStatusInner

java.lang.Object
com.azure.resourcemanager.redis.models.OperationStatusResult
com.azure.resourcemanager.redis.fluent.models.OperationStatusInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationStatusResult>

public final class OperationStatusInner extends OperationStatusResult
Asynchronous operation status.
  • Constructor Details

    • OperationStatusInner

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

    • properties

      public Map<String,Object> properties()
      Get the properties property: Additional properties from RP, only when operation is successful.
      Returns:
      the properties value.
    • withProperties

      public OperationStatusInner withProperties(Map<String,Object> properties)
      Set the properties property: Additional properties from RP, only when operation is successful.
      Parameters:
      properties - the properties value to set.
      Returns:
      the OperationStatusInner object itself.
    • withId

      public OperationStatusInner withId(String id)
      Set the id property: Fully qualified ID for the async operation.
      Overrides:
      withId in class OperationStatusResult
      Parameters:
      id - the id value to set.
      Returns:
      the OperationStatusResult object itself.
    • withName

      public OperationStatusInner withName(String name)
      Set the name property: Name of the async operation.
      Overrides:
      withName in class OperationStatusResult
      Parameters:
      name - the name value to set.
      Returns:
      the OperationStatusResult object itself.
    • withStatus

      public OperationStatusInner withStatus(String status)
      Set the status property: Operation status.
      Overrides:
      withStatus in class OperationStatusResult
      Parameters:
      status - the status value to set.
      Returns:
      the OperationStatusResult object itself.
    • withPercentComplete

      public OperationStatusInner withPercentComplete(Float percentComplete)
      Set the percentComplete property: Percent of the operation that is complete.
      Overrides:
      withPercentComplete in class OperationStatusResult
      Parameters:
      percentComplete - the percentComplete value to set.
      Returns:
      the OperationStatusResult object itself.
    • withStartTime

      public OperationStatusInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: The start time of the operation.
      Overrides:
      withStartTime in class OperationStatusResult
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the OperationStatusResult object itself.
    • withEndTime

      public OperationStatusInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: The end time of the operation.
      Overrides:
      withEndTime in class OperationStatusResult
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the OperationStatusResult object itself.
    • withOperations

      public OperationStatusInner withOperations(List<OperationStatusResult> operations)
      Set the operations property: The operations list.
      Overrides:
      withOperations in class OperationStatusResult
      Parameters:
      operations - the operations value to set.
      Returns:
      the OperationStatusResult object itself.
    • withError

      public OperationStatusInner withError(com.azure.core.management.exception.ManagementError error)
      Set the error property: If present, details of the operation error.
      Overrides:
      withError in class OperationStatusResult
      Parameters:
      error - the error value to set.
      Returns:
      the OperationStatusResult object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class OperationStatusResult
      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<OperationStatusResult>
      Overrides:
      toJson in class OperationStatusResult
      Throws:
      IOException
    • fromJson

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