Class Scale
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Scale.Builder,Scale>
A floating-point percentage of the desired number of tasks to place and keep running in the task set.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Scale.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends Scale.Builder>final StringtoString()Returns a string representation of this object.final ScaleUnitunit()The unit of measure for the scale value.final StringThe unit of measure for the scale value.final Doublevalue()The value, specified as a percent total of a service'sdesiredCount, to scale the task set.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
-
value
The value, specified as a percent total of a service's
desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.- Returns:
- The value, specified as a percent total of a service's
desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.
-
unit
The unit of measure for the scale value.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnScaleUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit of measure for the scale value.
- See Also:
-
unitAsString
The unit of measure for the scale value.
If the service returns an enum value that is not available in the current SDK version,
unitwill returnScaleUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromunitAsString().- Returns:
- The unit of measure for the scale value.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Scale.Builder,Scale>
-
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
-