/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ECS { namespace Model { /** */ class UpdateClusterSettingsRequest : public ECSRequest { public: AWS_ECS_API UpdateClusterSettingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateClusterSettings"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the cluster to modify the settings for.

*/ inline const Aws::String& GetCluster() const{ return m_cluster; } /** *

The name of the cluster to modify the settings for.

*/ inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; } /** *

The name of the cluster to modify the settings for.

*/ inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; } /** *

The name of the cluster to modify the settings for.

*/ inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); } /** *

The name of the cluster to modify the settings for.

*/ inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); } /** *

The name of the cluster to modify the settings for.

*/ inline UpdateClusterSettingsRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;} /** *

The name of the cluster to modify the settings for.

*/ inline UpdateClusterSettingsRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;} /** *

The name of the cluster to modify the settings for.

*/ inline UpdateClusterSettingsRequest& WithCluster(const char* value) { SetCluster(value); return *this;} /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline const Aws::Vector& GetSettings() const{ return m_settings; } /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline void SetSettings(const Aws::Vector& value) { m_settingsHasBeenSet = true; m_settings = value; } /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline void SetSettings(Aws::Vector&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline UpdateClusterSettingsRequest& WithSettings(const Aws::Vector& value) { SetSettings(value); return *this;} /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline UpdateClusterSettingsRequest& WithSettings(Aws::Vector&& value) { SetSettings(std::move(value)); return *this;} /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline UpdateClusterSettingsRequest& AddSettings(const ClusterSetting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; } /** *

The setting to use by default for a cluster. This parameter is used to turn * on CloudWatch Container Insights for a cluster. If this value is specified, it * overrides the containerInsights value set with * PutAccountSetting or PutAccountSettingDefault.

*

Currently, if you delete an existing cluster that does not have Container * Insights turned on, and then create a new cluster with the same name with * Container Insights tuned on, Container Insights will not actually be turned on. * If you want to preserve the same name for your existing cluster and turn on * Container Insights, you must wait 7 days before you can re-create it.

* */ inline UpdateClusterSettingsRequest& AddSettings(ClusterSetting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; } private: Aws::String m_cluster; bool m_clusterHasBeenSet = false; Aws::Vector m_settings; bool m_settingsHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws