OperationResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. fluent. models. OperationResultInner
- com.
public final class OperationResultInner
An Operation Result.
Constructor Summary
| Constructor | Description |
|---|---|
| OperationResultInner() |
Creates an instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Operation |
error()
Get the error property: Error details for the operation in case of a failure. |
| String |
status()
Get the status property: The operation status. |
|
Http |
statusCode()
Get the status |
| void |
validate()
Validates the instance. |
|
Operation |
withError(OperationError error)
Set the error property: Error details for the operation in case of a failure. |
|
Operation |
withStatus(String status)
Set the status property: The operation status. |
|
Operation |
withStatusCode(HttpStatusCode statusCode)
Set the status |
Methods inherited from java.lang.Object
Constructor Details
OperationResultInner
public OperationResultInner()
Creates an instance of OperationResultInner class.
Method Details
error
public OperationError error()
Get the error property: Error details for the operation in case of a failure.
Returns:
status
public String status()
Get the status property: The operation status.
Returns:
statusCode
public HttpStatusCode statusCode()
Get the statusCode property: The status code for the operation.
Returns:
validate
public void validate()
Validates the instance.
withError
public OperationResultInner withError(OperationError error)
Set the error property: Error details for the operation in case of a failure.
Parameters:
Returns:
withStatus
public OperationResultInner withStatus(String status)
Set the status property: The operation status.
Parameters:
Returns:
withStatusCode
public OperationResultInner withStatusCode(HttpStatusCode statusCode)
Set the statusCode property: The status code for the operation.
Parameters:
Returns: