AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ClusterSetting.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/ClusterSettingName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
43 public:
44 AWS_ECS_API ClusterSetting() = default;
48
50
54 inline ClusterSettingName GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(ClusterSettingName value) {
57 m_nameHasBeenSet = true;
58 m_name = value;
59 }
61 SetName(value);
62 return *this;
63 }
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) {
83 m_valueHasBeenSet = true;
84 m_value = std::forward<ValueT>(value);
85 }
86 template <typename ValueT = Aws::String>
87 ClusterSetting& WithValue(ValueT&& value) {
88 SetValue(std::forward<ValueT>(value));
89 return *this;
90 }
92 private:
94
95 Aws::String m_value;
96 bool m_nameHasBeenSet = false;
97 bool m_valueHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ECS
102} // 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