Class Placement
- java.lang.Object
-
- com.amazonaws.services.ec2.model.Placement
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Placement extends Object implements Serializable, Cloneable
Describes the placement for the instance.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Placementclone()booleanequals(Object obj)StringgetAffinity()The affinity setting for the instance on the Dedicated host.StringgetAvailabilityZone()The Availability Zone of the instance.StringgetGroupName()The name of the placement group the instance is in (for cluster compute instances).StringgetHostId()The ID of the Dedicted host on which the instance resides.StringgetTenancy()The tenancy of the instance (if the instance is running in a VPC).inthashCode()voidsetAffinity(String affinity)The affinity setting for the instance on the Dedicated host.voidsetAvailabilityZone(String availabilityZone)The Availability Zone of the instance.voidsetGroupName(String groupName)The name of the placement group the instance is in (for cluster compute instances).voidsetHostId(String hostId)The ID of the Dedicted host on which the instance resides.voidsetTenancy(Tenancy tenancy)The tenancy of the instance (if the instance is running in a VPC).voidsetTenancy(String tenancy)The tenancy of the instance (if the instance is running in a VPC).StringtoString()Returns a string representation of this object; useful for testing and debugging.PlacementwithAffinity(String affinity)The affinity setting for the instance on the Dedicated host.PlacementwithAvailabilityZone(String availabilityZone)The Availability Zone of the instance.PlacementwithGroupName(String groupName)The name of the placement group the instance is in (for cluster compute instances).PlacementwithHostId(String hostId)The ID of the Dedicted host on which the instance resides.PlacementwithTenancy(Tenancy tenancy)The tenancy of the instance (if the instance is running in a VPC).PlacementwithTenancy(String tenancy)The tenancy of the instance (if the instance is running in a VPC).
-
-
-
Constructor Detail
-
Placement
public Placement()
Default constructor for Placement object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
Placement
public Placement(String availabilityZone)
Constructs a new Placement object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
availabilityZone- The Availability Zone of the instance.
-
-
Method Detail
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
- Parameters:
availabilityZone- The Availability Zone of the instance.
-
getAvailabilityZone
public String getAvailabilityZone()
The Availability Zone of the instance.
- Returns:
- The Availability Zone of the instance.
-
withAvailabilityZone
public Placement withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.
- Parameters:
availabilityZone- The Availability Zone of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupName
public void setGroupName(String groupName)
The name of the placement group the instance is in (for cluster compute instances).
- Parameters:
groupName- The name of the placement group the instance is in (for cluster compute instances).
-
getGroupName
public String getGroupName()
The name of the placement group the instance is in (for cluster compute instances).
- Returns:
- The name of the placement group the instance is in (for cluster compute instances).
-
withGroupName
public Placement withGroupName(String groupName)
The name of the placement group the instance is in (for cluster compute instances).
- Parameters:
groupName- The name of the placement group the instance is in (for cluster compute instances).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTenancy
public void setTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Parameters:
tenancy- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy ofdedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- See Also:
Tenancy
-
getTenancy
public String getTenancy()
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Returns:
- The tenancy of the instance (if the instance is running in a
VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command. - See Also:
Tenancy
-
withTenancy
public Placement withTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Parameters:
tenancy- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy ofdedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
-
setTenancy
public void setTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Parameters:
tenancy- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy ofdedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- See Also:
Tenancy
-
withTenancy
public Placement withTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Parameters:
tenancy- The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy ofdedicatedruns on single-tenant hardware. Thehosttenancy is not supported for the ImportInstance command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Tenancy
-
setHostId
public void setHostId(String hostId)
The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
- Parameters:
hostId- The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
-
getHostId
public String getHostId()
The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
- Returns:
- The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
-
withHostId
public Placement withHostId(String hostId)
The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
- Parameters:
hostId- The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAffinity
public void setAffinity(String affinity)
The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
- Parameters:
affinity- The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
-
getAffinity
public String getAffinity()
The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
- Returns:
- The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
-
withAffinity
public Placement withAffinity(String affinity)
The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
- Parameters:
affinity- The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-