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 (for cluster instances).
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone.
|
void |
setGroupName(String groupName)
The name of the placement group (for cluster instances).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SpotPlacement |
withAvailabilityZone(String availabilityZone)
The Availability Zone.
|
SpotPlacement |
withGroupName(String groupName)
The name of the placement group (for cluster instances).
|
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 (for cluster instances).
groupName
- The name of the placement group (for cluster instances).public String getGroupName()
The name of the placement group (for cluster instances).
public SpotPlacement withGroupName(String groupName)
The name of the placement group (for cluster instances).
groupName
- The name of the placement group (for cluster instances).public String toString()
toString
in class Object
Object.toString()
public SpotPlacement clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.