AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Setting.h
Go to the documentation of this file.
1
6#pragma once
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
32 class Setting
33 {
34 public:
39
40
44 inline const SettingName& GetName() const{ return m_name; }
45
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50
54 inline void SetName(const SettingName& value) { m_nameHasBeenSet = true; m_name = value; }
55
59 inline void SetName(SettingName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60
64 inline Setting& WithName(const SettingName& value) { SetName(value); return *this;}
65
69 inline Setting& WithName(SettingName&& value) { SetName(std::move(value)); return *this;}
70
71
76 inline const Aws::String& GetValue() const{ return m_value; }
77
82 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
83
88 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
89
94 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
95
100 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
101
106 inline Setting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
107
112 inline Setting& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
113
118 inline Setting& WithValue(const char* value) { SetValue(value); return *this;}
119
120
125 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
126
131 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
132
137 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
138
143 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
144
149 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
150
155 inline Setting& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
156
161 inline Setting& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
162
167 inline Setting& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
168
169 private:
170
171 SettingName m_name;
172 bool m_nameHasBeenSet = false;
173
174 Aws::String m_value;
175 bool m_valueHasBeenSet = false;
176
177 Aws::String m_principalArn;
178 bool m_principalArnHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace ECS
183} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetPrincipalArn(Aws::String &&value)
Definition: Setting.h:143
void SetName(const SettingName &value)
Definition: Setting.h:54
const Aws::String & GetPrincipalArn() const
Definition: Setting.h:125
Setting & WithValue(const Aws::String &value)
Definition: Setting.h:106
bool NameHasBeenSet() const
Definition: Setting.h:49
void SetValue(Aws::String &&value)
Definition: Setting.h:94
void SetPrincipalArn(const char *value)
Definition: Setting.h:149
Setting & WithValue(Aws::String &&value)
Definition: Setting.h:112
void SetName(SettingName &&value)
Definition: Setting.h:59
AWS_ECS_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
Setting & WithPrincipalArn(Aws::String &&value)
Definition: Setting.h:161
const Aws::String & GetValue() const
Definition: Setting.h:76
Setting & WithName(SettingName &&value)
Definition: Setting.h:69
AWS_ECS_API Setting(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition: Setting.h:88
bool ValueHasBeenSet() const
Definition: Setting.h:82
Setting & WithPrincipalArn(const Aws::String &value)
Definition: Setting.h:155
const SettingName & GetName() const
Definition: Setting.h:44
bool PrincipalArnHasBeenSet() const
Definition: Setting.h:131
Setting & WithName(const SettingName &value)
Definition: Setting.h:64
Setting & WithPrincipalArn(const char *value)
Definition: Setting.h:167
Setting & WithValue(const char *value)
Definition: Setting.h:118
void SetPrincipalArn(const Aws::String &value)
Definition: Setting.h:137
void SetValue(const char *value)
Definition: Setting.h:100
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String