Class OperationResultInner
java.lang.Object
com.azure.resourcemanager.devtestlabs.fluent.models.OperationResultInner
An Operation Result.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: Error details for the operation in case of a failure.status()
Get the status property: The operation status.Get the statusCode property: The status code for the operation.void
validate()
Validates the instance.withError
(OperationError error) Set the error property: Error details for the operation in case of a failure.withStatus
(String status) Set the status property: The operation status.withStatusCode
(HttpStatusCode statusCode) Set the statusCode property: The status code for the operation.
-
Constructor Details
-
OperationResultInner
public OperationResultInner()Creates an instance of OperationResultInner class.
-
-
Method Details
-
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.
-
statusCode
Get the statusCode property: The status code for the operation.- Returns:
- the statusCode value.
-
withStatusCode
Set the statusCode property: The status code for the operation.- Parameters:
statusCode
- the statusCode value to set.- Returns:
- the OperationResultInner object itself.
-
error
Get the error property: Error details for the operation in case of a failure.- Returns:
- the error value.
-
withError
Set the error property: Error details for the operation in case of a failure.- 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.
-