CapacityReservationInstanceViewWithName Class

public final class CapacityReservationInstanceViewWithName
extends CapacityReservationInstanceView

The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group.

Method Summary

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

Reads an instance of CapacityReservationInstanceViewWithName from the JsonReader.

String name()

Get the name property: The name of the capacity reservation.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
CapacityReservationUtilization utilizationInfo()

Get the utilizationInfo property: Unutilized capacity of the capacity reservation.

void validate()

Validates the instance.

Methods inherited from CapacityReservationInstanceView

Methods inherited from java.lang.Object

Method Details

fromJson

public static CapacityReservationInstanceViewWithName fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationInstanceViewWithName from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of the capacity reservation.

Returns:

the name value.

statuses

public List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

Overrides:

CapacityReservationInstanceViewWithName.statuses()

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CapacityReservationInstanceViewWithName.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

utilizationInfo

public CapacityReservationUtilization utilizationInfo()

Get the utilizationInfo property: Unutilized capacity of the capacity reservation.

Overrides:

CapacityReservationInstanceViewWithName.utilizationInfo()

Returns:

the utilizationInfo value.

validate

public void validate()

Validates the instance.

Overrides:

CapacityReservationInstanceViewWithName.validate()

Applies to