AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Field.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds-data/RDSDataService_EXPORTS.h>
10#include <aws/rds-data/model/ArrayValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RDSDataService {
22namespace Model {
23
29class Field {
30 public:
31 AWS_RDSDATASERVICE_API Field() = default;
32 AWS_RDSDATASERVICE_API Field(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RDSDATASERVICE_API Field& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetIsNull() const { return m_isNull; }
41 inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; }
42 inline void SetIsNull(bool value) {
43 m_isNullHasBeenSet = true;
44 m_isNull = value;
45 }
46 inline Field& WithIsNull(bool value) {
47 SetIsNull(value);
48 return *this;
49 }
51
53
56 inline bool GetBooleanValue() const { return m_booleanValue; }
57 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
58 inline void SetBooleanValue(bool value) {
59 m_booleanValueHasBeenSet = true;
60 m_booleanValue = value;
61 }
62 inline Field& WithBooleanValue(bool value) {
63 SetBooleanValue(value);
64 return *this;
65 }
67
69
72 inline long long GetLongValue() const { return m_longValue; }
73 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
74 inline void SetLongValue(long long value) {
75 m_longValueHasBeenSet = true;
76 m_longValue = value;
77 }
78 inline Field& WithLongValue(long long value) {
79 SetLongValue(value);
80 return *this;
81 }
83
85
88 inline double GetDoubleValue() const { return m_doubleValue; }
89 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
90 inline void SetDoubleValue(double value) {
91 m_doubleValueHasBeenSet = true;
92 m_doubleValue = value;
93 }
94 inline Field& WithDoubleValue(double value) {
95 SetDoubleValue(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetStringValue() const { return m_stringValue; }
105 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
106 template <typename StringValueT = Aws::String>
107 void SetStringValue(StringValueT&& value) {
108 m_stringValueHasBeenSet = true;
109 m_stringValue = std::forward<StringValueT>(value);
110 }
111 template <typename StringValueT = Aws::String>
112 Field& WithStringValue(StringValueT&& value) {
113 SetStringValue(std::forward<StringValueT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Utils::ByteBuffer& GetBlobValue() const { return m_blobValue; }
123 inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; }
124 template <typename BlobValueT = Aws::Utils::ByteBuffer>
125 void SetBlobValue(BlobValueT&& value) {
126 m_blobValueHasBeenSet = true;
127 m_blobValue = std::forward<BlobValueT>(value);
128 }
129 template <typename BlobValueT = Aws::Utils::ByteBuffer>
130 Field& WithBlobValue(BlobValueT&& value) {
131 SetBlobValue(std::forward<BlobValueT>(value));
132 return *this;
133 }
135
137
140 inline const ArrayValue& GetArrayValue() const { return m_arrayValue; }
141 inline bool ArrayValueHasBeenSet() const { return m_arrayValueHasBeenSet; }
142 template <typename ArrayValueT = ArrayValue>
143 void SetArrayValue(ArrayValueT&& value) {
144 m_arrayValueHasBeenSet = true;
145 m_arrayValue = std::forward<ArrayValueT>(value);
146 }
147 template <typename ArrayValueT = ArrayValue>
148 Field& WithArrayValue(ArrayValueT&& value) {
149 SetArrayValue(std::forward<ArrayValueT>(value));
150 return *this;
151 }
153 private:
154 bool m_isNull{false};
155
156 bool m_booleanValue{false};
157
158 long long m_longValue{0};
159
160 double m_doubleValue{0.0};
161
162 Aws::String m_stringValue;
163
164 Aws::Utils::ByteBuffer m_blobValue{};
165
166 ArrayValue m_arrayValue;
167 bool m_isNullHasBeenSet = false;
168 bool m_booleanValueHasBeenSet = false;
169 bool m_longValueHasBeenSet = false;
170 bool m_doubleValueHasBeenSet = false;
171 bool m_stringValueHasBeenSet = false;
172 bool m_blobValueHasBeenSet = false;
173 bool m_arrayValueHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace RDSDataService
178} // namespace Aws
const ArrayValue & GetArrayValue() const
Definition Field.h:140
Field & WithArrayValue(ArrayValueT &&value)
Definition Field.h:148
bool StringValueHasBeenSet() const
Definition Field.h:105
bool BooleanValueHasBeenSet() const
Definition Field.h:57
void SetStringValue(StringValueT &&value)
Definition Field.h:107
void SetArrayValue(ArrayValueT &&value)
Definition Field.h:143
void SetBooleanValue(bool value)
Definition Field.h:58
Field & WithStringValue(StringValueT &&value)
Definition Field.h:112
bool ArrayValueHasBeenSet() const
Definition Field.h:141
bool LongValueHasBeenSet() const
Definition Field.h:73
Field & WithBlobValue(BlobValueT &&value)
Definition Field.h:130
Field & WithIsNull(bool value)
Definition Field.h:46
void SetIsNull(bool value)
Definition Field.h:42
AWS_RDSDATASERVICE_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
long long GetLongValue() const
Definition Field.h:72
AWS_RDSDATASERVICE_API Field(Aws::Utils::Json::JsonView jsonValue)
void SetDoubleValue(double value)
Definition Field.h:90
void SetBlobValue(BlobValueT &&value)
Definition Field.h:125
double GetDoubleValue() const
Definition Field.h:88
Field & WithBooleanValue(bool value)
Definition Field.h:62
bool DoubleValueHasBeenSet() const
Definition Field.h:89
void SetLongValue(long long value)
Definition Field.h:74
AWS_RDSDATASERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::ByteBuffer & GetBlobValue() const
Definition Field.h:122
Field & WithDoubleValue(double value)
Definition Field.h:94
Field & WithLongValue(long long value)
Definition Field.h:78
AWS_RDSDATASERVICE_API Field()=default
const Aws::String & GetStringValue() const
Definition Field.h:104
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue