public class SpotPlacement
extends java.lang.Object
implements java.io.Serializable
Describes Spot instance placement.
Constructor and Description |
---|
SpotPlacement()
Default constructor for a new SpotPlacement object.
|
SpotPlacement(java.lang.String availabilityZone)
Constructs a new SpotPlacement object.
|
Modifier and Type | Method and Description |
---|---|
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).
|
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 java.lang.String getAvailabilityZone()
[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 void setAvailabilityZone(java.lang.String availabilityZone)
[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 SpotPlacement withAvailabilityZone(java.lang.String availabilityZone)
[Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
Returns a reference to this object so that method calls can be chained together.
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 getGroupName()
public void setGroupName(java.lang.String groupName)
groupName
- The name of the placement group (for cluster instances).public SpotPlacement withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the placement group (for cluster instances).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.