AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Resource.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
34 {
35 public:
40
41
46 inline const Aws::String& GetName() const{ return m_name; }
47
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71
76 inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
77
82 inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83
88 inline Resource& WithName(const char* value) { SetName(value); return *this;}
89
90
95 inline const Aws::String& GetType() const{ return m_type; }
96
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102
107 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
108
113 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
114
119 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
120
125 inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
126
131 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
132
137 inline Resource& WithType(const char* value) { SetType(value); return *this;}
138
139
144 inline double GetDoubleValue() const{ return m_doubleValue; }
145
150 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
151
156 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
157
162 inline Resource& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
163
164
169 inline long long GetLongValue() const{ return m_longValue; }
170
175 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
176
181 inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
182
187 inline Resource& WithLongValue(long long value) { SetLongValue(value); return *this;}
188
189
194 inline int GetIntegerValue() const{ return m_integerValue; }
195
200 inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
201
206 inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
207
212 inline Resource& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
213
214
219 inline const Aws::Vector<Aws::String>& GetStringSetValue() const{ return m_stringSetValue; }
220
225 inline bool StringSetValueHasBeenSet() const { return m_stringSetValueHasBeenSet; }
226
231 inline void SetStringSetValue(const Aws::Vector<Aws::String>& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue = value; }
232
237 inline void SetStringSetValue(Aws::Vector<Aws::String>&& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue = std::move(value); }
238
243 inline Resource& WithStringSetValue(const Aws::Vector<Aws::String>& value) { SetStringSetValue(value); return *this;}
244
249 inline Resource& WithStringSetValue(Aws::Vector<Aws::String>&& value) { SetStringSetValue(std::move(value)); return *this;}
250
255 inline Resource& AddStringSetValue(const Aws::String& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
256
261 inline Resource& AddStringSetValue(Aws::String&& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(std::move(value)); return *this; }
262
267 inline Resource& AddStringSetValue(const char* value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
268
269 private:
270
271 Aws::String m_name;
272 bool m_nameHasBeenSet = false;
273
274 Aws::String m_type;
275 bool m_typeHasBeenSet = false;
276
277 double m_doubleValue;
278 bool m_doubleValueHasBeenSet = false;
279
280 long long m_longValue;
281 bool m_longValueHasBeenSet = false;
282
283 int m_integerValue;
284 bool m_integerValueHasBeenSet = false;
285
286 Aws::Vector<Aws::String> m_stringSetValue;
287 bool m_stringSetValueHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace ECS
292} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
bool LongValueHasBeenSet() const
Definition: Resource.h:175
long long GetLongValue() const
Definition: Resource.h:169
bool DoubleValueHasBeenSet() const
Definition: Resource.h:150
Resource & AddStringSetValue(const Aws::String &value)
Definition: Resource.h:255
void SetType(const Aws::String &value)
Definition: Resource.h:107
const Aws::String & GetName() const
Definition: Resource.h:46
double GetDoubleValue() const
Definition: Resource.h:144
bool TypeHasBeenSet() const
Definition: Resource.h:101
Resource & WithType(const char *value)
Definition: Resource.h:137
void SetDoubleValue(double value)
Definition: Resource.h:156
Resource & WithName(const Aws::String &value)
Definition: Resource.h:76
Resource & WithStringSetValue(const Aws::Vector< Aws::String > &value)
Definition: Resource.h:243
Resource & AddStringSetValue(const char *value)
Definition: Resource.h:267
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
int GetIntegerValue() const
Definition: Resource.h:194
bool IntegerValueHasBeenSet() const
Definition: Resource.h:200
void SetStringSetValue(Aws::Vector< Aws::String > &&value)
Definition: Resource.h:237
Resource & WithLongValue(long long value)
Definition: Resource.h:187
void SetName(const char *value)
Definition: Resource.h:70
Resource & WithStringSetValue(Aws::Vector< Aws::String > &&value)
Definition: Resource.h:249
const Aws::Vector< Aws::String > & GetStringSetValue() const
Definition: Resource.h:219
Resource & WithType(Aws::String &&value)
Definition: Resource.h:131
bool NameHasBeenSet() const
Definition: Resource.h:52
Resource & WithIntegerValue(int value)
Definition: Resource.h:212
Resource & WithDoubleValue(double value)
Definition: Resource.h:162
Resource & WithType(const Aws::String &value)
Definition: Resource.h:125
Resource & AddStringSetValue(Aws::String &&value)
Definition: Resource.h:261
void SetName(Aws::String &&value)
Definition: Resource.h:64
Resource & WithName(Aws::String &&value)
Definition: Resource.h:82
void SetType(const char *value)
Definition: Resource.h:119
AWS_ECS_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool StringSetValueHasBeenSet() const
Definition: Resource.h:225
const Aws::String & GetType() const
Definition: Resource.h:95
Resource & WithName(const char *value)
Definition: Resource.h:88
void SetIntegerValue(int value)
Definition: Resource.h:206
void SetLongValue(long long value)
Definition: Resource.h:181
void SetType(Aws::String &&value)
Definition: Resource.h:113
AWS_ECS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition: Resource.h:58
void SetStringSetValue(const Aws::Vector< Aws::String > &value)
Definition: Resource.h:231
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector