Class CfnClusterCapacityProviderAssociationsProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnClusterCapacityProviderAssociationsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterCapacityProviderAssociationsProps>
- Enclosing interface:
CfnClusterCapacityProviderAssociationsProps
@Stability(Stable)
public static final class CfnClusterCapacityProviderAssociationsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterCapacityProviderAssociationsProps>
A builder for
CfnClusterCapacityProviderAssociationsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityProviders(List<String> capacityProviders) Sets the value ofCfnClusterCapacityProviderAssociationsProps.getCapacityProviders()Sets the value ofCfnClusterCapacityProviderAssociationsProps.getCluster()defaultCapacityProviderStrategy(List<? extends Object> defaultCapacityProviderStrategy) defaultCapacityProviderStrategy(IResolvable defaultCapacityProviderStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
@Stability(Stable) public CfnClusterCapacityProviderAssociationsProps.Builder cluster(String cluster) Sets the value ofCfnClusterCapacityProviderAssociationsProps.getCluster()- Parameters:
cluster- The cluster the capacity provider association is the target of. This parameter is required.- Returns:
this
-
defaultCapacityProviderStrategy
@Stability(Stable) public CfnClusterCapacityProviderAssociationsProps.Builder defaultCapacityProviderStrategy(IResolvable defaultCapacityProviderStrategy) - Parameters:
defaultCapacityProviderStrategy- The default capacity provider strategy to associate with the cluster. This parameter is required.- Returns:
this
-
defaultCapacityProviderStrategy
@Stability(Stable) public CfnClusterCapacityProviderAssociationsProps.Builder defaultCapacityProviderStrategy(List<? extends Object> defaultCapacityProviderStrategy) - Parameters:
defaultCapacityProviderStrategy- The default capacity provider strategy to associate with the cluster. This parameter is required.- Returns:
this
-
capacityProviders
@Stability(Stable) public CfnClusterCapacityProviderAssociationsProps.Builder capacityProviders(List<String> capacityProviders) Sets the value ofCfnClusterCapacityProviderAssociationsProps.getCapacityProviders()- Parameters:
capacityProviders- The capacity providers to associate with the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterCapacityProviderAssociationsProps>- Returns:
- a new instance of
CfnClusterCapacityProviderAssociationsProps - Throws:
NullPointerException- if any required attribute was not provided
-