Class ClusterSetting
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ClusterSetting
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ClusterSetting.Builder,ClusterSetting>
@Generated("software.amazon.awssdk:codegen") public final class ClusterSetting extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ClusterSetting.Builder,ClusterSetting>
The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ClusterSetting.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusterSetting.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
ClusterSettingName
name()
The name of the cluster setting.String
nameAsString()
The name of the cluster setting.List<SdkField<?>>
sdkFields()
static Class<? extends ClusterSetting.Builder>
serializableBuilderClass()
ClusterSetting.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
value()
The value to set for the cluster setting.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final ClusterSettingName name()
The name of the cluster setting. The value is
containerInsights
.If the service returns an enum value that is not available in the current SDK version,
name
will returnClusterSettingName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnameAsString()
.- Returns:
- The name of the cluster setting. The value is
containerInsights
. - See Also:
ClusterSettingName
-
nameAsString
public final String nameAsString()
The name of the cluster setting. The value is
containerInsights
.If the service returns an enum value that is not available in the current SDK version,
name
will returnClusterSettingName.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromnameAsString()
.- Returns:
- The name of the cluster setting. The value is
containerInsights
. - See Also:
ClusterSettingName
-
value
public final String value()
The value to set for the cluster setting. The supported values are
enabled
anddisabled
.If you set
name
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:
- The value to set for the cluster setting. The supported values are
enabled
anddisabled
.If you set
name
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.
-
toBuilder
public ClusterSetting.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ClusterSetting.Builder,ClusterSetting>
-
builder
public static ClusterSetting.Builder builder()
-
serializableBuilderClass
public static Class<? extends ClusterSetting.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-