Class CfnPipePropsMixin.CapacityProviderStrategyItemProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pipes.CfnPipePropsMixin.CapacityProviderStrategyItemProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.CapacityProviderStrategyItemProperty>
- Enclosing interface:
CfnPipePropsMixin.CapacityProviderStrategyItemProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.CapacityProviderStrategyItemProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.CapacityProviderStrategyItemProperty>
A builder for
CfnPipePropsMixin.CapacityProviderStrategyItemProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPipePropsMixin.CapacityProviderStrategyItemProperty.getBase()build()Builds the configured instance.capacityProvider(String capacityProvider) Sets the value ofCfnPipePropsMixin.CapacityProviderStrategyItemProperty.getWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
base
@Stability(Stable) public CfnPipePropsMixin.CapacityProviderStrategyItemProperty.Builder base(Number base) Sets the value ofCfnPipePropsMixin.CapacityProviderStrategyItemProperty.getBase()- Parameters:
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.- Returns:
this
-
capacityProvider
@Stability(Stable) public CfnPipePropsMixin.CapacityProviderStrategyItemProperty.Builder capacityProvider(String capacityProvider) - Parameters:
capacityProvider- The short name of the capacity provider.- Returns:
this
-
weight
@Stability(Stable) public CfnPipePropsMixin.CapacityProviderStrategyItemProperty.Builder weight(Number weight) Sets the value ofCfnPipePropsMixin.CapacityProviderStrategyItemProperty.getWeight()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.CapacityProviderStrategyItemProperty>- Returns:
- a new instance of
CfnPipePropsMixin.CapacityProviderStrategyItemProperty - Throws:
NullPointerException- if any required attribute was not provided
-