@Generated(value="software.amazon.awssdk:codegen") public final class CapacityProviderStrategyItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CapacityProviderStrategyItem.Builder,CapacityProviderStrategyItem>
The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CapacityProviderStrategyItem.Builder |
| Modifier and Type | Method and Description |
|---|---|
Integer |
base()
The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
|
static CapacityProviderStrategyItem.Builder |
builder() |
String |
capacityProvider()
The short name of the capacity provider.
|
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 CapacityProviderStrategyItem.Builder> |
serializableBuilderClass() |
CapacityProviderStrategyItem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
weight()
The weight value designates the relative percentage of the total number of tasks launched that should use the
specified capacity provider.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String capacityProvider()
The short name of the capacity provider.
public final Integer weight()
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.
public final Integer base()
The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
public CapacityProviderStrategyItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CapacityProviderStrategyItem.Builder,CapacityProviderStrategyItem>public static CapacityProviderStrategyItem.Builder builder()
public static Class<? extends CapacityProviderStrategyItem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.