public class Placement
extends java.lang.Object
implements java.io.Serializable
Describes the placement for the instance.
Constructor and Description |
---|
Placement()
Default constructor for a new Placement object.
|
Placement(java.lang.String availabilityZone)
Constructs a new Placement object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAffinity()
The affinity setting for the instance on the Dedicated host.
|
java.lang.String |
getAvailabilityZone()
The Availability Zone of the instance.
|
java.lang.String |
getGroupName()
The name of the placement group the instance is in (for cluster
compute instances).
|
java.lang.String |
getHostId()
The ID of the Dedicted host on which the instance resides.
|
java.lang.String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
int |
hashCode() |
void |
setAffinity(java.lang.String affinity)
The affinity setting for the instance on the Dedicated host.
|
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.
|
void |
setGroupName(java.lang.String groupName)
The name of the placement group the instance is in (for cluster
compute instances).
|
void |
setHostId(java.lang.String hostId)
The ID of the Dedicted host on which the instance resides.
|
void |
setTenancy(java.lang.String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
void |
setTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Placement |
withAffinity(java.lang.String affinity)
The affinity setting for the instance on the Dedicated host.
|
Placement |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.
|
Placement |
withGroupName(java.lang.String groupName)
The name of the placement group the instance is in (for cluster
compute instances).
|
Placement |
withHostId(java.lang.String hostId)
The ID of the Dedicted host on which the instance resides.
|
Placement |
withTenancy(java.lang.String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
Placement |
withTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
public Placement()
public Placement(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone of the instance.public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone
- The Availability Zone of the instance.public Placement withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone of the instance.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- The name of the placement group the instance is in (for cluster
compute instances).public Placement withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the placement group the instance is in (for cluster
compute instances).public java.lang.String getTenancy()
dedicated
runs on
single-tenant hardware. The host
tenancy is not supported
for the ImportInstance command.
Constraints:
Allowed Values: default, dedicated, host
dedicated
runs on
single-tenant hardware. The host
tenancy is not supported
for the ImportInstance command.Tenancy
public void setTenancy(java.lang.String tenancy)
dedicated
runs on
single-tenant hardware. The host
tenancy is not supported
for the ImportInstance command.
Constraints:
Allowed Values: default, dedicated, host
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. The host
tenancy is not supported
for the ImportInstance command.Tenancy
public Placement withTenancy(java.lang.String tenancy)
dedicated
runs on
single-tenant hardware. The host
tenancy is not supported
for the ImportInstance command.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated, host
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. The host
tenancy is not supported
for the ImportInstance command.Tenancy
public void setTenancy(Tenancy tenancy)
dedicated
runs on
single-tenant hardware. The host
tenancy is not supported
for the ImportInstance command.
Constraints:
Allowed Values: default, dedicated, host
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. The host
tenancy is not supported
for the ImportInstance command.Tenancy
public Placement withTenancy(Tenancy tenancy)
dedicated
runs on
single-tenant hardware. The host
tenancy is not supported
for the ImportInstance command.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: default, dedicated, host
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. The host
tenancy is not supported
for the ImportInstance command.Tenancy
public java.lang.String getHostId()
public void setHostId(java.lang.String hostId)
hostId
- The ID of the Dedicted host on which the instance resides. This
parameter is not support for the ImportInstance command.public Placement withHostId(java.lang.String hostId)
Returns a reference to this object so that method calls can be chained together.
hostId
- The ID of the Dedicted host on which the instance resides. This
parameter is not support for the ImportInstance command.public java.lang.String getAffinity()
public void setAffinity(java.lang.String affinity)
affinity
- The affinity setting for the instance on the Dedicated host. This
parameter is not supported for the ImportInstance command.public Placement withAffinity(java.lang.String affinity)
Returns a reference to this object so that method calls can be chained together.
affinity
- The affinity setting for the instance on the Dedicated host. This
parameter is not supported for the ImportInstance command.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.