@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplateCapacityReservationSpecificationResponse extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateCapacityReservationSpecificationResponse.Builder,LaunchTemplateCapacityReservationSpecificationResponse>
Information about the Capacity Reservation targeting option.
Modifier and Type | Class and Description |
---|---|
static interface |
LaunchTemplateCapacityReservationSpecificationResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static LaunchTemplateCapacityReservationSpecificationResponse.Builder |
builder() |
CapacityReservationPreference |
capacityReservationPreference()
Indicates the instance's Capacity Reservation preferences.
|
String |
capacityReservationPreferenceAsString()
Indicates the instance's Capacity Reservation preferences.
|
CapacityReservationTargetResponse |
capacityReservationTarget()
Information about the target Capacity Reservation or Capacity Reservation group.
|
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 LaunchTemplateCapacityReservationSpecificationResponse.Builder> |
serializableBuilderClass() |
LaunchTemplateCapacityReservationSpecificationResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final 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 final 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 final CapacityReservationTargetResponse capacityReservationTarget()
Information about the target Capacity Reservation or Capacity Reservation group.
public LaunchTemplateCapacityReservationSpecificationResponse.Builder toBuilder()
public static LaunchTemplateCapacityReservationSpecificationResponse.Builder builder()
public static Class<? extends LaunchTemplateCapacityReservationSpecificationResponse.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2023. All rights reserved.