OperationStatus Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.OperationStatus

public final class OperationStatus

A status describing the success/failure of the enablement/disablement operation.

Constructor Summary

Constructor Description
OperationStatus()

Creates an instance of OperationStatus class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The operation status code.

String message()

Get the message property: Additional information regarding the success/failure of the operation.

void validate()

Validates the instance.

OperationStatus withCode(String code)

Set the code property: The operation status code.

OperationStatus withMessage(String message)

Set the message property: Additional information regarding the success/failure of the operation.

Methods inherited from java.lang.Object

Constructor Details

OperationStatus

public OperationStatus()

Creates an instance of OperationStatus class.

Method Details

code

public String code()

Get the code property: The operation status code.

Returns:

the code value.

message

public String message()

Get the message property: Additional information regarding the success/failure of the operation.

Returns:

the message value.

validate

public void validate()

Validates the instance.

withCode

public OperationStatus withCode(String code)

Set the code property: The operation status code.

Parameters:

code - the code value to set.

Returns:

the OperationStatus object itself.

withMessage

public OperationStatus withMessage(String message)

Set the message property: Additional information regarding the success/failure of the operation.

Parameters:

message - the message value to set.

Returns:

the OperationStatus object itself.

Applies to