@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityReservationTarget extends Object implements Serializable, Cloneable
Describes a target Capacity Reservation or Capacity Reservation group.
Constructor and Description |
---|
CapacityReservationTarget() |
Modifier and Type | Method and Description |
---|---|
CapacityReservationTarget |
clone() |
boolean |
equals(Object obj) |
String |
getCapacityReservationId()
The ID of the Capacity Reservation in which to run the instance.
|
String |
getCapacityReservationResourceGroupArn()
The ARN of the Capacity Reservation resource group in which to run the instance.
|
int |
hashCode() |
void |
setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation in which to run the instance.
|
void |
setCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The ARN of the Capacity Reservation resource group in which to run the instance.
|
String |
toString()
Returns a string representation of this object.
|
CapacityReservationTarget |
withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation in which to run the instance.
|
CapacityReservationTarget |
withCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The ARN of the Capacity Reservation resource group in which to run the instance.
|
public void setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation in which to run the instance.
capacityReservationId
- The ID of the Capacity Reservation in which to run the instance.public String getCapacityReservationId()
The ID of the Capacity Reservation in which to run the instance.
public CapacityReservationTarget withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation in which to run the instance.
capacityReservationId
- The ID of the Capacity Reservation in which to run the instance.public void setCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The ARN of the Capacity Reservation resource group in which to run the instance.
capacityReservationResourceGroupArn
- The ARN of the Capacity Reservation resource group in which to run the instance.public String getCapacityReservationResourceGroupArn()
The ARN of the Capacity Reservation resource group in which to run the instance.
public CapacityReservationTarget withCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The ARN of the Capacity Reservation resource group in which to run the instance.
capacityReservationResourceGroupArn
- The ARN of the Capacity Reservation resource group in which to run the instance.public String toString()
toString
in class Object
Object.toString()
public CapacityReservationTarget clone()