@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplateCapacityReservationSpecificationRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateCapacityReservationSpecificationRequest.Builder,LaunchTemplateCapacityReservationSpecificationRequest>
Describes an instance's Capacity Reservation targeting option. You can specify only one option at a time. Use the
CapacityReservationPreference
parameter to configure the instance to run in On-Demand capacity or to run
in any open
Capacity Reservation that has matching attributes (instance type, platform, Availability
Zone). Use the CapacityReservationTarget
parameter to explicitly target a specific Capacity Reservation.
Modifier and Type | Class and Description |
---|---|
static interface |
LaunchTemplateCapacityReservationSpecificationRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static LaunchTemplateCapacityReservationSpecificationRequest.Builder |
builder() |
CapacityReservationPreference |
capacityReservationPreference()
Indicates the instance's Capacity Reservation preferences.
|
String |
capacityReservationPreferenceAsString()
Indicates the instance's Capacity Reservation preferences.
|
CapacityReservationTarget |
capacityReservationTarget()
Information about the target Capacity Reservation.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LaunchTemplateCapacityReservationSpecificationRequest.Builder> |
serializableBuilderClass() |
LaunchTemplateCapacityReservationSpecificationRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public CapacityReservationPreference capacityReservationPreference()
Indicates 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.
CapacityReservationPreference
public String capacityReservationPreferenceAsString()
Indicates 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.
CapacityReservationPreference
public CapacityReservationTarget capacityReservationTarget()
Information about the target Capacity Reservation.
public LaunchTemplateCapacityReservationSpecificationRequest.Builder toBuilder()
public static LaunchTemplateCapacityReservationSpecificationRequest.Builder builder()
public static Class<? extends LaunchTemplateCapacityReservationSpecificationRequest.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.