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