Class OperationResourceInner
java.lang.Object
com.azure.resourcemanager.recoveryservices.fluent.models.OperationResourceInner
Operation Resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendTime()
Get the endTime property: End time of the operation.com.azure.core.management.exception.ManagementError
error()
Get the error property: Required if status == failed or status == canceled.id()
Get the id property: It should match what is used to GET the operation result.name()
Get the name property: It must match the last segment of the "id" field, and will typically be a GUID / system generated value.Get the startTime property: Start time of the operation.status()
Get the status property: The status of the operation.void
validate()
Validates the instance.withEndTime
(OffsetDateTime endTime) Set the endTime property: End time of the operation.withError
(com.azure.core.management.exception.ManagementError error) Set the error property: Required if status == failed or status == canceled.Set the id property: It should match what is used to GET the operation result.Set the name property: It must match the last segment of the "id" field, and will typically be a GUID / system generated value.withStartTime
(OffsetDateTime startTime) Set the startTime property: Start time of the operation.withStatus
(String status) Set the status property: The status of the operation.
-
Constructor Details
-
OperationResourceInner
public OperationResourceInner()
-
-
Method Details
-
endTime
Get the endTime property: End time of the operation.- Returns:
- the endTime value.
-
withEndTime
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
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
Get the id property: It should match what is used to GET the operation result.- Returns:
- the id value.
-
withId
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
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
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
Get the status property: The status of the operation. (InProgress/Success/Failed/Cancelled).- Returns:
- the status value.
-
withStatus
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
Get the startTime property: Start time of the operation.- Returns:
- the startTime value.
-
withStartTime
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.
-