public final class OperationResultInner extends Object
Constructor and Description |
---|
OperationResultInner() |
Modifier and Type | Method and Description |
---|---|
OperationError |
error()
Get the error property: Error details for the operation in case of a failure.
|
String |
status()
Get the status property: The operation status.
|
HttpStatusCode |
statusCode()
Get the statusCode property: The status code for the operation.
|
void |
validate()
Validates the instance.
|
OperationResultInner |
withError(OperationError error)
Set the error property: Error details for the operation in case of a failure.
|
OperationResultInner |
withStatus(String status)
Set the status property: The operation status.
|
OperationResultInner |
withStatusCode(HttpStatusCode statusCode)
Set the statusCode property: The status code for the operation.
|
public String status()
public OperationResultInner withStatus(String status)
status
- the status value to set.public HttpStatusCode statusCode()
public OperationResultInner withStatusCode(HttpStatusCode statusCode)
statusCode
- the statusCode value to set.public OperationError error()
public OperationResultInner withError(OperationError error)
error
- the error value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.