OperationResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.fluent.models.OperationResultInner

public final class OperationResultInner

An Operation Result.

Constructor Summary

Constructor Description
OperationResultInner()

Creates an instance of OperationResultInner class.

Method Summary

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.

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:

the error value.

status

public String status()

Get the status property: The operation status.

Returns:

the status value.

statusCode

public HttpStatusCode statusCode()

Get the statusCode property: The status code for the operation.

Returns:

the statusCode value.

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:

error - the error value to set.

Returns:

the OperationResultInner object itself.

withStatus

public OperationResultInner withStatus(String status)

Set the status property: The operation status.

Parameters:

status - the status value to set.

Returns:

the OperationResultInner object itself.

withStatusCode

public OperationResultInner withStatusCode(HttpStatusCode statusCode)

Set the statusCode property: The status code for the operation.

Parameters:

statusCode - the statusCode value to set.

Returns:

the OperationResultInner object itself.

Applies to