Class AsyncOperationResultInner
java.lang.Object
com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner
The status of an async operation.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AsyncOperationResultInner class. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.exception.ManagementError
error()
Get the error property: The error object.name()
Get the name property: Operation Id of the async operation.status()
Get the status property: Operation status of the async operation.void
validate()
Validates the instance.withError
(com.azure.core.management.exception.ManagementError error) Set the error property: The error object.Set the name property: Operation Id of the async operation.withStatus
(AsyncOperationStatus status) Set the status property: Operation status of the async operation.
-
Constructor Details
-
AsyncOperationResultInner
public AsyncOperationResultInner()Creates an instance of AsyncOperationResultInner class.
-
-
Method Details
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: The error object.- Returns:
- the error value.
-
withError
public AsyncOperationResultInner withError(com.azure.core.management.exception.ManagementError error) Set the error property: The error object.- Parameters:
error
- the error value to set.- Returns:
- the AsyncOperationResultInner object itself.
-
name
Get the name property: Operation Id of the async operation.- Returns:
- the name value.
-
withName
Set the name property: Operation Id of the async operation.- Parameters:
name
- the name value to set.- Returns:
- the AsyncOperationResultInner object itself.
-
status
Get the status property: Operation status of the async operation.- Returns:
- the status value.
-
withStatus
Set the status property: Operation status of the async operation.- Parameters:
status
- the status value to set.- Returns:
- the AsyncOperationResultInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-