Class SpotPlacement
- All Implemented Interfaces:
Serializable, Cloneable
Describes Spot instance placement.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SpotPlacement object.SpotPlacement(String availabilityZone) Constructs a new SpotPlacement object. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe Availability Zone.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).toString()Returns a string representation of this object; useful for testing and debugging.withAvailabilityZone(String availabilityZone) The Availability Zone.withGroupName(String groupName) The name of the placement group (for cluster instances).
-
Constructor Details
-
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
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 Details
-
setAvailabilityZone
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
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
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
The name of the placement group (for cluster instances).
- Parameters:
groupName- The name of the placement group (for cluster instances).
-
getGroupName
The name of the placement group (for cluster instances).
- Returns:
- The name of the placement group (for cluster instances).
-
withGroupName
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
-
equals
-
hashCode
-
clone
-