public class SpotPlacement
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes Spot instance placement.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
availabilityZone
The Availability Zone.
|
private java.lang.String |
groupName
The name of the placement group (for cluster instances).
|
Constructor and Description |
---|
SpotPlacement()
Default constructor for SpotPlacement object.
|
SpotPlacement(java.lang.String availabilityZone)
Constructs a new SpotPlacement object.
|
Modifier and Type | Method and Description |
---|---|
SpotPlacement |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAvailabilityZone()
The Availability Zone.
|
java.lang.String |
getGroupName()
The name of the placement group (for cluster instances).
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
|
void |
setGroupName(java.lang.String groupName)
The name of the placement group (for cluster instances).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotPlacement |
withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
|
SpotPlacement |
withGroupName(java.lang.String groupName)
The name of the placement group (for cluster instances).
|
private java.lang.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".
private java.lang.String groupName
The name of the placement group (for cluster instances).
public SpotPlacement()
public SpotPlacement(java.lang.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(java.lang.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 java.lang.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(java.lang.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(java.lang.String groupName)
The name of the placement group (for cluster instances).
groupName
- The name of the placement group (for cluster instances).public java.lang.String getGroupName()
The name of the placement group (for cluster instances).
public SpotPlacement withGroupName(java.lang.String groupName)
The name of the placement group (for cluster instances).
groupName
- The name of the placement group (for cluster instances).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SpotPlacement clone()
clone
in class java.lang.Object