AWS SDK for C++  1.8.126
AWS SDK for C++
MessageSystemAttributeValue.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 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
54  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
55 
62  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
63 
70  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
71 
78  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
79 
86  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
87 
94  inline MessageSystemAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
95 
102  inline MessageSystemAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
103 
110  inline MessageSystemAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
111 
112 
117  inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; }
118 
123  inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
124 
129  inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; }
130 
135  inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); }
136 
141  inline MessageSystemAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;}
142 
147  inline MessageSystemAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;}
148 
149 
153  inline const Aws::Vector<Aws::String>& GetStringListValues() const{ return m_stringListValues; }
154 
158  inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
159 
163  inline void SetStringListValues(const Aws::Vector<Aws::String>& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = value; }
164 
168  inline void SetStringListValues(Aws::Vector<Aws::String>&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = std::move(value); }
169 
173  inline MessageSystemAttributeValue& WithStringListValues(const Aws::Vector<Aws::String>& value) { SetStringListValues(value); return *this;}
174 
178  inline MessageSystemAttributeValue& WithStringListValues(Aws::Vector<Aws::String>&& value) { SetStringListValues(std::move(value)); return *this;}
179 
183  inline MessageSystemAttributeValue& AddStringListValues(const Aws::String& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
184 
188  inline MessageSystemAttributeValue& AddStringListValues(Aws::String&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(std::move(value)); return *this; }
189 
193  inline MessageSystemAttributeValue& AddStringListValues(const char* value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
194 
195 
199  inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const{ return m_binaryListValues; }
200 
204  inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
205 
209  inline void SetBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = value; }
210 
214  inline void SetBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = std::move(value); }
215 
219  inline MessageSystemAttributeValue& WithBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { SetBinaryListValues(value); return *this;}
220 
224  inline MessageSystemAttributeValue& WithBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { SetBinaryListValues(std::move(value)); return *this;}
225 
229  inline MessageSystemAttributeValue& AddBinaryListValues(const Aws::Utils::ByteBuffer& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(value); return *this; }
230 
234  inline MessageSystemAttributeValue& AddBinaryListValues(Aws::Utils::ByteBuffer&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(std::move(value)); return *this; }
235 
236 
246  inline const Aws::String& GetDataType() const{ return m_dataType; }
247 
257  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
258 
268  inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
269 
279  inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
280 
290  inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
291 
301  inline MessageSystemAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
302 
312  inline MessageSystemAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
313 
323  inline MessageSystemAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;}
324 
325  private:
326 
327  Aws::String m_stringValue;
328  bool m_stringValueHasBeenSet;
329 
330  Aws::Utils::ByteBuffer m_binaryValue;
331  bool m_binaryValueHasBeenSet;
332 
333  Aws::Vector<Aws::String> m_stringListValues;
334  bool m_stringListValuesHasBeenSet;
335 
336  Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
337  bool m_binaryListValuesHasBeenSet;
338 
339  Aws::String m_dataType;
340  bool m_dataTypeHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace SQS
345 } // namespace Aws
Aws::SQS::Model::MessageSystemAttributeValue::SetStringListValues
void SetStringListValues(Aws::Vector< Aws::String > &&value)
Definition: MessageSystemAttributeValue.h:168
Aws::SQS::Model::MessageSystemAttributeValue::GetBinaryValue
const Aws::Utils::ByteBuffer & GetBinaryValue() const
Definition: MessageSystemAttributeValue.h:117
Aws::SQS::Model::MessageSystemAttributeValue::WithBinaryListValues
MessageSystemAttributeValue & WithBinaryListValues(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
Definition: MessageSystemAttributeValue.h:224
Aws::SQS::Model::MessageSystemAttributeValue::AddStringListValues
MessageSystemAttributeValue & AddStringListValues(Aws::String &&value)
Definition: MessageSystemAttributeValue.h:188
Aws::SQS::Model::MessageSystemAttributeValue::BinaryListValuesHasBeenSet
bool BinaryListValuesHasBeenSet() const
Definition: MessageSystemAttributeValue.h:204
Aws::SQS::Model::MessageSystemAttributeValue::WithStringValue
MessageSystemAttributeValue & WithStringValue(Aws::String &&value)
Definition: MessageSystemAttributeValue.h:102
Aws::SQS::Model::MessageSystemAttributeValue::MessageSystemAttributeValue
MessageSystemAttributeValue()
Aws::SQS::Model::MessageSystemAttributeValue::SetBinaryListValues
void SetBinaryListValues(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
Definition: MessageSystemAttributeValue.h:209
Aws::SQS::Model::MessageSystemAttributeValue::SetBinaryListValues
void SetBinaryListValues(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
Definition: MessageSystemAttributeValue.h:214
Aws::SQS::Model::MessageSystemAttributeValue::SetStringListValues
void SetStringListValues(const Aws::Vector< Aws::String > &value)
Definition: MessageSystemAttributeValue.h:163
Aws::SQS::Model::MessageSystemAttributeValue::WithDataType
MessageSystemAttributeValue & WithDataType(const char *value)
Definition: MessageSystemAttributeValue.h:323
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SQS::Model::MessageSystemAttributeValue::WithStringListValues
MessageSystemAttributeValue & WithStringListValues(Aws::Vector< Aws::String > &&value)
Definition: MessageSystemAttributeValue.h:178
AWSStreamFwd.h
Aws::SQS::Model::MessageSystemAttributeValue::GetStringListValues
const Aws::Vector< Aws::String > & GetStringListValues() const
Definition: MessageSystemAttributeValue.h:153
AWSVector.h
Aws::SQS::Model::MessageSystemAttributeValue::WithBinaryValue
MessageSystemAttributeValue & WithBinaryValue(Aws::Utils::ByteBuffer &&value)
Definition: MessageSystemAttributeValue.h:147
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SQS::Model::MessageSystemAttributeValue::SetDataType
void SetDataType(const char *value)
Definition: MessageSystemAttributeValue.h:290
Aws::SQS::Model::MessageSystemAttributeValue::StringListValuesHasBeenSet
bool StringListValuesHasBeenSet() const
Definition: MessageSystemAttributeValue.h:158
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SQS::Model::MessageSystemAttributeValue::GetDataType
const Aws::String & GetDataType() const
Definition: MessageSystemAttributeValue.h:246
Aws::SQS::Model::MessageSystemAttributeValue::SetDataType
void SetDataType(const Aws::String &value)
Definition: MessageSystemAttributeValue.h:268
Aws::SQS::Model::MessageSystemAttributeValue::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: MessageSystemAttributeValue.h:62
Aws::SQS::Model::MessageSystemAttributeValue::WithBinaryListValues
MessageSystemAttributeValue & WithBinaryListValues(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
Definition: MessageSystemAttributeValue.h:219
Aws::SQS::Model::MessageSystemAttributeValue::GetBinaryListValues
const Aws::Vector< Aws::Utils::ByteBuffer > & GetBinaryListValues() const
Definition: MessageSystemAttributeValue.h:199
Aws::SQS::Model::MessageSystemAttributeValue::operator=
MessageSystemAttributeValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::MessageSystemAttributeValue
Definition: MessageSystemAttributeValue.h:38
Aws::SQS::Model::MessageSystemAttributeValue::WithBinaryValue
MessageSystemAttributeValue & WithBinaryValue(const Aws::Utils::ByteBuffer &value)
Definition: MessageSystemAttributeValue.h:141
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::Utils::Array< unsigned char >
Aws::SQS::Model::MessageSystemAttributeValue::WithDataType
MessageSystemAttributeValue & WithDataType(const Aws::String &value)
Definition: MessageSystemAttributeValue.h:301
AWSString.h
Aws::SQS::Model::MessageSystemAttributeValue::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: MessageSystemAttributeValue.h:257
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::MessageSystemAttributeValue::WithStringListValues
MessageSystemAttributeValue & WithStringListValues(const Aws::Vector< Aws::String > &value)
Definition: MessageSystemAttributeValue.h:173
Aws::SQS::Model::MessageSystemAttributeValue::GetStringValue
const Aws::String & GetStringValue() const
Definition: MessageSystemAttributeValue.h:54
Aws::SQS::Model::MessageSystemAttributeValue::BinaryValueHasBeenSet
bool BinaryValueHasBeenSet() const
Definition: MessageSystemAttributeValue.h:123
Aws::SQS::Model::MessageSystemAttributeValue::AddBinaryListValues
MessageSystemAttributeValue & AddBinaryListValues(const Aws::Utils::ByteBuffer &value)
Definition: MessageSystemAttributeValue.h:229
Aws::SQS::Model::MessageSystemAttributeValue::AddStringListValues
MessageSystemAttributeValue & AddStringListValues(const char *value)
Definition: MessageSystemAttributeValue.h:193
SQS_EXPORTS.h
Aws::SQS::Model::MessageSystemAttributeValue::SetDataType
void SetDataType(Aws::String &&value)
Definition: MessageSystemAttributeValue.h:279
Aws::SQS::Model::MessageSystemAttributeValue::SetBinaryValue
void SetBinaryValue(const Aws::Utils::ByteBuffer &value)
Definition: MessageSystemAttributeValue.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::MessageSystemAttributeValue::SetBinaryValue
void SetBinaryValue(Aws::Utils::ByteBuffer &&value)
Definition: MessageSystemAttributeValue.h:135
Array.h
Aws::SQS::Model::MessageSystemAttributeValue::WithDataType
MessageSystemAttributeValue & WithDataType(Aws::String &&value)
Definition: MessageSystemAttributeValue.h:312
Aws::SQS::Model::MessageSystemAttributeValue::AddBinaryListValues
MessageSystemAttributeValue & AddBinaryListValues(Aws::Utils::ByteBuffer &&value)
Definition: MessageSystemAttributeValue.h:234
Aws::SQS::Model::MessageSystemAttributeValue::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SQS::Model::MessageSystemAttributeValue::MessageSystemAttributeValue
MessageSystemAttributeValue(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::MessageSystemAttributeValue::WithStringValue
MessageSystemAttributeValue & WithStringValue(const char *value)
Definition: MessageSystemAttributeValue.h:110
index
int index
Definition: cJSON.h:171
Aws::SQS::Model::MessageSystemAttributeValue::WithStringValue
MessageSystemAttributeValue & WithStringValue(const Aws::String &value)
Definition: MessageSystemAttributeValue.h:94
Aws::SQS::Model::MessageSystemAttributeValue::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: MessageSystemAttributeValue.h:78
Aws::SQS::Model::MessageSystemAttributeValue::SetStringValue
void SetStringValue(const char *value)
Definition: MessageSystemAttributeValue.h:86
Aws::SQS::Model::MessageSystemAttributeValue::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: MessageSystemAttributeValue.h:70
Aws::SQS::Model::MessageSystemAttributeValue::AddStringListValues
MessageSystemAttributeValue & AddStringListValues(const Aws::String &value)
Definition: MessageSystemAttributeValue.h:183
Aws::SQS::Model::MessageSystemAttributeValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const