@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.
| 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 String capacityProvider()
The short name of the capacity provider.
public Integer weight()
The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
For example, if you have a strategy that contains two capacity providers and both have a weight of 1
, then when the base is satisfied, the tasks will be split evenly across the two capacity providers.
Using that same logic, if you specify a weight of 1 for capacityProviderA and a weight of
4 for capacityProviderB, then for every one task that is run using capacityProviderA,
four tasks would use capacityProviderB.
For example, if you have a strategy that contains two capacity providers and both have a weight of
1, then when the base is satisfied, the tasks will be split evenly across the
two capacity providers. Using that same logic, if you specify a weight of 1 for
capacityProviderA and a weight of 4 for capacityProviderB, then for every one
task that is run using capacityProviderA, four tasks would use capacityProviderB.
public 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.
public CapacityProviderStrategyItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CapacityProviderStrategyItem.Builder,CapacityProviderStrategyItem>public static CapacityProviderStrategyItem.Builder builder()
public static Class<? extends CapacityProviderStrategyItem.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.