@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Scale.Builder |
| Modifier and Type | Method and 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's
desiredCount, to scale the task set. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
desiredCount, to scale the task set.
Accepted values are numbers between 0 and 100.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 return
ScaleUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
ScaleUnitpublic 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 return
ScaleUnit.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
unitAsString().
ScaleUnitpublic Scale.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Scale.Builder,Scale>public static Scale.Builder builder()
public static Class<? extends Scale.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.