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