@Stability(value=Experimental) public static final class CapacityProviderStrategy.Builder extends Object implements software.amazon.jsii.Builder<CapacityProviderStrategy>
CapacityProviderStrategy| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CapacityProviderStrategy.Builder |
base(Number base)
Sets the value of
CapacityProviderStrategy.getBase() |
CapacityProviderStrategy |
build()
Builds the configured instance.
|
CapacityProviderStrategy.Builder |
capacityProvider(String capacityProvider)
Sets the value of
CapacityProviderStrategy.getCapacityProvider() |
CapacityProviderStrategy.Builder |
weight(Number weight)
Sets the value of
CapacityProviderStrategy.getWeight() |
@Stability(value=Experimental) public CapacityProviderStrategy.Builder capacityProvider(String capacityProvider)
CapacityProviderStrategy.getCapacityProvider()capacityProvider - The name of the capacity provider. This parameter is required.this@Stability(value=Experimental) public CapacityProviderStrategy.Builder base(Number base)
CapacityProviderStrategy.getBase()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.this@Stability(value=Experimental) public CapacityProviderStrategy.Builder weight(Number weight)
CapacityProviderStrategy.getWeight()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.this@Stability(value=Experimental) public CapacityProviderStrategy build()
build in interface software.amazon.jsii.Builder<CapacityProviderStrategy>CapacityProviderStrategyNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.