Class OperationResourceInner

java.lang.Object
com.azure.resourcemanager.recoveryservices.fluent.models.OperationResourceInner

public final class OperationResourceInner extends Object
Operation Resource.
  • Constructor Details

    • OperationResourceInner

      public OperationResourceInner()
  • Method Details

    • endTime

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

      public OperationResourceInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: End time of the operation.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the OperationResourceInner object itself.
    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.
      Returns:
      the error value.
    • withError

      public OperationResourceInner withError(com.azure.core.management.exception.ManagementError error)
      Set the error property: Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines.
      Parameters:
      error - the error value to set.
      Returns:
      the OperationResourceInner object itself.
    • id

      public String id()
      Get the id property: It should match what is used to GET the operation result.
      Returns:
      the id value.
    • withId

      public OperationResourceInner withId(String id)
      Set the id property: It should match what is used to GET the operation result.
      Parameters:
      id - the id value to set.
      Returns:
      the OperationResourceInner object itself.
    • name

      public String name()
      Get the name property: It must match the last segment of the "id" field, and will typically be a GUID / system generated value.
      Returns:
      the name value.
    • withName

      public OperationResourceInner withName(String name)
      Set the name property: It must match the last segment of the "id" field, and will typically be a GUID / system generated value.
      Parameters:
      name - the name value to set.
      Returns:
      the OperationResourceInner object itself.
    • status

      public String status()
      Get the status property: The status of the operation. (InProgress/Success/Failed/Cancelled).
      Returns:
      the status value.
    • withStatus

      public OperationResourceInner withStatus(String status)
      Set the status property: The status of the operation. (InProgress/Success/Failed/Cancelled).
      Parameters:
      status - the status value to set.
      Returns:
      the OperationResourceInner object itself.
    • startTime

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

      public OperationResourceInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: Start time of the operation.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the OperationResourceInner object itself.
    • validate

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