AWS SDK for C++  1.9.3
AWS SDK for C++
MessageAttributeValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace SQS
24 {
25 namespace Model
26 {
27 
41  {
42  public:
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
50 
57  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
58 
65  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
66 
73  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
74 
81  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
82 
89  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
90 
97  inline MessageAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
98 
105  inline MessageAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
106 
113  inline MessageAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
114 
115 
120  inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; }
121 
126  inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
127 
132  inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; }
133 
138  inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); }
139 
144  inline MessageAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;}
145 
150  inline MessageAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;}
151 
152 
156  inline const Aws::Vector<Aws::String>& GetStringListValues() const{ return m_stringListValues; }
157 
161  inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
162 
166  inline void SetStringListValues(const Aws::Vector<Aws::String>& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = value; }
167 
171  inline void SetStringListValues(Aws::Vector<Aws::String>&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = std::move(value); }
172 
176  inline MessageAttributeValue& WithStringListValues(const Aws::Vector<Aws::String>& value) { SetStringListValues(value); return *this;}
177 
181  inline MessageAttributeValue& WithStringListValues(Aws::Vector<Aws::String>&& value) { SetStringListValues(std::move(value)); return *this;}
182 
186  inline MessageAttributeValue& AddStringListValues(const Aws::String& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
187 
191  inline MessageAttributeValue& AddStringListValues(Aws::String&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(std::move(value)); return *this; }
192 
196  inline MessageAttributeValue& AddStringListValues(const char* value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
197 
198 
202  inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const{ return m_binaryListValues; }
203 
207  inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
208 
212  inline void SetBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = value; }
213 
217  inline void SetBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = std::move(value); }
218 
222  inline MessageAttributeValue& WithBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { SetBinaryListValues(value); return *this;}
223 
227  inline MessageAttributeValue& WithBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { SetBinaryListValues(std::move(value)); return *this;}
228 
232  inline MessageAttributeValue& AddBinaryListValues(const Aws::Utils::ByteBuffer& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(value); return *this; }
233 
237  inline MessageAttributeValue& AddBinaryListValues(Aws::Utils::ByteBuffer&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(std::move(value)); return *this; }
238 
239 
249  inline const Aws::String& GetDataType() const{ return m_dataType; }
250 
260  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
261 
271  inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
272 
282  inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
283 
293  inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
294 
304  inline MessageAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
305 
315  inline MessageAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
316 
326  inline MessageAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;}
327 
328  private:
329 
330  Aws::String m_stringValue;
331  bool m_stringValueHasBeenSet;
332 
333  Aws::Utils::ByteBuffer m_binaryValue;
334  bool m_binaryValueHasBeenSet;
335 
336  Aws::Vector<Aws::String> m_stringListValues;
337  bool m_stringListValuesHasBeenSet;
338 
339  Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
340  bool m_binaryListValuesHasBeenSet;
341 
342  Aws::String m_dataType;
343  bool m_dataTypeHasBeenSet;
344  };
345 
346 } // namespace Model
347 } // namespace SQS
348 } // namespace Aws
Aws::SQS::Model::MessageAttributeValue::WithDataType
MessageAttributeValue & WithDataType(const char *value)
Definition: MessageAttributeValue.h:326
Aws::SQS::Model::MessageAttributeValue::AddStringListValues
MessageAttributeValue & AddStringListValues(const Aws::String &value)
Definition: MessageAttributeValue.h:186
Aws::SQS::Model::MessageAttributeValue::BinaryValueHasBeenSet
bool BinaryValueHasBeenSet() const
Definition: MessageAttributeValue.h:126
Aws::SQS::Model::MessageAttributeValue::MessageAttributeValue
MessageAttributeValue()
Aws::SQS::Model::MessageAttributeValue::WithStringListValues
MessageAttributeValue & WithStringListValues(Aws::Vector< Aws::String > &&value)
Definition: MessageAttributeValue.h:181
Aws::SQS::Model::MessageAttributeValue::operator=
MessageAttributeValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::MessageAttributeValue::AddStringListValues
MessageAttributeValue & AddStringListValues(Aws::String &&value)
Definition: MessageAttributeValue.h:191
Aws::SQS::Model::MessageAttributeValue::SetStringListValues
void SetStringListValues(const Aws::Vector< Aws::String > &value)
Definition: MessageAttributeValue.h:166
Aws::SQS::Model::MessageAttributeValue::WithDataType
MessageAttributeValue & WithDataType(const Aws::String &value)
Definition: MessageAttributeValue.h:304
Aws::SQS::Model::MessageAttributeValue::SetStringListValues
void SetStringListValues(Aws::Vector< Aws::String > &&value)
Definition: MessageAttributeValue.h:171
Aws::SQS::Model::MessageAttributeValue::WithStringValue
MessageAttributeValue & WithStringValue(const Aws::String &value)
Definition: MessageAttributeValue.h:97
Aws::SQS::Model::MessageAttributeValue::AddBinaryListValues
MessageAttributeValue & AddBinaryListValues(Aws::Utils::ByteBuffer &&value)
Definition: MessageAttributeValue.h:237
Aws::SQS::Model::MessageAttributeValue::WithBinaryListValues
MessageAttributeValue & WithBinaryListValues(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
Definition: MessageAttributeValue.h:227
Aws::SQS::Model::MessageAttributeValue::WithBinaryValue
MessageAttributeValue & WithBinaryValue(Aws::Utils::ByteBuffer &&value)
Definition: MessageAttributeValue.h:150
Aws::SQS::Model::MessageAttributeValue::SetBinaryValue
void SetBinaryValue(Aws::Utils::ByteBuffer &&value)
Definition: MessageAttributeValue.h:138
Aws::SQS::Model::MessageAttributeValue::AddBinaryListValues
MessageAttributeValue & AddBinaryListValues(const Aws::Utils::ByteBuffer &value)
Definition: MessageAttributeValue.h:232
Aws::SQS::Model::MessageAttributeValue::GetStringValue
const Aws::String & GetStringValue() const
Definition: MessageAttributeValue.h:57
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SQS::Model::MessageAttributeValue::GetDataType
const Aws::String & GetDataType() const
Definition: MessageAttributeValue.h:249
Aws::SQS::Model::MessageAttributeValue::StringListValuesHasBeenSet
bool StringListValuesHasBeenSet() const
Definition: MessageAttributeValue.h:161
AWSStreamFwd.h
Aws::SQS::Model::MessageAttributeValue::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: MessageAttributeValue.h:65
AWSVector.h
Aws::SQS::Model::MessageAttributeValue::BinaryListValuesHasBeenSet
bool BinaryListValuesHasBeenSet() const
Definition: MessageAttributeValue.h:207
Aws::SQS::Model::MessageAttributeValue::SetDataType
void SetDataType(const char *value)
Definition: MessageAttributeValue.h:293
Aws::SQS::Model::MessageAttributeValue::WithStringValue
MessageAttributeValue & WithStringValue(Aws::String &&value)
Definition: MessageAttributeValue.h:105
Aws::SQS::Model::MessageAttributeValue::MessageAttributeValue
MessageAttributeValue(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::MessageAttributeValue::SetStringValue
void SetStringValue(const char *value)
Definition: MessageAttributeValue.h:89
Aws::SQS::Model::MessageAttributeValue
Definition: MessageAttributeValue.h:41
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SQS::Model::MessageAttributeValue::WithDataType
MessageAttributeValue & WithDataType(Aws::String &&value)
Definition: MessageAttributeValue.h:315
Aws::SQS::Model::MessageAttributeValue::SetBinaryValue
void SetBinaryValue(const Aws::Utils::ByteBuffer &value)
Definition: MessageAttributeValue.h:132
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SQS::Model::MessageAttributeValue::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SQS::Model::MessageAttributeValue::GetBinaryListValues
const Aws::Vector< Aws::Utils::ByteBuffer > & GetBinaryListValues() const
Definition: MessageAttributeValue.h:202
Aws::SQS::Model::MessageAttributeValue::WithStringValue
MessageAttributeValue & WithStringValue(const char *value)
Definition: MessageAttributeValue.h:113
Aws::SQS::Model::MessageAttributeValue::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: MessageAttributeValue.h:260
Aws::SQS::Model::MessageAttributeValue::GetBinaryValue
const Aws::Utils::ByteBuffer & GetBinaryValue() const
Definition: MessageAttributeValue.h:120
Aws::SQS::Model::MessageAttributeValue::SetDataType
void SetDataType(const Aws::String &value)
Definition: MessageAttributeValue.h:271
Aws::SQS::Model::MessageAttributeValue::WithBinaryListValues
MessageAttributeValue & WithBinaryListValues(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
Definition: MessageAttributeValue.h:222
Aws::SQS::Model::MessageAttributeValue::AddStringListValues
MessageAttributeValue & AddStringListValues(const char *value)
Definition: MessageAttributeValue.h:196
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::Utils::Array< unsigned char >
Aws::SQS::Model::MessageAttributeValue::SetBinaryListValues
void SetBinaryListValues(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
Definition: MessageAttributeValue.h:217
AWSString.h
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
SQS_EXPORTS.h
Aws::SQS::Model::MessageAttributeValue::GetStringListValues
const Aws::Vector< Aws::String > & GetStringListValues() const
Definition: MessageAttributeValue.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::MessageAttributeValue::WithBinaryValue
MessageAttributeValue & WithBinaryValue(const Aws::Utils::ByteBuffer &value)
Definition: MessageAttributeValue.h:144
Array.h
Aws::SQS::Model::MessageAttributeValue::WithStringListValues
MessageAttributeValue & WithStringListValues(const Aws::Vector< Aws::String > &value)
Definition: MessageAttributeValue.h:176
Aws::SQS::Model::MessageAttributeValue::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: MessageAttributeValue.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SQS::Model::MessageAttributeValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SQS::Model::MessageAttributeValue::SetDataType
void SetDataType(Aws::String &&value)
Definition: MessageAttributeValue.h:282
Aws::SQS::Model::MessageAttributeValue::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: MessageAttributeValue.h:81
Aws::SQS::Model::MessageAttributeValue::SetBinaryListValues
void SetBinaryListValues(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
Definition: MessageAttributeValue.h:212