public class SpotPlacement extends Object implements Serializable
Describes where an Amazon EC2 instance is running within an Amazon EC2 region.
Constructor and Description |
---|
SpotPlacement()
Default constructor for a new SpotPlacement object.
|
SpotPlacement(String availabilityZone)
Constructs a new SpotPlacement object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The availability zone in which an Amazon EC2 instance runs.
|
String |
getGroupName()
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.
|
void |
setGroupName(String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotPlacement |
withAvailabilityZone(String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.
|
SpotPlacement |
withGroupName(String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance
runs.
|
public SpotPlacement()
public SpotPlacement(String availabilityZone)
availabilityZone
- The availability zone in which an Amazon EC2
instance runs.public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The availability zone in which an Amazon EC2 instance runs.public SpotPlacement withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The availability zone in which an Amazon EC2 instance runs.public String getGroupName()
public void setGroupName(String groupName)
groupName
- The name of the PlacementGroup in which an Amazon EC2 instance
runs. Placement groups are primarily used for launching High
Performance Computing instances in the same group to ensure fast
connection speeds.public SpotPlacement withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName
- The name of the PlacementGroup in which an Amazon EC2 instance
runs. Placement groups are primarily used for launching High
Performance Computing instances in the same group to ensure fast
connection speeds.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.