1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sqs/SQS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace SQS
{
namespace Model
{
/**
* <p>The user-specified message attribute value. For string data types, the
* <code>Value</code> attribute has the same restrictions on the content as the
* message body. For more information, see <code> <a>SendMessage</a>.</code> </p>
* <p> <code>Name</code>, <code>type</code>, <code>value</code> and the message
* body must not be empty or null. All parts of the message attribute, including
* <code>Name</code>, <code>Type</code>, and <code>Value</code>, are part of the
* message size restriction (256 KB or 262,144 bytes).</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/MessageAttributeValue">AWS
* API Reference</a></p>
*/
class MessageAttributeValue
{
public:
AWS_SQS_API MessageAttributeValue();
AWS_SQS_API MessageAttributeValue(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_SQS_API MessageAttributeValue& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_SQS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
AWS_SQS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline const Aws::String& GetStringValue() const{ return m_stringValue; }
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline MessageAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline MessageAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
/**
* <p>Strings are Unicode with UTF-8 binary encoding. For a list of code values,
* see <a
* href="http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII
* Printable Characters</a>.</p>
*/
inline MessageAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
/**
* <p>Binary type attributes can store any binary data, such as compressed data,
* encrypted data, or images.</p>
*/
inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; }
/**
* <p>Binary type attributes can store any binary data, such as compressed data,
* encrypted data, or images.</p>
*/
inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
/**
* <p>Binary type attributes can store any binary data, such as compressed data,
* encrypted data, or images.</p>
*/
inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; }
/**
* <p>Binary type attributes can store any binary data, such as compressed data,
* encrypted data, or images.</p>
*/
inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); }
/**
* <p>Binary type attributes can store any binary data, such as compressed data,
* encrypted data, or images.</p>
*/
inline MessageAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;}
/**
* <p>Binary type attributes can store any binary data, such as compressed data,
* encrypted data, or images.</p>
*/
inline MessageAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;}
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline const Aws::Vector<Aws::String>& GetStringListValues() const{ return m_stringListValues; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline void SetStringListValues(const Aws::Vector<Aws::String>& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = value; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline void SetStringListValues(Aws::Vector<Aws::String>&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = std::move(value); }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& WithStringListValues(const Aws::Vector<Aws::String>& value) { SetStringListValues(value); return *this;}
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& WithStringListValues(Aws::Vector<Aws::String>&& value) { SetStringListValues(std::move(value)); return *this;}
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& AddStringListValues(const Aws::String& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& AddStringListValues(Aws::String&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(std::move(value)); return *this; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& AddStringListValues(const char* value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const{ return m_binaryListValues; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline void SetBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = value; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline void SetBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = std::move(value); }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& WithBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { SetBinaryListValues(value); return *this;}
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& WithBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { SetBinaryListValues(std::move(value)); return *this;}
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& AddBinaryListValues(const Aws::Utils::ByteBuffer& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(value); return *this; }
/**
* <p>Not implemented. Reserved for future use.</p>
*/
inline MessageAttributeValue& AddBinaryListValues(Aws::Utils::ByteBuffer&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(std::move(value)); return *this; }
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline const Aws::String& GetDataType() const{ return m_dataType; }
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline MessageAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline MessageAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
/**
* <p>Amazon SQS supports the following logical data types: <code>String</code>,
* <code>Number</code>, and <code>Binary</code>. For the <code>Number</code> data
* type, you must use <code>StringValue</code>.</p> <p>You can also append custom
* labels. For more information, see <a
* href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon
* SQS Message Attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p>
*/
inline MessageAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;}
private:
Aws::String m_stringValue;
bool m_stringValueHasBeenSet = false;
Aws::Utils::ByteBuffer m_binaryValue;
bool m_binaryValueHasBeenSet = false;
Aws::Vector<Aws::String> m_stringListValues;
bool m_stringListValuesHasBeenSet = false;
Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
bool m_binaryListValuesHasBeenSet = false;
Aws::String m_dataType;
bool m_dataTypeHasBeenSet = false;
};
} // namespace Model
} // namespace SQS
} // namespace Aws
|