Class Scale
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.Scale
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Scale.Builder,Scale>
@Generated("software.amazon.awssdk:codegen") public final class Scale extends Object implements SdkPojo, Serializable, 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScale.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Scale.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Scale.Builder>serializableBuilderClass()Scale.BuildertoBuilder()StringtoString()Returns a string representation of this object.ScaleUnitunit()The unit of measure for the scale value.StringunitAsString()The unit of measure for the scale value.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, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
value
public final Double 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
public final ScaleUnit 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:
ScaleUnit
-
unitAsString
public final String 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:
ScaleUnit
-
toBuilder
public Scale.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Scale.Builder,Scale>
-
builder
public static Scale.Builder builder()
-
serializableBuilderClass
public static Class<? extends Scale.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-