@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 service. This is used
when a service uses the CODE_DEPLOY
deployment controller type.
Modifier and Type | Class and Description |
---|---|
static interface |
Scale.Builder |
Modifier and Type | Method and Description |
---|---|
static Scale.Builder |
builder() |
boolean |
equals(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, wait
copy
public Double value()
The value, specified as a percent total of a service's desiredCount
, to scale the task set.
desiredCount
, to scale the task set.public 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()
.
ScaleUnit
public 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()
.
ScaleUnit
public Scale.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Scale.Builder,Scale>
public static Scale.Builder builder()
public static Class<? extends Scale.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.