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 interface
Scale.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Scale.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends Scale.Builder>
serializableBuilderClass()
Scale.Builder
toBuilder()
String
toString()
Returns a string representation of this object.ScaleUnit
unit()
The unit of measure for the scale value.String
unitAsString()
The unit of measure for the scale value.Double
value()
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,
unit
will 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,
unit
will 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:
toBuilder
in 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:
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.
-
-