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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Availability Zone.static SpotPlacementScore.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringregion()The Region.final Integerscore()The placement score, on a scale from1to10.static Class<? extends SpotPlacementScore.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
region
The Region.
- Returns:
- The Region.
-
availabilityZoneId
The Availability Zone.
- Returns:
- The Availability Zone.
-
score
The placement score, on a scale from
1to10. A score of10indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score of1indicates that your Spot request is not likely to succeed.- Returns:
- The placement score, on a scale from
1to10. A score of10indicates that your Spot request is highly likely to succeed in this Region or Availability Zone. A score of1indicates that your Spot request is not likely to succeed.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<SpotPlacementScore.Builder,SpotPlacementScore>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-