Class OperationStatusResult
java.lang.Object
com.azure.resourcemanager.devcenter.models.OperationStatusResult
- Direct Known Subclasses:
OperationStatusInner
The current status of an async operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionendTime()
Get the endTime property: The end time of the operation.com.azure.core.management.exception.ManagementError
error()
Get the error property: If present, details of the operation error.id()
Get the id property: Fully qualified ID for the async operation.name()
Get the name property: Name of the async operation.Get the operations property: The operations list.Get the percentComplete property: Percent of the operation that is complete.Get the startTime property: The start time of the operation.status()
Get the status property: Operation status.void
validate()
Validates the instance.withEndTime
(OffsetDateTime endTime) Set the endTime property: The end time of the operation.withError
(com.azure.core.management.exception.ManagementError error) Set the error property: If present, details of the operation error.Set the id property: Fully qualified ID for the async operation.Set the name property: Name of the async operation.withOperations
(List<OperationStatusResult> operations) Set the operations property: The operations list.withPercentComplete
(Float percentComplete) Set the percentComplete property: Percent of the operation that is complete.withStartTime
(OffsetDateTime startTime) Set the startTime property: The start time of the operation.withStatus
(String status) Set the status property: Operation status.
-
Constructor Details
-
OperationStatusResult
public OperationStatusResult()Creates an instance of OperationStatusResult class.
-
-
Method Details
-
id
Get the id property: Fully qualified ID for the async operation.- Returns:
- the id value.
-
withId
Set the id property: Fully qualified ID for the async operation.- Parameters:
id
- the id value to set.- Returns:
- the OperationStatusResult object itself.
-
name
Get the name property: Name of the async operation.- Returns:
- the name value.
-
withName
Set the name property: Name of the async operation.- Parameters:
name
- the name value to set.- Returns:
- the OperationStatusResult object itself.
-
status
Get the status property: Operation status.- Returns:
- the status value.
-
withStatus
Set the status property: Operation status.- Parameters:
status
- the status value to set.- Returns:
- the OperationStatusResult object itself.
-
percentComplete
Get the percentComplete property: Percent of the operation that is complete.- Returns:
- the percentComplete value.
-
withPercentComplete
Set the percentComplete property: Percent of the operation that is complete.- Parameters:
percentComplete
- the percentComplete value to set.- Returns:
- the OperationStatusResult object itself.
-
startTime
Get the startTime property: The start time of the operation.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The start time of the operation.- Parameters:
startTime
- the startTime value to set.- Returns:
- the OperationStatusResult object itself.
-
endTime
Get the endTime property: The end time of the operation.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: The end time of the operation.- Parameters:
endTime
- the endTime value to set.- Returns:
- the OperationStatusResult object itself.
-
operations
Get the operations property: The operations list.- Returns:
- the operations value.
-
withOperations
Set the operations property: The operations list.- Parameters:
operations
- the operations value to set.- Returns:
- the OperationStatusResult object itself.
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: If present, details of the operation error.- Returns:
- the error value.
-
withError
Set the error property: If present, details of the operation error.- Parameters:
error
- the error value to set.- Returns:
- the OperationStatusResult object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-