AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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/redshift-data/RedshiftDataAPIService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RedshiftDataAPIService {
21namespace Model {
22
28class Field {
29 public:
30 AWS_REDSHIFTDATAAPISERVICE_API Field() = default;
31 AWS_REDSHIFTDATAAPISERVICE_API Field(Aws::Utils::Json::JsonView jsonValue);
32 AWS_REDSHIFTDATAAPISERVICE_API Field& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline bool GetIsNull() const { return m_isNull; }
40 inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; }
41 inline void SetIsNull(bool value) {
42 m_isNullHasBeenSet = true;
43 m_isNull = value;
44 }
45 inline Field& WithIsNull(bool value) {
46 SetIsNull(value);
47 return *this;
48 }
50
52
55 inline bool GetBooleanValue() const { return m_booleanValue; }
56 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
57 inline void SetBooleanValue(bool value) {
58 m_booleanValueHasBeenSet = true;
59 m_booleanValue = value;
60 }
61 inline Field& WithBooleanValue(bool value) {
62 SetBooleanValue(value);
63 return *this;
64 }
66
68
71 inline long long GetLongValue() const { return m_longValue; }
72 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
73 inline void SetLongValue(long long value) {
74 m_longValueHasBeenSet = true;
75 m_longValue = value;
76 }
77 inline Field& WithLongValue(long long value) {
78 SetLongValue(value);
79 return *this;
80 }
82
84
87 inline double GetDoubleValue() const { return m_doubleValue; }
88 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
89 inline void SetDoubleValue(double value) {
90 m_doubleValueHasBeenSet = true;
91 m_doubleValue = value;
92 }
93 inline Field& WithDoubleValue(double value) {
94 SetDoubleValue(value);
95 return *this;
96 }
98
100
103 inline const Aws::String& GetStringValue() const { return m_stringValue; }
104 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
105 template <typename StringValueT = Aws::String>
106 void SetStringValue(StringValueT&& value) {
107 m_stringValueHasBeenSet = true;
108 m_stringValue = std::forward<StringValueT>(value);
109 }
110 template <typename StringValueT = Aws::String>
111 Field& WithStringValue(StringValueT&& value) {
112 SetStringValue(std::forward<StringValueT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::ByteBuffer& GetBlobValue() const { return m_blobValue; }
122 inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; }
123 template <typename BlobValueT = Aws::Utils::ByteBuffer>
124 void SetBlobValue(BlobValueT&& value) {
125 m_blobValueHasBeenSet = true;
126 m_blobValue = std::forward<BlobValueT>(value);
127 }
128 template <typename BlobValueT = Aws::Utils::ByteBuffer>
129 Field& WithBlobValue(BlobValueT&& value) {
130 SetBlobValue(std::forward<BlobValueT>(value));
131 return *this;
132 }
134 private:
135 bool m_isNull{false};
136
137 bool m_booleanValue{false};
138
139 long long m_longValue{0};
140
141 double m_doubleValue{0.0};
142
143 Aws::String m_stringValue;
144
145 Aws::Utils::ByteBuffer m_blobValue{};
146 bool m_isNullHasBeenSet = false;
147 bool m_booleanValueHasBeenSet = false;
148 bool m_longValueHasBeenSet = false;
149 bool m_doubleValueHasBeenSet = false;
150 bool m_stringValueHasBeenSet = false;
151 bool m_blobValueHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace RedshiftDataAPIService
156} // namespace Aws
Field & WithStringValue(StringValueT &&value)
Definition Field.h:111
AWS_REDSHIFTDATAAPISERVICE_API Field()=default
AWS_REDSHIFTDATAAPISERVICE_API Field(Aws::Utils::Json::JsonView jsonValue)
void SetBlobValue(BlobValueT &&value)
Definition Field.h:124
const Aws::Utils::ByteBuffer & GetBlobValue() const
Definition Field.h:121
Field & WithBlobValue(BlobValueT &&value)
Definition Field.h:129
void SetLongValue(long long value)
Definition Field.h:73
const Aws::String & GetStringValue() const
Definition Field.h:103
Field & WithBooleanValue(bool value)
Definition Field.h:61
AWS_REDSHIFTDATAAPISERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTDATAAPISERVICE_API Field & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStringValue(StringValueT &&value)
Definition Field.h:106
Field & WithDoubleValue(double value)
Definition Field.h:93
Field & WithLongValue(long long value)
Definition Field.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue