@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2LaunchTemplateDataPlacementDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about the placement of an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2LaunchTemplateDataPlacementDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2LaunchTemplateDataPlacementDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAffinity()
The affinity setting for an instance on an EC2 Dedicated Host.
|
String |
getAvailabilityZone()
The Availability Zone for the instance.
|
String |
getGroupName()
The name of the placement group for the instance.
|
String |
getHostId()
The ID of the Dedicated Host for the instance.
|
String |
getHostResourceGroupArn()
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
|
Integer |
getPartitionNumber()
The number of the partition the instance should launch in.
|
String |
getSpreadDomain()
Reserved for future use.
|
String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAffinity(String affinity)
The affinity setting for an instance on an EC2 Dedicated Host.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
void |
setGroupName(String groupName)
The name of the placement group for the instance.
|
void |
setHostId(String hostId)
The ID of the Dedicated Host for the instance.
|
void |
setHostResourceGroupArn(String hostResourceGroupArn)
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
|
void |
setPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
|
void |
setSpreadDomain(String spreadDomain)
Reserved for future use.
|
void |
setTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withAffinity(String affinity)
The affinity setting for an instance on an EC2 Dedicated Host.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withGroupName(String groupName)
The name of the placement group for the instance.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withHostId(String hostId)
The ID of the Dedicated Host for the instance.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withHostResourceGroupArn(String hostResourceGroupArn)
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withSpreadDomain(String spreadDomain)
Reserved for future use.
|
AwsEc2LaunchTemplateDataPlacementDetails |
withTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
public AwsEc2LaunchTemplateDataPlacementDetails()
public void setAffinity(String affinity)
The affinity setting for an instance on an EC2 Dedicated Host.
affinity
- The affinity setting for an instance on an EC2 Dedicated Host.public String getAffinity()
The affinity setting for an instance on an EC2 Dedicated Host.
public AwsEc2LaunchTemplateDataPlacementDetails withAffinity(String affinity)
The affinity setting for an instance on an EC2 Dedicated Host.
affinity
- The affinity setting for an instance on an EC2 Dedicated Host.public void setAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public String getAvailabilityZone()
The Availability Zone for the instance.
public AwsEc2LaunchTemplateDataPlacementDetails withAvailabilityZone(String availabilityZone)
The Availability Zone for the instance.
availabilityZone
- The Availability Zone for the instance.public void setGroupName(String groupName)
The name of the placement group for the instance.
groupName
- The name of the placement group for the instance.public String getGroupName()
The name of the placement group for the instance.
public AwsEc2LaunchTemplateDataPlacementDetails withGroupName(String groupName)
The name of the placement group for the instance.
groupName
- The name of the placement group for the instance.public void setHostId(String hostId)
The ID of the Dedicated Host for the instance.
hostId
- The ID of the Dedicated Host for the instance.public String getHostId()
The ID of the Dedicated Host for the instance.
public AwsEc2LaunchTemplateDataPlacementDetails withHostId(String hostId)
The ID of the Dedicated Host for the instance.
hostId
- The ID of the Dedicated Host for the instance.public void setHostResourceGroupArn(String hostResourceGroupArn)
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
hostResourceGroupArn
- The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.public String getHostResourceGroupArn()
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
public AwsEc2LaunchTemplateDataPlacementDetails withHostResourceGroupArn(String hostResourceGroupArn)
The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.
hostResourceGroupArn
- The Amazon Resource Name (ARN) of the host resource group in which to launch the instances.public void setPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
partitionNumber
- The number of the partition the instance should launch in.public Integer getPartitionNumber()
The number of the partition the instance should launch in.
public AwsEc2LaunchTemplateDataPlacementDetails withPartitionNumber(Integer partitionNumber)
The number of the partition the instance should launch in.
partitionNumber
- The number of the partition the instance should launch in.public void setSpreadDomain(String spreadDomain)
Reserved for future use.
spreadDomain
- Reserved for future use.public String getSpreadDomain()
Reserved for future use.
public AwsEc2LaunchTemplateDataPlacementDetails withSpreadDomain(String spreadDomain)
Reserved for future use.
spreadDomain
- Reserved for future use.public void setTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
tenancy
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware.public String getTenancy()
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
public AwsEc2LaunchTemplateDataPlacementDetails withTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.
tenancy
- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated
runs on single-tenant hardware.public String toString()
toString
in class Object
Object.toString()
public AwsEc2LaunchTemplateDataPlacementDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.