AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterSetting.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ClusterSettingName.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
47 {
48 public:
49 AWS_ECS_API ClusterSetting() = default;
53
54
56
60 inline ClusterSettingName GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(ClusterSettingName value) { m_nameHasBeenSet = true; m_name = value; }
63 inline ClusterSetting& WithName(ClusterSettingName value) { SetName(value); return *this;}
65
67
79 inline const Aws::String& GetValue() const { return m_value; }
80 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
81 template<typename ValueT = Aws::String>
82 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
83 template<typename ValueT = Aws::String>
84 ClusterSetting& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
86 private:
87
89 bool m_nameHasBeenSet = false;
90
91 Aws::String m_value;
92 bool m_valueHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ECS
97} // namespace Aws
ClusterSetting & WithName(ClusterSettingName value)
void SetName(ClusterSettingName value)
const Aws::String & GetValue() const
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ClusterSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSettingName GetName() const
ClusterSetting & WithValue(ValueT &&value)
AWS_ECS_API ClusterSetting()=default
AWS_ECS_API ClusterSetting(Aws::Utils::Json::JsonView jsonValue)
void SetValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue