Class SpotPlacement
- java.lang.Object
-
- com.amazonaws.services.ec2.model.SpotPlacement
-
- All Implemented Interfaces:
Serializable,Cloneable
public class SpotPlacement extends Object implements Serializable, Cloneable
Describes Spot instance placement.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpotPlacement()Default constructor for SpotPlacement object.SpotPlacement(String availabilityZone)Constructs a new SpotPlacement object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpotPlacementclone()booleanequals(Object obj)StringgetAvailabilityZone()The Availability Zone.StringgetGroupName()The name of the placement group (for cluster instances).inthashCode()voidsetAvailabilityZone(String availabilityZone)The Availability Zone.voidsetGroupName(String groupName)The name of the placement group (for cluster instances).StringtoString()Returns a string representation of this object; useful for testing and debugging.SpotPlacementwithAvailabilityZone(String availabilityZone)The Availability Zone.SpotPlacementwithGroupName(String groupName)The name of the placement group (for cluster instances).
-
-
-
Constructor Detail
-
SpotPlacement
public SpotPlacement()
Default constructor for SpotPlacement object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
SpotPlacement
public SpotPlacement(String availabilityZone)
Constructs a new SpotPlacement object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
availabilityZone- The Availability Zone.[Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
-
-
Method Detail
-
setAvailabilityZone
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".
- Parameters:
availabilityZone- The Availability Zone.[Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
-
getAvailabilityZone
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".
- Returns:
- The Availability Zone.
[Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
-
withAvailabilityZone
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".
- Parameters:
availabilityZone- The Availability Zone.[Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupName
public void setGroupName(String groupName)
The name of the placement group (for cluster instances).
- Parameters:
groupName- The name of the placement group (for cluster instances).
-
getGroupName
public String getGroupName()
The name of the placement group (for cluster instances).
- Returns:
- The name of the placement group (for cluster instances).
-
withGroupName
public SpotPlacement withGroupName(String groupName)
The name of the placement group (for cluster instances).
- Parameters:
groupName- The name of the placement group (for cluster instances).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SpotPlacement clone()
-
-