AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
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:
36 AWS_ECS_API Resource();
37 AWS_ECS_API Resource(Aws::Utils::Json::JsonView jsonValue);
40
41
43
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline Resource& WithName(const char* value) { SetName(value); return *this;}
56
58
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline Resource& WithType(const char* value) { SetType(value); return *this;}
71
73
77 inline double GetDoubleValue() const{ return m_doubleValue; }
78 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
79 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
80 inline Resource& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
82
84
88 inline long long GetLongValue() const{ return m_longValue; }
89 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
90 inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
91 inline Resource& WithLongValue(long long value) { SetLongValue(value); return *this;}
93
95
99 inline int GetIntegerValue() const{ return m_integerValue; }
100 inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
101 inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
102 inline Resource& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
104
106
110 inline const Aws::Vector<Aws::String>& GetStringSetValue() const{ return m_stringSetValue; }
111 inline bool StringSetValueHasBeenSet() const { return m_stringSetValueHasBeenSet; }
112 inline void SetStringSetValue(const Aws::Vector<Aws::String>& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue = value; }
113 inline void SetStringSetValue(Aws::Vector<Aws::String>&& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue = std::move(value); }
114 inline Resource& WithStringSetValue(const Aws::Vector<Aws::String>& value) { SetStringSetValue(value); return *this;}
115 inline Resource& WithStringSetValue(Aws::Vector<Aws::String>&& value) { SetStringSetValue(std::move(value)); return *this;}
116 inline Resource& AddStringSetValue(const Aws::String& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
117 inline Resource& AddStringSetValue(Aws::String&& value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(std::move(value)); return *this; }
118 inline Resource& AddStringSetValue(const char* value) { m_stringSetValueHasBeenSet = true; m_stringSetValue.push_back(value); return *this; }
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_type;
126 bool m_typeHasBeenSet = false;
127
128 double m_doubleValue;
129 bool m_doubleValueHasBeenSet = false;
130
131 long long m_longValue;
132 bool m_longValueHasBeenSet = false;
133
134 int m_integerValue;
135 bool m_integerValueHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_stringSetValue;
138 bool m_stringSetValueHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ECS
143} // namespace Aws
bool LongValueHasBeenSet() const
Definition Resource.h:89
long long GetLongValue() const
Definition Resource.h:88
bool DoubleValueHasBeenSet() const
Definition Resource.h:78
Resource & AddStringSetValue(const Aws::String &value)
Definition Resource.h:116
void SetType(const Aws::String &value)
Definition Resource.h:64
const Aws::String & GetName() const
Definition Resource.h:47
double GetDoubleValue() const
Definition Resource.h:77
bool TypeHasBeenSet() const
Definition Resource.h:63
Resource & WithType(const char *value)
Definition Resource.h:69
void SetDoubleValue(double value)
Definition Resource.h:79
Resource & WithName(const Aws::String &value)
Definition Resource.h:52
Resource & WithStringSetValue(const Aws::Vector< Aws::String > &value)
Definition Resource.h:114
Resource & AddStringSetValue(const char *value)
Definition Resource.h:118
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
int GetIntegerValue() const
Definition Resource.h:99
bool IntegerValueHasBeenSet() const
Definition Resource.h:100
void SetStringSetValue(Aws::Vector< Aws::String > &&value)
Definition Resource.h:113
Resource & WithLongValue(long long value)
Definition Resource.h:91
void SetName(const char *value)
Definition Resource.h:51
Resource & WithStringSetValue(Aws::Vector< Aws::String > &&value)
Definition Resource.h:115
const Aws::Vector< Aws::String > & GetStringSetValue() const
Definition Resource.h:110
Resource & WithType(Aws::String &&value)
Definition Resource.h:68
bool NameHasBeenSet() const
Definition Resource.h:48
Resource & WithIntegerValue(int value)
Definition Resource.h:102
Resource & WithDoubleValue(double value)
Definition Resource.h:80
Resource & WithType(const Aws::String &value)
Definition Resource.h:67
Resource & AddStringSetValue(Aws::String &&value)
Definition Resource.h:117
void SetName(Aws::String &&value)
Definition Resource.h:50
Resource & WithName(Aws::String &&value)
Definition Resource.h:53
void SetType(const char *value)
Definition Resource.h:66
AWS_ECS_API Resource(Aws::Utils::Json::JsonView jsonValue)
bool StringSetValueHasBeenSet() const
Definition Resource.h:111
const Aws::String & GetType() const
Definition Resource.h:62
Resource & WithName(const char *value)
Definition Resource.h:54
void SetIntegerValue(int value)
Definition Resource.h:101
void SetLongValue(long long value)
Definition Resource.h:90
void SetType(Aws::String &&value)
Definition Resource.h:65
AWS_ECS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition Resource.h:49
void SetStringSetValue(const Aws::Vector< Aws::String > &value)
Definition Resource.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue