AWS SDK for C++  1.9.104
AWS SDK for C++
ClusterSetting.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECS
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const ClusterSettingName& GetName() const{ return m_name; }
47 
52  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 
58  inline void SetName(const ClusterSettingName& value) { m_nameHasBeenSet = true; m_name = value; }
59 
64  inline void SetName(ClusterSettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 
70  inline ClusterSetting& WithName(const ClusterSettingName& value) { SetName(value); return *this;}
71 
76  inline ClusterSetting& WithName(ClusterSettingName&& value) { SetName(std::move(value)); return *this;}
77 
78 
88  inline const Aws::String& GetValue() const{ return m_value; }
89 
99  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
100 
110  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
111 
121  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
122 
132  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
133 
143  inline ClusterSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
144 
154  inline ClusterSetting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
155 
165  inline ClusterSetting& WithValue(const char* value) { SetValue(value); return *this;}
166 
167  private:
168 
169  ClusterSettingName m_name;
170  bool m_nameHasBeenSet;
171 
172  Aws::String m_value;
173  bool m_valueHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace ECS
178 } // namespace Aws
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ClusterSetting::ClusterSetting
ClusterSetting()
Aws::ECS::Model::ClusterSetting::GetValue
const Aws::String & GetValue() const
Definition: ClusterSetting.h:88
Aws::ECS::Model::ClusterSetting::SetValue
void SetValue(const char *value)
Definition: ClusterSetting.h:132
Aws::ECS::Model::ClusterSetting::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ClusterSetting.h:52
Aws::ECS::Model::ClusterSetting::SetName
void SetName(ClusterSettingName &&value)
Definition: ClusterSetting.h:64
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ClusterSetting::WithName
ClusterSetting & WithName(ClusterSettingName &&value)
Definition: ClusterSetting.h:76
Aws::ECS::Model::ClusterSetting::WithValue
ClusterSetting & WithValue(const Aws::String &value)
Definition: ClusterSetting.h:143
Aws::ECS::Model::ClusterSetting::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: ClusterSetting.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ClusterSetting
Definition: ClusterSetting.h:34
Aws::ECS::Model::ClusterSetting::GetName
const ClusterSettingName & GetName() const
Definition: ClusterSetting.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ClusterSetting::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ClusterSetting::operator=
ClusterSetting & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSettingName.h
Aws::ECS::Model::ClusterSetting::SetValue
void SetValue(const Aws::String &value)
Definition: ClusterSetting.h:110
Aws::ECS::Model::ClusterSetting::SetValue
void SetValue(Aws::String &&value)
Definition: ClusterSetting.h:121
Aws::ECS::Model::ClusterSettingName
ClusterSettingName
Definition: ClusterSettingName.h:17
Aws::ECS::Model::ClusterSetting::WithValue
ClusterSetting & WithValue(const char *value)
Definition: ClusterSetting.h:165
ECS_EXPORTS.h
Aws::ECS::Model::ClusterSetting::WithName
ClusterSetting & WithName(const ClusterSettingName &value)
Definition: ClusterSetting.h:70
Aws::ECS::Model::ClusterSetting::ClusterSetting
ClusterSetting(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ClusterSetting::WithValue
ClusterSetting & WithValue(Aws::String &&value)
Definition: ClusterSetting.h:154
Aws::ECS::Model::ClusterSetting::SetName
void SetName(const ClusterSettingName &value)
Definition: ClusterSetting.h:58