Class OperationStatusResultInner

java.lang.Object
com.azure.resourcemanager.workloads.fluent.models.OperationStatusResultInner

public final class OperationStatusResultInner extends Object
The current status of an async operation.
  • Constructor Details

    • OperationStatusResultInner

      public OperationStatusResultInner()
  • Method Details

    • id

      public String id()
      Get the id property: Fully qualified ID for the async operation.
      Returns:
      the id value.
    • withId

      public OperationStatusResultInner withId(String id)
      Set the id property: Fully qualified ID for the async operation.
      Parameters:
      id - the id value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • name

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

      public OperationStatusResultInner withName(String name)
      Set the name property: Name of the async operation.
      Parameters:
      name - the name value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • status

      public String status()
      Get the status property: Operation status.
      Returns:
      the status value.
    • withStatus

      public OperationStatusResultInner withStatus(String status)
      Set the status property: Operation status.
      Parameters:
      status - the status value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • percentComplete

      public Float percentComplete()
      Get the percentComplete property: Percent of the operation that is complete.
      Returns:
      the percentComplete value.
    • withPercentComplete

      public OperationStatusResultInner withPercentComplete(Float percentComplete)
      Set the percentComplete property: Percent of the operation that is complete.
      Parameters:
      percentComplete - the percentComplete value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time of the operation.
      Returns:
      the startTime value.
    • withStartTime

      public OperationStatusResultInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: The start time of the operation.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: The end time of the operation.
      Returns:
      the endTime value.
    • withEndTime

      public OperationStatusResultInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: The end time of the operation.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • operations

      public List<OperationStatusResultInner> operations()
      Get the operations property: The operations list.
      Returns:
      the operations value.
    • withOperations

      public OperationStatusResultInner withOperations(List<OperationStatusResultInner> operations)
      Set the operations property: The operations list.
      Parameters:
      operations - the operations value to set.
      Returns:
      the OperationStatusResultInner object itself.
    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: If present, details of the operation error.
      Returns:
      the error value.
    • withError

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

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.