AWS SDK for C++  1.8.155
AWS SDK for C++
Field.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace RDSDataService
24 {
25 namespace Model
26 {
27 
34  {
35  public:
36  Field();
40 
41 
45  inline const ArrayValue& GetArrayValue() const{ return m_arrayValue; }
46 
50  inline bool ArrayValueHasBeenSet() const { return m_arrayValueHasBeenSet; }
51 
55  inline void SetArrayValue(const ArrayValue& value) { m_arrayValueHasBeenSet = true; m_arrayValue = value; }
56 
60  inline void SetArrayValue(ArrayValue&& value) { m_arrayValueHasBeenSet = true; m_arrayValue = std::move(value); }
61 
65  inline Field& WithArrayValue(const ArrayValue& value) { SetArrayValue(value); return *this;}
66 
70  inline Field& WithArrayValue(ArrayValue&& value) { SetArrayValue(std::move(value)); return *this;}
71 
72 
76  inline const Aws::Utils::ByteBuffer& GetBlobValue() const{ return m_blobValue; }
77 
81  inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; }
82 
86  inline void SetBlobValue(const Aws::Utils::ByteBuffer& value) { m_blobValueHasBeenSet = true; m_blobValue = value; }
87 
91  inline void SetBlobValue(Aws::Utils::ByteBuffer&& value) { m_blobValueHasBeenSet = true; m_blobValue = std::move(value); }
92 
96  inline Field& WithBlobValue(const Aws::Utils::ByteBuffer& value) { SetBlobValue(value); return *this;}
97 
101  inline Field& WithBlobValue(Aws::Utils::ByteBuffer&& value) { SetBlobValue(std::move(value)); return *this;}
102 
103 
107  inline bool GetBooleanValue() const{ return m_booleanValue; }
108 
112  inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
113 
117  inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
118 
122  inline Field& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
123 
124 
128  inline double GetDoubleValue() const{ return m_doubleValue; }
129 
133  inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
134 
138  inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
139 
143  inline Field& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
144 
145 
149  inline bool GetIsNull() const{ return m_isNull; }
150 
154  inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; }
155 
159  inline void SetIsNull(bool value) { m_isNullHasBeenSet = true; m_isNull = value; }
160 
164  inline Field& WithIsNull(bool value) { SetIsNull(value); return *this;}
165 
166 
170  inline long long GetLongValue() const{ return m_longValue; }
171 
175  inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
176 
180  inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
181 
185  inline Field& WithLongValue(long long value) { SetLongValue(value); return *this;}
186 
187 
191  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
192 
196  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
197 
201  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
202 
206  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
207 
211  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
212 
216  inline Field& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
217 
221  inline Field& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
222 
226  inline Field& WithStringValue(const char* value) { SetStringValue(value); return *this;}
227 
228  private:
229 
230  ArrayValue m_arrayValue;
231  bool m_arrayValueHasBeenSet;
232 
233  Aws::Utils::ByteBuffer m_blobValue;
234  bool m_blobValueHasBeenSet;
235 
236  bool m_booleanValue;
237  bool m_booleanValueHasBeenSet;
238 
239  double m_doubleValue;
240  bool m_doubleValueHasBeenSet;
241 
242  bool m_isNull;
243  bool m_isNullHasBeenSet;
244 
245  long long m_longValue;
246  bool m_longValueHasBeenSet;
247 
248  Aws::String m_stringValue;
249  bool m_stringValueHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace RDSDataService
254 } // namespace Aws
Aws::RDSDataService::Model::Field::WithArrayValue
Field & WithArrayValue(const ArrayValue &value)
Definition: Field.h:65
Aws::RDSDataService::Model::Field::SetArrayValue
void SetArrayValue(const ArrayValue &value)
Definition: Field.h:55
AWS_RDSDATASERVICE_API
#define AWS_RDSDATASERVICE_API
Definition: RDSDataService_EXPORTS.h:28
Aws::RDSDataService::Model::Field::operator=
Field & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::RDSDataService::Model::ArrayValue
Definition: ArrayValue.h:34
Aws::RDSDataService::Model::Field::WithArrayValue
Field & WithArrayValue(ArrayValue &&value)
Definition: Field.h:70
Aws::RDSDataService::Model::Field::WithDoubleValue
Field & WithDoubleValue(double value)
Definition: Field.h:143
Aws::RDSDataService::Model::Field::Field
Field(Aws::Utils::Json::JsonView jsonValue)
Aws::RDSDataService::Model::Field::DoubleValueHasBeenSet
bool DoubleValueHasBeenSet() const
Definition: Field.h:133
Aws::RDSDataService::Model::Field::ArrayValueHasBeenSet
bool ArrayValueHasBeenSet() const
Definition: Field.h:50
Aws::RDSDataService::Model::Field::GetStringValue
const Aws::String & GetStringValue() const
Definition: Field.h:191
Aws::RDSDataService::Model::Field::SetBlobValue
void SetBlobValue(Aws::Utils::ByteBuffer &&value)
Definition: Field.h:91
Aws::RDSDataService::Model::Field::GetBlobValue
const Aws::Utils::ByteBuffer & GetBlobValue() const
Definition: Field.h:76
Aws::RDSDataService::Model::Field::GetIsNull
bool GetIsNull() const
Definition: Field.h:149
Aws::RDSDataService::Model::Field::BlobValueHasBeenSet
bool BlobValueHasBeenSet() const
Definition: Field.h:81
Aws::RDSDataService::Model::Field::LongValueHasBeenSet
bool LongValueHasBeenSet() const
Definition: Field.h:175
Aws::RDSDataService::Model::Field::SetBooleanValue
void SetBooleanValue(bool value)
Definition: Field.h:117
Aws::RDSDataService::Model::Field::WithStringValue
Field & WithStringValue(const Aws::String &value)
Definition: Field.h:216
Aws::RDSDataService::Model::Field::WithBlobValue
Field & WithBlobValue(Aws::Utils::ByteBuffer &&value)
Definition: Field.h:101
Aws::RDSDataService::Model::Field::SetBlobValue
void SetBlobValue(const Aws::Utils::ByteBuffer &value)
Definition: Field.h:86
Aws::RDSDataService::Model::Field::SetDoubleValue
void SetDoubleValue(double value)
Definition: Field.h:138
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::RDSDataService::Model::Field::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: Field.h:206
Aws::RDSDataService::Model::Field::WithStringValue
Field & WithStringValue(const char *value)
Definition: Field.h:226
Aws::RDSDataService::Model::Field
Definition: Field.h:34
Aws::RDSDataService::Model::Field::WithBlobValue
Field & WithBlobValue(const Aws::Utils::ByteBuffer &value)
Definition: Field.h:96
Aws::RDSDataService::Model::Field::WithStringValue
Field & WithStringValue(Aws::String &&value)
Definition: Field.h:221
Aws::RDSDataService::Model::Field::Field
Field()
Aws::RDSDataService::Model::Field::GetArrayValue
const ArrayValue & GetArrayValue() const
Definition: Field.h:45
RDSDataService_EXPORTS.h
Aws::RDSDataService::Model::Field::SetLongValue
void SetLongValue(long long value)
Definition: Field.h:180
Aws::RDSDataService::Model::Field::SetStringValue
void SetStringValue(const char *value)
Definition: Field.h:211
Aws::RDSDataService::Model::Field::BooleanValueHasBeenSet
bool BooleanValueHasBeenSet() const
Definition: Field.h:112
Aws::RDSDataService::Model::Field::IsNullHasBeenSet
bool IsNullHasBeenSet() const
Definition: Field.h:154
Aws::RDSDataService::Model::Field::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: Field.h:196
Aws::RDSDataService::Model::Field::SetIsNull
void SetIsNull(bool value)
Definition: Field.h:159
Aws::RDSDataService::Model::Field::GetDoubleValue
double GetDoubleValue() const
Definition: Field.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::RDSDataService::Model::Field::WithIsNull
Field & WithIsNull(bool value)
Definition: Field.h:164
Array.h
Aws::RDSDataService::Model::Field::WithBooleanValue
Field & WithBooleanValue(bool value)
Definition: Field.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDSDataService::Model::Field::WithLongValue
Field & WithLongValue(long long value)
Definition: Field.h:185
Aws::RDSDataService::Model::Field::SetArrayValue
void SetArrayValue(ArrayValue &&value)
Definition: Field.h:60
Aws::RDSDataService::Model::Field::GetBooleanValue
bool GetBooleanValue() const
Definition: Field.h:107
ArrayValue.h
Aws::RDSDataService::Model::Field::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::RDSDataService::Model::Field::GetLongValue
long long GetLongValue() const
Definition: Field.h:170
Aws::RDSDataService::Model::Field::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: Field.h:201