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 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).
-
-
-
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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SpotPlacement clone()
-
-