OperationStatus Class

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

Implements

public final class OperationStatus
implements JsonSerializable<OperationStatus>

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

Constructor Summary

Constructor Description
OperationStatus()

Creates an instance of OperationStatus class.

Method Summary

Modifier and Type Method and Description
Code code()

Get the code property: The operation status code.

static OperationStatus fromJson(JsonReader jsonReader)

Reads an instance of OperationStatus from the JsonReader.

String message()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationStatus withCode(Code 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 Code code()

Get the code property: The operation status code.

Returns:

the code value.

fromJson

public static OperationStatus fromJson(JsonReader jsonReader)

Reads an instance of OperationStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationStatus if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OperationStatus.

message

public String message()

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

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCode

public OperationStatus withCode(Code 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