ExtendedStatusInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.ExtendedStatusInfo

Implements

public final class ExtendedStatusInfo
implements JsonSerializable<ExtendedStatusInfo>

Extended status information.

Constructor Summary

Constructor Description
ExtendedStatusInfo()

Creates an instance of ExtendedStatusInfo class.

Method Summary

Modifier and Type Method and Description
static ExtendedStatusInfo fromJson(JsonReader jsonReader)

Reads an instance of ExtendedStatusInfo from the JsonReader.

String message()

Get the message property: The message giving detailed information about the status code.

String statusCode()

Get the statusCode property: Status code providing additional information.

String subscriptionId()

Get the subscriptionId property: The subscription that has failed credit line check.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExtendedStatusInfo withMessage(String message)

Set the message property: The message giving detailed information about the status code.

ExtendedStatusInfo withStatusCode(String statusCode)

Set the statusCode property: Status code providing additional information.

ExtendedStatusInfo withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The subscription that has failed credit line check.

Methods inherited from java.lang.Object

Constructor Details

ExtendedStatusInfo

public ExtendedStatusInfo()

Creates an instance of ExtendedStatusInfo class.

Method Details

fromJson

public static ExtendedStatusInfo fromJson(JsonReader jsonReader)

Reads an instance of ExtendedStatusInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: The message giving detailed information about the status code.

Returns:

the message value.

statusCode

public String statusCode()

Get the statusCode property: Status code providing additional information.

Returns:

the statusCode value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription that has failed credit line check.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessage

public ExtendedStatusInfo withMessage(String message)

Set the message property: The message giving detailed information about the status code.

Parameters:

message - the message value to set.

Returns:

the ExtendedStatusInfo object itself.

withStatusCode

public ExtendedStatusInfo withStatusCode(String statusCode)

Set the statusCode property: Status code providing additional information.

Parameters:

statusCode - the statusCode value to set.

Returns:

the ExtendedStatusInfo object itself.

withSubscriptionId

public ExtendedStatusInfo withSubscriptionId(String subscriptionId)

Set the subscriptionId property: The subscription that has failed credit line check.

Parameters:

subscriptionId - the subscriptionId value to set.

Returns:

the ExtendedStatusInfo object itself.

Applies to