Class OperationResultInner
java.lang.Object
com.azure.resourcemanager.labservices.fluent.models.OperationResultInner
A long running operation result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendTime()
Get the endTime property: End time.com.azure.core.management.exception.ManagementError
error()
Get the error property: The error for a failure if the operation failed.id()
Get the id property: Fully qualified resource ID for the resource.name()
Get the name property: The name of the resource.Get the percentComplete property: Percent completion.Get the startTime property: Start time.status()
Get the status property: The operation status.void
validate()
Validates the instance.withEndTime
(OffsetDateTime endTime) Set the endTime property: End time.withError
(com.azure.core.management.exception.ManagementError error) Set the error property: The error for a failure if the operation failed.withPercentComplete
(Float percentComplete) Set the percentComplete property: Percent completion.withStartTime
(OffsetDateTime startTime) Set the startTime property: Start time.withStatus
(OperationStatus status) Set the status property: The operation status.
-
Constructor Details
-
OperationResultInner
public OperationResultInner()
-
-
Method Details
-
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
Get the name property: The name of the resource.- Returns:
- the name value.
-
status
Get the status property: The operation status.- Returns:
- the status value.
-
withStatus
Set the status property: The operation status.- Parameters:
status
- the status value to set.- Returns:
- the OperationResultInner object itself.
-
startTime
Get the startTime property: Start time.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time.- Parameters:
startTime
- the startTime value to set.- Returns:
- the OperationResultInner object itself.
-
endTime
Get the endTime property: End time.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: End time.- Parameters:
endTime
- the endTime value to set.- Returns:
- the OperationResultInner object itself.
-
percentComplete
Get the percentComplete property: Percent completion.- Returns:
- the percentComplete value.
-
withPercentComplete
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
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.
-