@Generated(value="software.amazon.awssdk:codegen") public final class CapacityReservationSpecificationResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityReservationSpecificationResponse.Builder,CapacityReservationSpecificationResponse>
Describes the instance's Capacity Reservation targeting preferences. The action returns the
capacityReservationPreference response element if the instance is configured to run in On-Demand
capacity, or if it is configured in run in any open Capacity Reservation that has matching attributes
(instance type, platform, Availability Zone). The action returns the capacityReservationTarget response
element if the instance explicily targets a specific Capacity Reservation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CapacityReservationSpecificationResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CapacityReservationSpecificationResponse.Builder |
builder() |
CapacityReservationPreference |
capacityReservationPreference()
Describes the instance's Capacity Reservation preferences.
|
String |
capacityReservationPreferenceAsString()
Describes the instance's Capacity Reservation preferences.
|
CapacityReservationTargetResponse |
capacityReservationTarget()
Information about the targeted Capacity Reservation.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CapacityReservationSpecificationResponse.Builder> |
serializableBuilderClass() |
CapacityReservationSpecificationResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic CapacityReservationPreference capacityReservationPreference()
Describes the instance's Capacity Reservation preferences. Possible preferences include:
open - The instance can run in any open Capacity Reservation that has matching
attributes (instance type, platform, Availability Zone).
none - The instance avoids running in a Capacity Reservation even if one is available. The instance
runs in On-Demand capacity.
If the service returns an enum value that is not available in the current SDK version,
capacityReservationPreference will return CapacityReservationPreference.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from capacityReservationPreferenceAsString().
open - The instance can run in any open Capacity Reservation that has matching
attributes (instance type, platform, Availability Zone).
none - The instance avoids running in a Capacity Reservation even if one is available. The
instance runs in On-Demand capacity.
CapacityReservationPreferencepublic String capacityReservationPreferenceAsString()
Describes the instance's Capacity Reservation preferences. Possible preferences include:
open - The instance can run in any open Capacity Reservation that has matching
attributes (instance type, platform, Availability Zone).
none - The instance avoids running in a Capacity Reservation even if one is available. The instance
runs in On-Demand capacity.
If the service returns an enum value that is not available in the current SDK version,
capacityReservationPreference will return CapacityReservationPreference.UNKNOWN_TO_SDK_VERSION.
The raw value returned by the service is available from capacityReservationPreferenceAsString().
open - The instance can run in any open Capacity Reservation that has matching
attributes (instance type, platform, Availability Zone).
none - The instance avoids running in a Capacity Reservation even if one is available. The
instance runs in On-Demand capacity.
CapacityReservationPreferencepublic CapacityReservationTargetResponse capacityReservationTarget()
Information about the targeted Capacity Reservation.
public CapacityReservationSpecificationResponse.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<CapacityReservationSpecificationResponse.Builder,CapacityReservationSpecificationResponse>public static CapacityReservationSpecificationResponse.Builder builder()
public static Class<? extends CapacityReservationSpecificationResponse.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.