ReservationExtendedStatusInfo Class

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

Implements

public final class ReservationExtendedStatusInfo
implements JsonSerializable<ReservationExtendedStatusInfo>

Extended status information for the reservation.

Constructor Summary

Constructor Description
ReservationExtendedStatusInfo()

Creates an instance of ReservationExtendedStatusInfo class.

Method Summary

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

Reads an instance of ReservationExtendedStatusInfo from the JsonReader.

String message()

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

ExtendedStatusDefinitionProperties properties()

Get the properties property: Properties for extended status information.

ReservationStatusCode statusCode()

Get the statusCode property: The status of the reservation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReservationExtendedStatusInfo withMessage(String message)

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

ReservationExtendedStatusInfo withProperties(ExtendedStatusDefinitionProperties properties)

Set the properties property: Properties for extended status information.

ReservationExtendedStatusInfo withStatusCode(ReservationStatusCode statusCode)

Set the statusCode property: The status of the reservation.

Methods inherited from java.lang.Object

Constructor Details

ReservationExtendedStatusInfo

public ReservationExtendedStatusInfo()

Creates an instance of ReservationExtendedStatusInfo class.

Method Details

fromJson

public static ReservationExtendedStatusInfo fromJson(JsonReader jsonReader)

Reads an instance of ReservationExtendedStatusInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

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

Returns:

the message value.

properties

public ExtendedStatusDefinitionProperties properties()

Get the properties property: Properties for extended status information.

Returns:

the properties value.

statusCode

public ReservationStatusCode statusCode()

Get the statusCode property: The status of the reservation.

Returns:

the statusCode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessage

public ReservationExtendedStatusInfo 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 ReservationExtendedStatusInfo object itself.

withProperties

public ReservationExtendedStatusInfo withProperties(ExtendedStatusDefinitionProperties properties)

Set the properties property: Properties for extended status information.

Parameters:

properties - the properties value to set.

Returns:

the ReservationExtendedStatusInfo object itself.

withStatusCode

public ReservationExtendedStatusInfo withStatusCode(ReservationStatusCode statusCode)

Set the statusCode property: The status of the reservation.

Parameters:

statusCode - the statusCode value to set.

Returns:

the ReservationExtendedStatusInfo object itself.

Applies to