Class OperationResultInner

java.lang.Object
com.azure.resourcemanager.labservices.fluent.models.OperationResultInner

public final class OperationResultInner extends Object
A long running operation result.
  • Constructor Details

    • OperationResultInner

      public OperationResultInner()
  • Method Details

    • id

      public String id()
      Get the id property: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Returns:
      the name value.
    • status

      public OperationStatus status()
      Get the status property: The operation status.
      Returns:
      the status value.
    • withStatus

      public OperationResultInner withStatus(OperationStatus status)
      Set the status property: The operation status.
      Parameters:
      status - the status value to set.
      Returns:
      the OperationResultInner object itself.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time.
      Returns:
      the startTime value.
    • withStartTime

      public OperationResultInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: Start time.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the OperationResultInner object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: End time.
      Returns:
      the endTime value.
    • withEndTime

      public OperationResultInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: End time.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the OperationResultInner object itself.
    • percentComplete

      public Float percentComplete()
      Get the percentComplete property: Percent completion.
      Returns:
      the percentComplete value.
    • withPercentComplete

      public OperationResultInner withPercentComplete(Float percentComplete)
      Set the percentComplete property: Percent completion.
      Parameters:
      percentComplete - the percentComplete value to set.
      Returns:
      the OperationResultInner object itself.
    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: The error for a failure if the operation failed.
      Returns:
      the error value.
    • withError

      public OperationResultInner withError(com.azure.core.management.exception.ManagementError error)
      Set the error property: The error for a failure if the operation failed.
      Parameters:
      error - the error value to set.
      Returns:
      the OperationResultInner object itself.
    • validate

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