@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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
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. |
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Scale.Builder,Scale>
public static Scale.Builder builder()
public static Class<? extends Scale.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.