AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Attribute.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
38 {
39 public:
44
45
52 inline const Aws::String& GetName() const{ return m_name; }
53
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77
84 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
85
92 inline Attribute& WithName(const Aws::String& value) { SetName(value); return *this;}
93
100 inline Attribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
101
108 inline Attribute& WithName(const char* value) { SetName(value); return *this;}
109
110
118 inline const Aws::String& GetValue() const{ return m_value; }
119
127 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
128
136 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
137
145 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
146
154 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
155
163 inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
164
172 inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
173
181 inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
182
183
189 inline const TargetType& GetTargetType() const{ return m_targetType; }
190
196 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
197
203 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
204
210 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
211
217 inline Attribute& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
218
224 inline Attribute& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
225
226
231 inline const Aws::String& GetTargetId() const{ return m_targetId; }
232
237 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
238
243 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
244
249 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
250
255 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
256
261 inline Attribute& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
262
267 inline Attribute& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
268
273 inline Attribute& WithTargetId(const char* value) { SetTargetId(value); return *this;}
274
275 private:
276
277 Aws::String m_name;
278 bool m_nameHasBeenSet = false;
279
280 Aws::String m_value;
281 bool m_valueHasBeenSet = false;
282
283 TargetType m_targetType;
284 bool m_targetTypeHasBeenSet = false;
285
286 Aws::String m_targetId;
287 bool m_targetIdHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace ECS
292} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
bool NameHasBeenSet() const
Definition: Attribute.h:60
Attribute & WithName(const Aws::String &value)
Definition: Attribute.h:92
AWS_ECS_API Attribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Attribute & WithTargetId(const char *value)
Definition: Attribute.h:273
void SetValue(const char *value)
Definition: Attribute.h:154
AWS_ECS_API Attribute(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition: Attribute.h:84
const Aws::String & GetTargetId() const
Definition: Attribute.h:231
bool TargetTypeHasBeenSet() const
Definition: Attribute.h:196
Attribute & WithName(const char *value)
Definition: Attribute.h:108
void SetValue(Aws::String &&value)
Definition: Attribute.h:145
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetId(Aws::String &&value)
Definition: Attribute.h:249
Attribute & WithTargetType(const TargetType &value)
Definition: Attribute.h:217
Attribute & WithValue(Aws::String &&value)
Definition: Attribute.h:172
void SetTargetType(TargetType &&value)
Definition: Attribute.h:210
Attribute & WithTargetId(const Aws::String &value)
Definition: Attribute.h:261
void SetTargetId(const Aws::String &value)
Definition: Attribute.h:243
Attribute & WithValue(const Aws::String &value)
Definition: Attribute.h:163
void SetTargetType(const TargetType &value)
Definition: Attribute.h:203
const Aws::String & GetName() const
Definition: Attribute.h:52
const TargetType & GetTargetType() const
Definition: Attribute.h:189
void SetValue(const Aws::String &value)
Definition: Attribute.h:136
void SetName(const Aws::String &value)
Definition: Attribute.h:68
bool ValueHasBeenSet() const
Definition: Attribute.h:127
bool TargetIdHasBeenSet() const
Definition: Attribute.h:237
const Aws::String & GetValue() const
Definition: Attribute.h:118
Attribute & WithTargetType(TargetType &&value)
Definition: Attribute.h:224
Attribute & WithName(Aws::String &&value)
Definition: Attribute.h:100
Attribute & WithValue(const char *value)
Definition: Attribute.h:181
void SetName(Aws::String &&value)
Definition: Attribute.h:76
Attribute & WithTargetId(Aws::String &&value)
Definition: Attribute.h:267
void SetTargetId(const char *value)
Definition: Attribute.h:255
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String