@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails extends Object implements Serializable, Cloneable, StructuredPojo
Information about the target Capacity Reservation or Capacity Reservation group in which to run an Amazon EC2 instance.
| Constructor and Description |
|---|
AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails() |
| Modifier and Type | Method and Description |
|---|---|
AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails |
clone() |
boolean |
equals(Object obj) |
String |
getCapacityReservationId()
The ID of the Capacity Reservation in which to run the instance.
|
String |
getCapacityReservationResourceGroupArn()
The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation in which to run the instance.
|
void |
setCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails |
withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation in which to run the instance.
|
AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails |
withCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.
|
public AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails()
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 AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails 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 Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.
capacityReservationResourceGroupArn - The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.public String getCapacityReservationResourceGroupArn()
The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.
public AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails withCapacityReservationResourceGroupArn(String capacityReservationResourceGroupArn)
The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.
capacityReservationResourceGroupArn - The Amazon Resource Name (ARN) of the Capacity Reservation resource group in which to run the instance.public String toString()
toString in class ObjectObject.toString()public AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.