AWS SDK for C++  1.8.126
AWS SDK for C++
Value.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
12 #include <utility>
13 #include <memory>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace RDSDataService
26 {
27 namespace Model
28 {
29  class StructValue;
30 
39  {
40  public:
41  Value();
45 
46 
50  inline const Aws::Vector<Value>& GetArrayValues() const{ return m_arrayValues; }
51 
55  inline bool ArrayValuesHasBeenSet() const { return m_arrayValuesHasBeenSet; }
56 
60  inline void SetArrayValues(const Aws::Vector<Value>& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = value; }
61 
65  inline void SetArrayValues(Aws::Vector<Value>&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = std::move(value); }
66 
70  inline Value& WithArrayValues(const Aws::Vector<Value>& value) { SetArrayValues(value); return *this;}
71 
75  inline Value& WithArrayValues(Aws::Vector<Value>&& value) { SetArrayValues(std::move(value)); return *this;}
76 
80  inline Value& AddArrayValues(const Value& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(value); return *this; }
81 
85  inline Value& AddArrayValues(Value&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(std::move(value)); return *this; }
86 
87 
91  inline long long GetBigIntValue() const{ return m_bigIntValue; }
92 
96  inline bool BigIntValueHasBeenSet() const { return m_bigIntValueHasBeenSet; }
97 
101  inline void SetBigIntValue(long long value) { m_bigIntValueHasBeenSet = true; m_bigIntValue = value; }
102 
106  inline Value& WithBigIntValue(long long value) { SetBigIntValue(value); return *this;}
107 
108 
112  inline bool GetBitValue() const{ return m_bitValue; }
113 
117  inline bool BitValueHasBeenSet() const { return m_bitValueHasBeenSet; }
118 
122  inline void SetBitValue(bool value) { m_bitValueHasBeenSet = true; m_bitValue = value; }
123 
127  inline Value& WithBitValue(bool value) { SetBitValue(value); return *this;}
128 
129 
133  inline const Aws::Utils::ByteBuffer& GetBlobValue() const{ return m_blobValue; }
134 
138  inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; }
139 
143  inline void SetBlobValue(const Aws::Utils::ByteBuffer& value) { m_blobValueHasBeenSet = true; m_blobValue = value; }
144 
148  inline void SetBlobValue(Aws::Utils::ByteBuffer&& value) { m_blobValueHasBeenSet = true; m_blobValue = std::move(value); }
149 
153  inline Value& WithBlobValue(const Aws::Utils::ByteBuffer& value) { SetBlobValue(value); return *this;}
154 
158  inline Value& WithBlobValue(Aws::Utils::ByteBuffer&& value) { SetBlobValue(std::move(value)); return *this;}
159 
160 
164  inline double GetDoubleValue() const{ return m_doubleValue; }
165 
169  inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
170 
174  inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
175 
179  inline Value& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
180 
181 
185  inline int GetIntValue() const{ return m_intValue; }
186 
190  inline bool IntValueHasBeenSet() const { return m_intValueHasBeenSet; }
191 
195  inline void SetIntValue(int value) { m_intValueHasBeenSet = true; m_intValue = value; }
196 
200  inline Value& WithIntValue(int value) { SetIntValue(value); return *this;}
201 
202 
206  inline bool GetIsNull() const{ return m_isNull; }
207 
211  inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; }
212 
216  inline void SetIsNull(bool value) { m_isNullHasBeenSet = true; m_isNull = value; }
217 
221  inline Value& WithIsNull(bool value) { SetIsNull(value); return *this;}
222 
223 
227  inline double GetRealValue() const{ return m_realValue; }
228 
232  inline bool RealValueHasBeenSet() const { return m_realValueHasBeenSet; }
233 
237  inline void SetRealValue(double value) { m_realValueHasBeenSet = true; m_realValue = value; }
238 
242  inline Value& WithRealValue(double value) { SetRealValue(value); return *this;}
243 
244 
248  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
249 
253  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
254 
258  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
259 
263  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
264 
268  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
269 
273  inline Value& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
274 
278  inline Value& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
279 
283  inline Value& WithStringValue(const char* value) { SetStringValue(value); return *this;}
284 
285 
289  const StructValue& GetStructValue() const;
290 
294  bool StructValueHasBeenSet() const;
295 
299  void SetStructValue(const StructValue& value);
300 
305 
310 
315 
316  private:
317 
318  Aws::Vector<Value> m_arrayValues;
319  bool m_arrayValuesHasBeenSet;
320 
321  long long m_bigIntValue;
322  bool m_bigIntValueHasBeenSet;
323 
324  bool m_bitValue;
325  bool m_bitValueHasBeenSet;
326 
327  Aws::Utils::ByteBuffer m_blobValue;
328  bool m_blobValueHasBeenSet;
329 
330  double m_doubleValue;
331  bool m_doubleValueHasBeenSet;
332 
333  int m_intValue;
334  bool m_intValueHasBeenSet;
335 
336  bool m_isNull;
337  bool m_isNullHasBeenSet;
338 
339  double m_realValue;
340  bool m_realValueHasBeenSet;
341 
342  Aws::String m_stringValue;
343  bool m_stringValueHasBeenSet;
344 
345  std::shared_ptr<StructValue> m_structValue;
346  bool m_structValueHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace RDSDataService
351 } // namespace Aws
Aws::RDSDataService::Model::Value::GetIntValue
int GetIntValue() const
Definition: Value.h:185
Aws::RDSDataService::Model::Value::WithBigIntValue
Value & WithBigIntValue(long long value)
Definition: Value.h:106
Aws::RDSDataService::Model::Value::SetBlobValue
void SetBlobValue(const Aws::Utils::ByteBuffer &value)
Definition: Value.h:143
Aws::RDSDataService::Model::Value::BlobValueHasBeenSet
bool BlobValueHasBeenSet() const
Definition: Value.h:138
Aws::RDSDataService::Model::Value::AddArrayValues
Value & AddArrayValues(Value &&value)
Definition: Value.h:85
Value.h
Aws::RDSDataService::Model::Value::SetArrayValues
void SetArrayValues(const Aws::Vector< Value > &value)
Definition: Value.h:60
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
Aws::RDSDataService::Model::Value::SetArrayValues
void SetArrayValues(Aws::Vector< Value > &&value)
Definition: Value.h:65
Aws::RDSDataService::Model::Value::WithIsNull
Value & WithIsNull(bool value)
Definition: Value.h:221
Aws::RDSDataService::Model::Value::SetDoubleValue
void SetDoubleValue(double value)
Definition: Value.h:174
Aws::RDSDataService::Model::Value::WithBitValue
Value & WithBitValue(bool value)
Definition: Value.h:127
Aws::RDSDataService::Model::Value::GetBlobValue
const Aws::Utils::ByteBuffer & GetBlobValue() const
Definition: Value.h:133
Aws::RDSDataService::Model::Value::RealValueHasBeenSet
bool RealValueHasBeenSet() const
Definition: Value.h:232
Aws::RDSDataService::Model::Value::WithRealValue
Value & WithRealValue(double value)
Definition: Value.h:242
Aws::RDSDataService::Model::Value::SetBigIntValue
void SetBigIntValue(long long value)
Definition: Value.h:101
Aws::RDSDataService::Model::Value::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: Value.h:253
Aws::RDSDataService::Model::Value
Definition: Value.h:39
Aws::RDSDataService::Model::Value::SetRealValue
void SetRealValue(double value)
Definition: Value.h:237
Aws::RDSDataService::Model::Value::BitValueHasBeenSet
bool BitValueHasBeenSet() const
Definition: Value.h:117
Aws::RDSDataService::Model::StructValue
Definition: StructValue.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RDSDataService::Model::Value::WithBlobValue
Value & WithBlobValue(Aws::Utils::ByteBuffer &&value)
Definition: Value.h:158
Aws::RDSDataService::Model::Value::WithBlobValue
Value & WithBlobValue(const Aws::Utils::ByteBuffer &value)
Definition: Value.h:153
Aws::RDSDataService::Model::Value::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: Value.h:263
Aws::RDSDataService::Model::Value::WithArrayValues
Value & WithArrayValues(const Aws::Vector< Value > &value)
Definition: Value.h:70
Aws::RDSDataService::Model::Value::WithStringValue
Value & WithStringValue(Aws::String &&value)
Definition: Value.h:278
Aws::RDSDataService::Model::Value::GetRealValue
double GetRealValue() const
Definition: Value.h:227
AWSVector.h
Aws::RDSDataService::Model::Value::GetDoubleValue
double GetDoubleValue() const
Definition: Value.h:164
Aws::RDSDataService::Model::Value::WithStructValue
Value & WithStructValue(const StructValue &value)
Aws::RDSDataService::Model::Value::SetBitValue
void SetBitValue(bool value)
Definition: Value.h:122
Aws::RDSDataService::Model::Value::GetIsNull
bool GetIsNull() const
Definition: Value.h:206
Aws::RDSDataService::Model::Value::WithStringValue
Value & WithStringValue(const Aws::String &value)
Definition: Value.h:273
Aws::RDSDataService::Model::Value::SetBlobValue
void SetBlobValue(Aws::Utils::ByteBuffer &&value)
Definition: Value.h:148
Aws::RDSDataService::Model::Value::Value
Value()
Aws::RDSDataService::Model::Value::WithArrayValues
Value & WithArrayValues(Aws::Vector< Value > &&value)
Definition: Value.h:75
Aws::RDSDataService::Model::Value::IntValueHasBeenSet
bool IntValueHasBeenSet() const
Definition: Value.h:190
Aws::RDSDataService::Model::Value::Value
Value(Aws::Utils::Json::JsonView jsonValue)
Aws::RDSDataService::Model::Value::GetBigIntValue
long long GetBigIntValue() const
Definition: Value.h:91
Aws::RDSDataService::Model::Value::GetStringValue
const Aws::String & GetStringValue() const
Definition: Value.h:248
Aws::RDSDataService::Model::Value::AddArrayValues
Value & AddArrayValues(const Value &value)
Definition: Value.h:80
Aws::RDSDataService::Model::Value::operator=
Value & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::RDSDataService::Model::Value::GetArrayValues
const Aws::Vector< Value > & GetArrayValues() const
Definition: Value.h:50
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RDSDataService::Model::Value::SetIsNull
void SetIsNull(bool value)
Definition: Value.h:216
Aws::RDSDataService::Model::Value::StructValueHasBeenSet
bool StructValueHasBeenSet() const
Aws::RDSDataService::Model::Value::WithStringValue
Value & WithStringValue(const char *value)
Definition: Value.h:283
Aws::RDSDataService::Model::Value::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
RDSDataService_EXPORTS.h
Aws::RDSDataService::Model::Value::DoubleValueHasBeenSet
bool DoubleValueHasBeenSet() const
Definition: Value.h:169
Aws::RDSDataService::Model::Value::IsNullHasBeenSet
bool IsNullHasBeenSet() const
Definition: Value.h:211
Aws::RDSDataService::Model::Value::WithIntValue
Value & WithIntValue(int value)
Definition: Value.h:200
Aws::RDSDataService::Model::Value::GetBitValue
bool GetBitValue() const
Definition: Value.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::RDSDataService::Model::Value::SetStructValue
void SetStructValue(StructValue &&value)
Array.h
Aws::RDSDataService::Model::Value::GetStructValue
const StructValue & GetStructValue() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDSDataService::Model::Value::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: Value.h:258
Aws::RDSDataService::Model::Value::WithDoubleValue
Value & WithDoubleValue(double value)
Definition: Value.h:179
Aws::RDSDataService::Model::Value::SetIntValue
void SetIntValue(int value)
Definition: Value.h:195
Aws::RDSDataService::Model::Value::BigIntValueHasBeenSet
bool BigIntValueHasBeenSet() const
Definition: Value.h:96
Aws::RDSDataService::Model::Value::WithStructValue
Value & WithStructValue(StructValue &&value)
Aws::RDSDataService::Model::Value::SetStructValue
void SetStructValue(const StructValue &value)
Aws::RDSDataService::Model::Value::ArrayValuesHasBeenSet
bool ArrayValuesHasBeenSet() const
Definition: Value.h:55
Aws::RDSDataService::Model::Value::SetStringValue
void SetStringValue(const char *value)
Definition: Value.h:268