@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotPlacement extends Object implements Serializable, Cloneable
Describes Spot Instance placement.
Constructor and Description |
---|
SpotPlacement()
Default constructor for SpotPlacement object.
|
SpotPlacement(String availabilityZone)
Constructs a new SpotPlacement object.
|
Modifier and Type | Method and Description |
---|---|
SpotPlacement |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone.
|
String |
getGroupName()
The name of the placement group.
|
String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone.
|
void |
setGroupName(String groupName)
The name of the placement group.
|
void |
setTenancy(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).
|
String |
toString()
Returns a string representation of this object.
|
SpotPlacement |
withAvailabilityZone(String availabilityZone)
The Availability Zone.
|
SpotPlacement |
withGroupName(String groupName)
The name of the placement group.
|
SpotPlacement |
withTenancy(String tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
SpotPlacement |
withTenancy(Tenancy tenancy)
The tenancy of the instance (if the instance is running in a VPC).
|
public SpotPlacement()
public SpotPlacement(String availabilityZone)
availabilityZone
- The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
public void setAvailabilityZone(String availabilityZone)
The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
availabilityZone
- The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
public String getAvailabilityZone()
The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
public SpotPlacement withAvailabilityZone(String availabilityZone)
The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
availabilityZone
- The Availability Zone.
[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
public void setGroupName(String groupName)
The name of the placement group.
groupName
- The name of the placement group.public String getGroupName()
The name of the placement group.
public SpotPlacement withGroupName(String groupName)
The name of the placement group.
groupName
- The name of the placement group.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. The host
tenancy is not supported for Spot
Instances.
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
Spot Instances.Tenancy
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. The host
tenancy is not supported for Spot
Instances.
dedicated
runs on single-tenant hardware. The host
tenancy is not supported for
Spot Instances.Tenancy
public SpotPlacement 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. The host
tenancy is not supported for Spot
Instances.
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
Spot Instances.Tenancy
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. The host
tenancy is not supported for Spot
Instances.
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
Spot Instances.Tenancy
public SpotPlacement 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. The host
tenancy is not supported for Spot
Instances.
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
Spot Instances.Tenancy
public String toString()
toString
in class Object
Object.toString()
public SpotPlacement clone()