CapacityReservationStateInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.CapacityReservationStateInfo

Implements

public final class CapacityReservationStateInfo
implements JsonSerializable<CapacityReservationStateInfo>

Details related to the current state for a Future capacity reservation.

Method Summary

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

Reads an instance of CapacityReservationStateInfo from the JsonReader.

ReservationState reservationState()

Get the reservationState property: The current state of the capacity reservation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static CapacityReservationStateInfo fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationStateInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reservationState

public ReservationState reservationState()

Get the reservationState property: The current state of the capacity reservation.

Returns:

the reservationState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to