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
-
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
-
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. This parameter is required.- Returns:
this
-
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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClusterCapacityProviderAssociationsProps>
- Returns:
- a new instance of
CfnClusterCapacityProviderAssociationsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-