Class Placement
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the placement for the instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The affinity setting for the instance on the Dedicated host.The Availability Zone of the instance.The name of the placement group the instance is in (for cluster compute instances).The ID of the Dedicted host on which the instance resides.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
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).toString()
Returns a string representation of this object; useful for testing and debugging.withAffinity
(String affinity) The affinity setting for the instance on the Dedicated host.withAvailabilityZone
(String availabilityZone) The Availability Zone of the instance.withGroupName
(String groupName) The name of the placement group the instance is in (for cluster compute instances).withHostId
(String hostId) The ID of the Dedicted host on which the instance resides.withTenancy
(Tenancy tenancy) The tenancy of the instance (if the instance is running in a VPC).withTenancy
(String tenancy) The tenancy of the instance (if the instance is running in a VPC).
-
Constructor Details
-
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
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 Details
-
setAvailabilityZone
The Availability Zone of the instance.
- Parameters:
availabilityZone
- The Availability Zone of the instance.
-
getAvailabilityZone
The Availability Zone of the instance.
- Returns:
- The Availability Zone of the instance.
-
withAvailabilityZone
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
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
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
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
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:
-
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:
-
withTenancy
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:
-
setTenancy
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:
-
withTenancy
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:
-
setHostId
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
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-