Class OperationResourceInner


  • public final class OperationResourceInner
    extends Object
    OperationResource Operation Resource.
    • Constructor Detail

      • OperationResourceInner

        public OperationResourceInner()
    • Method Detail

      • 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. The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section.
        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. The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section.
        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.
      • properties

        public OperationExtendedInfo properties()
        Get the properties property: OperationExtendedInfo End time of the operation.
        Returns:
        the properties value.
      • withProperties

        public OperationResourceInner withProperties​(OperationExtendedInfo properties)
        Set the properties property: OperationExtendedInfo End time of the operation.
        Parameters:
        properties - the properties 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.
      • status

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

        public OperationResourceInner withStatus​(String status)
        Set the status property: The status property.
        Parameters:
        status - the status value to set.
        Returns:
        the OperationResourceInner object itself.
      • validate

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