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
-
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 areenabled
anddisabled
. If you setname
tocontainerInsights
andvalue
toenabled
, CloudWatch Container Insights will be on for the cluster, otherwise it will be off unless thecontainerInsights
account setting is turned on. If a cluster value is specified, it will override thecontainerInsights
value set with PutAccountSetting or PutAccountSettingDefault .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterSettingsProperty>
- Returns:
- a new instance of
CfnCluster.ClusterSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-