/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECS { namespace Model { /** *

The settings to use when creating a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster.

See Also:

AWS * API Reference

*/ class ClusterSetting { public: AWS_ECS_API ClusterSetting(); AWS_ECS_API ClusterSetting(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API ClusterSetting& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the cluster setting. The value is containerInsights * .

*/ inline const ClusterSettingName& GetName() const{ return m_name; } /** *

The name of the cluster setting. The value is containerInsights * .

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the cluster setting. The value is containerInsights * .

*/ inline void SetName(const ClusterSettingName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the cluster setting. The value is containerInsights * .

*/ inline void SetName(ClusterSettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the cluster setting. The value is containerInsights * .

*/ inline ClusterSetting& WithName(const ClusterSettingName& value) { SetName(value); return *this;} /** *

The name of the cluster setting. The value is containerInsights * .

*/ inline ClusterSetting& WithName(ClusterSettingName&& value) { SetName(std::move(value)); return *this;} /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline ClusterSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline ClusterSetting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value to set for the cluster setting. The supported values are * enabled and disabled.

If you set * name to containerInsights and value to * enabled, CloudWatch Container Insights will be on for the cluster, * otherwise it will be off unless the containerInsights account * setting is turned on. If a cluster value is specified, it will override the * containerInsights value set with PutAccountSetting * or PutAccountSettingDefault.

*/ inline ClusterSetting& WithValue(const char* value) { SetValue(value); return *this;} private: ClusterSettingName m_name; bool m_nameHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws