@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateCapacityReservationSpecificationResponse extends Object implements Serializable, Cloneable
Information about the Capacity Reservation targeting option.
Constructor and Description |
---|
LaunchTemplateCapacityReservationSpecificationResponse() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateCapacityReservationSpecificationResponse |
clone() |
boolean |
equals(Object obj) |
String |
getCapacityReservationPreference()
Indicates the instance's Capacity Reservation preferences.
|
CapacityReservationTargetResponse |
getCapacityReservationTarget()
Information about the target Capacity Reservation or Capacity Reservation group.
|
int |
hashCode() |
void |
setCapacityReservationPreference(String capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences.
|
void |
setCapacityReservationTarget(CapacityReservationTargetResponse capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateCapacityReservationSpecificationResponse |
withCapacityReservationPreference(CapacityReservationPreference capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences.
|
LaunchTemplateCapacityReservationSpecificationResponse |
withCapacityReservationPreference(String capacityReservationPreference)
Indicates the instance's Capacity Reservation preferences.
|
LaunchTemplateCapacityReservationSpecificationResponse |
withCapacityReservationTarget(CapacityReservationTargetResponse capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.
|
public LaunchTemplateCapacityReservationSpecificationResponse()
public void setCapacityReservationPreference(String 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.
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.
CapacityReservationPreference
public String getCapacityReservationPreference()
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.
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 LaunchTemplateCapacityReservationSpecificationResponse withCapacityReservationPreference(String 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.
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.
CapacityReservationPreference
public LaunchTemplateCapacityReservationSpecificationResponse withCapacityReservationPreference(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.
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.
CapacityReservationPreference
public void setCapacityReservationTarget(CapacityReservationTargetResponse capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.
capacityReservationTarget
- Information about the target Capacity Reservation or Capacity Reservation group.public CapacityReservationTargetResponse getCapacityReservationTarget()
Information about the target Capacity Reservation or Capacity Reservation group.
public LaunchTemplateCapacityReservationSpecificationResponse withCapacityReservationTarget(CapacityReservationTargetResponse capacityReservationTarget)
Information about the target Capacity Reservation or Capacity Reservation group.
capacityReservationTarget
- Information about the target Capacity Reservation or Capacity Reservation group.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateCapacityReservationSpecificationResponse clone()