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 Placement
clone()
boolean
equals(Object obj)
String
getAffinity()
The affinity setting for the instance on the Dedicated host.String
getAvailabilityZone()
The Availability Zone of the instance.String
getGroupName()
The name of the placement group the instance is in (for cluster compute instances).String
getHostId()
The ID of the Dedicted host on which the instance resides.String
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).int
hashCode()
void
setAffinity(String affinity)
The affinity setting for the instance on the Dedicated host.void
setAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.void
setGroupName(String groupName)
The name of the placement group the instance is in (for cluster compute instances).void
setHostId(String hostId)
The ID of the Dedicted host on which the instance resides.void
setTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).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; useful for testing and debugging.Placement
withAffinity(String affinity)
The affinity setting for the instance on the Dedicated host.Placement
withAvailabilityZone(String availabilityZone)
The Availability Zone of the instance.Placement
withGroupName(String groupName)
The name of the placement group the instance is in (for cluster compute instances).Placement
withHostId(String hostId)
The ID of the Dedicted host on which the instance resides.Placement
withTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).Placement
withTenancy(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
dedicated
runs on single-tenant hardware. Thehost
tenancy 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 ofdedicated
runs on single-tenant hardware. Thehost
tenancy 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
dedicated
runs on single-tenant hardware. Thehost
tenancy 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
dedicated
runs on single-tenant hardware. Thehost
tenancy 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
dedicated
runs on single-tenant hardware. Thehost
tenancy 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 ofdedicated
runs on single-tenant hardware. Thehost
tenancy 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
dedicated
runs on single-tenant hardware. Thehost
tenancy 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 ofdedicated
runs on single-tenant hardware. Thehost
tenancy 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
dedicated
runs on single-tenant hardware. Thehost
tenancy 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 ofdedicated
runs on single-tenant hardware. Thehost
tenancy 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-