Class OperationStatusResult

java.lang.Object
com.azure.resourcemanager.devcenter.models.OperationStatusResult
Direct Known Subclasses:
OperationStatusInner

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

    • OperationStatusResult

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

    • id

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

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

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

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

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

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

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

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

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

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

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

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

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

      public OperationStatusResult withOperations(List<OperationStatusResult> operations)
      Set the operations property: The operations list.
      Parameters:
      operations - the operations value to set.
      Returns:
      the OperationStatusResult 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 OperationStatusResult 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 OperationStatusResult object itself.
    • validate

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