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 Availability Zone group name.
|
int |
hashCode() |
void |
setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.
|
void |
setGroupName(java.lang.String groupName)
The Availability Zone group name.
|
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 Availability Zone group name.
|
public SpotPlacement()
public SpotPlacement(java.lang.String availabilityZone)
availabilityZone - The Availability Zone.public java.lang.String getAvailabilityZone()
public void setAvailabilityZone(java.lang.String availabilityZone)
availabilityZone - The Availability Zone.public SpotPlacement withAvailabilityZone(java.lang.String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone - The Availability Zone.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName - The Availability Zone group name.public SpotPlacement withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName - The Availability Zone group name.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object