179 lines
7.5 KiB
C
179 lines
7.5 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ecs/ECS_EXPORTS.h>
|
|||
|
|
#include <aws/ecs/model/ClusterSettingName.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ECS
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The settings to use when creating a cluster. This parameter is used to enable
|
|||
|
|
* CloudWatch Container Insights for a cluster.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ClusterSetting">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ECS_API ClusterSetting
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ClusterSetting();
|
|||
|
|
ClusterSetting(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
ClusterSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cluster setting. The only supported value is
|
|||
|
|
* <code>containerInsights</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ClusterSettingName& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cluster setting. The only supported value is
|
|||
|
|
* <code>containerInsights</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cluster setting. The only supported value is
|
|||
|
|
* <code>containerInsights</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const ClusterSettingName& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cluster setting. The only supported value is
|
|||
|
|
* <code>containerInsights</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(ClusterSettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cluster setting. The only supported value is
|
|||
|
|
* <code>containerInsights</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterSetting& WithName(const ClusterSettingName& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the cluster setting. The only supported value is
|
|||
|
|
* <code>containerInsights</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterSetting& WithName(ClusterSettingName&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetValue() const{ return m_value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterSetting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The value to set for the cluster setting. The supported values are
|
|||
|
|
* <code>enabled</code> and <code>disabled</code>. If <code>enabled</code> is
|
|||
|
|
* specified, CloudWatch Container Insights will be enabled for the cluster,
|
|||
|
|
* otherwise it will be disabled unless the <code>containerInsights</code> account
|
|||
|
|
* setting is enabled. If a cluster value is specified, it will override the
|
|||
|
|
* <code>containerInsights</code> value set with <a>PutAccountSetting</a> or
|
|||
|
|
* <a>PutAccountSettingDefault</a>.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterSetting& WithValue(const char* value) { SetValue(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
ClusterSettingName m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_value;
|
|||
|
|
bool m_valueHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ECS
|
|||
|
|
} // namespace Aws
|