AWS SDK for C++  1.8.95
AWS SDK for C++
Resource.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:
36  Resource();
38  Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
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;
273 
274  Aws::String m_type;
275  bool m_typeHasBeenSet;
276 
277  double m_doubleValue;
278  bool m_doubleValueHasBeenSet;
279 
280  long long m_longValue;
281  bool m_longValueHasBeenSet;
282 
283  int m_integerValue;
284  bool m_integerValueHasBeenSet;
285 
286  Aws::Vector<Aws::String> m_stringSetValue;
287  bool m_stringSetValueHasBeenSet;
288  };
289 
290 } // namespace Model
291 } // namespace ECS
292 } // namespace Aws
Resource & WithType(const Aws::String &value)
Definition: Resource.h:125
bool LongValueHasBeenSet() const
Definition: Resource.h:175
Resource & WithName(const char *value)
Definition: Resource.h:88
int GetIntegerValue() const
Definition: Resource.h:194
Resource & WithStringSetValue(const Aws::Vector< Aws::String > &value)
Definition: Resource.h:243
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
long long GetLongValue() const
Definition: Resource.h:169
bool NameHasBeenSet() const
Definition: Resource.h:52
Resource & AddStringSetValue(Aws::String &&value)
Definition: Resource.h:261
void SetIntegerValue(int value)
Definition: Resource.h:206
Resource & WithIntegerValue(int value)
Definition: Resource.h:212
const Aws::Vector< Aws::String > & GetStringSetValue() const
Definition: Resource.h:219
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Resource & WithLongValue(long long value)
Definition: Resource.h:187
void SetType(const char *value)
Definition: Resource.h:119
void SetLongValue(long long value)
Definition: Resource.h:181
bool DoubleValueHasBeenSet() const
Definition: Resource.h:150
void SetStringSetValue(const Aws::Vector< Aws::String > &value)
Definition: Resource.h:231
Resource & AddStringSetValue(const char *value)
Definition: Resource.h:267
void SetName(Aws::String &&value)
Definition: Resource.h:64
const Aws::String & GetType() const
Definition: Resource.h:95
bool TypeHasBeenSet() const
Definition: Resource.h:101
void SetStringSetValue(Aws::Vector< Aws::String > &&value)
Definition: Resource.h:237
Resource & WithDoubleValue(double value)
Definition: Resource.h:162
bool IntegerValueHasBeenSet() const
Definition: Resource.h:200
void SetType(Aws::String &&value)
Definition: Resource.h:113
Resource & WithType(Aws::String &&value)
Definition: Resource.h:131
void SetName(const Aws::String &value)
Definition: Resource.h:58
const Aws::String & GetName() const
Definition: Resource.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetType(const Aws::String &value)
Definition: Resource.h:107
double GetDoubleValue() const
Definition: Resource.h:144
Resource & WithName(const Aws::String &value)
Definition: Resource.h:76
Resource & WithName(Aws::String &&value)
Definition: Resource.h:82
Resource & AddStringSetValue(const Aws::String &value)
Definition: Resource.h:255
void SetDoubleValue(double value)
Definition: Resource.h:156
bool StringSetValueHasBeenSet() const
Definition: Resource.h:225
Resource & WithType(const char *value)
Definition: Resource.h:137
void SetName(const char *value)
Definition: Resource.h:70
Resource & WithStringSetValue(Aws::Vector< Aws::String > &&value)
Definition: Resource.h:249