Class SpotPlacementScore
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.SpotPlacementScore
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SpotPlacementScore.Builder,SpotPlacementScore>
@Generated("software.amazon.awssdk:codegen") public final class SpotPlacementScore extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SpotPlacementScore.Builder,SpotPlacementScore>
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SpotPlacementScore.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
availabilityZoneId()
The Availability Zone.static SpotPlacementScore.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
region()
The Region.Integer
score()
The placement score, on a scale from1
to10
.List<SdkField<?>>
sdkFields()
static Class<? extends SpotPlacementScore.Builder>
serializableBuilderClass()
SpotPlacementScore.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
region
public final String region()
The Region.
- Returns:
- The Region.
-
availabilityZoneId
public final String availabilityZoneId()
The Availability Zone.
- Returns:
- The Availability Zone.
-
score
public final Integer score()
The placement score, on a scale from
1
to10
. A score of10
indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score of1
indicates that your Spot request is not likely to succeed.- Returns:
- The placement score, on a scale from
1
to10
. A score of10
indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score of1
indicates that your Spot request is not likely to succeed.
-
toBuilder
public SpotPlacementScore.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SpotPlacementScore.Builder,SpotPlacementScore>
-
builder
public static SpotPlacementScore.Builder builder()
-
serializableBuilderClass
public static Class<? extends SpotPlacementScore.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-