StatusMessage Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.StatusMessage

Implements

public final class StatusMessage
implements JsonSerializable<StatusMessage>

Operation status message object.

Constructor Summary

Constructor Description
StatusMessage()

Creates an instance of StatusMessage class.

Method Summary

Modifier and Type Method and Description
ManagementError error()

Get the error property: The error reported by the operation.

static StatusMessage fromJson(JsonReader jsonReader)

Reads an instance of StatusMessage from the JsonReader.

String status()

Get the status property: Status of the deployment operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StatusMessage withError(ManagementError error)

Set the error property: The error reported by the operation.

StatusMessage withStatus(String status)

Set the status property: Status of the deployment operation.

Methods inherited from java.lang.Object

Constructor Details

StatusMessage

public StatusMessage()

Creates an instance of StatusMessage class.

Method Details

error

public ManagementError error()

Get the error property: The error reported by the operation.

Returns:

the error value.

fromJson

public static StatusMessage fromJson(JsonReader jsonReader)

Reads an instance of StatusMessage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StatusMessage 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 StatusMessage.

status

public String status()

Get the status property: Status of the deployment operation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withError

public StatusMessage withError(ManagementError error)

Set the error property: The error reported by the operation.

Parameters:

error - the error value to set.

Returns:

the StatusMessage object itself.

withStatus

public StatusMessage withStatus(String status)

Set the status property: Status of the deployment operation.

Parameters:

status - the status value to set.

Returns:

the StatusMessage object itself.

Applies to