Class CfnCluster.ClusterSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnCluster.ClusterSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ClusterSettingsProperty>
- Enclosing interface:
- CfnCluster.ClusterSettingsProperty
@Stability(Stable)
public static final class CfnCluster.ClusterSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ClusterSettingsProperty>
A builder for
CfnCluster.ClusterSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ClusterSettingsProperty.getName()Sets the value ofCfnCluster.ClusterSettingsProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnCluster.ClusterSettingsProperty.getName()- Parameters:
name- The name of the cluster setting. The value iscontainerInsights.- Returns:
this
-
value
Sets the value ofCfnCluster.ClusterSettingsProperty.getValue()- Parameters:
value- The value to set for the cluster setting. The supported values areenabledanddisabled. If you setnametocontainerInsightsandvaluetoenabled, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless thecontainerInsightsaccount setting is turned on. If a cluster value is specified, it will override thecontainerInsightsvalue set with PutAccountSetting or PutAccountSettingDefault .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterSettingsProperty>- Returns:
- a new instance of
CfnCluster.ClusterSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-