Partager via


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.

Constructor Summary

Constructor Description
CapacityReservationInstanceViewWithName()

Creates an instance of CapacityReservationInstanceViewWithName class.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CapacityReservationInstanceViewWithName withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

CapacityReservationInstanceViewWithName withUtilizationInfo(CapacityReservationUtilization utilizationInfo)

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

Methods inherited from CapacityReservationInstanceView

Methods inherited from java.lang.Object

Constructor Details

CapacityReservationInstanceViewWithName

public CapacityReservationInstanceViewWithName()

Creates an instance of CapacityReservationInstanceViewWithName class.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CapacityReservationInstanceViewWithName.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

CapacityReservationInstanceViewWithName.validate()

withStatuses

public CapacityReservationInstanceViewWithName withStatuses(List statuses)

Set the statuses property: The resource status information.

Overrides:

CapacityReservationInstanceViewWithName.withStatuses(List<InstanceViewStatus> statuses)

Parameters:

statuses

withUtilizationInfo

public CapacityReservationInstanceViewWithName withUtilizationInfo(CapacityReservationUtilization utilizationInfo)

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

Overrides:

CapacityReservationInstanceViewWithName.withUtilizationInfo(CapacityReservationUtilization utilizationInfo)

Parameters:

utilizationInfo

Applies to