@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SpotPlacementScore extends Object implements Serializable, Cloneable
The Spot placement score for this Region or Availability Zone. The score is calculated based on the assumption that
the capacity-optimized
allocation strategy is used and that all of the Availability Zones in the Region
can be used.
Constructor and Description |
---|
SpotPlacementScore() |
Modifier and Type | Method and Description |
---|---|
SpotPlacementScore |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZoneId()
The Availability Zone.
|
String |
getRegion()
The Region.
|
Integer |
getScore()
The placement score, on a scale from
1 to 10 . |
int |
hashCode() |
void |
setAvailabilityZoneId(String availabilityZoneId)
The Availability Zone.
|
void |
setRegion(String region)
The Region.
|
void |
setScore(Integer score)
The placement score, on a scale from
1 to 10 . |
String |
toString()
Returns a string representation of this object.
|
SpotPlacementScore |
withAvailabilityZoneId(String availabilityZoneId)
The Availability Zone.
|
SpotPlacementScore |
withRegion(String region)
The Region.
|
SpotPlacementScore |
withScore(Integer score)
The placement score, on a scale from
1 to 10 . |
public void setRegion(String region)
The Region.
region
- The Region.public String getRegion()
The Region.
public SpotPlacementScore withRegion(String region)
The Region.
region
- The Region.public void setAvailabilityZoneId(String availabilityZoneId)
The Availability Zone.
availabilityZoneId
- The Availability Zone.public String getAvailabilityZoneId()
The Availability Zone.
public SpotPlacementScore withAvailabilityZoneId(String availabilityZoneId)
The Availability Zone.
availabilityZoneId
- The Availability Zone.public void setScore(Integer score)
The placement score, on a scale from 1
to 10
. A score of 10
indicates that
your Spot request is highly likely to succeed in this Region or Availability Zone. A score of 1
indicates that your Spot request is not likely to succeed.
score
- The placement score, on a scale from 1
to 10
. A score of 10
indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score
of 1
indicates that your Spot request is not likely to succeed.public Integer getScore()
The placement score, on a scale from 1
to 10
. A score of 10
indicates that
your Spot request is highly likely to succeed in this Region or Availability Zone. A score of 1
indicates that your Spot request is not likely to succeed.
1
to 10
. A score of 10
indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score
of 1
indicates that your Spot request is not likely to succeed.public SpotPlacementScore withScore(Integer score)
The placement score, on a scale from 1
to 10
. A score of 10
indicates that
your Spot request is highly likely to succeed in this Region or Availability Zone. A score of 1
indicates that your Spot request is not likely to succeed.
score
- The placement score, on a scale from 1
to 10
. A score of 10
indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score
of 1
indicates that your Spot request is not likely to succeed.public String toString()
toString
in class Object
Object.toString()
public SpotPlacementScore clone()