AWS SDK for C++  1.9.104
AWS SDK for C++
MessageAttributeValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace SNS
23 {
24 namespace Model
25 {
26 
45  {
46  public:
50 
51  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52  void OutputToStream(Aws::OStream& oStream, const char* location) const;
53 
54 
61  inline const Aws::String& GetDataType() const{ return m_dataType; }
62 
69  inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
70 
77  inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
78 
85  inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
86 
93  inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
94 
101  inline MessageAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
102 
109  inline MessageAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
110 
117  inline MessageAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;}
118 
119 
125  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
126 
132  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
133 
139  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
140 
146  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
147 
153  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
154 
160  inline MessageAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
161 
167  inline MessageAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
168 
174  inline MessageAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
175 
176 
181  inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; }
182 
187  inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
188 
193  inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; }
194 
199  inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); }
200 
205  inline MessageAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;}
206 
211  inline MessageAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;}
212 
213  private:
214 
215  Aws::String m_dataType;
216  bool m_dataTypeHasBeenSet;
217 
218  Aws::String m_stringValue;
219  bool m_stringValueHasBeenSet;
220 
221  Aws::Utils::ByteBuffer m_binaryValue;
222  bool m_binaryValueHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace SNS
227 } // namespace Aws
Aws::SNS::Model::MessageAttributeValue::GetStringValue
const Aws::String & GetStringValue() const
Definition: MessageAttributeValue.h:125
Aws::SNS::Model::MessageAttributeValue::SetBinaryValue
void SetBinaryValue(Aws::Utils::ByteBuffer &&value)
Definition: MessageAttributeValue.h:199
Aws::SNS::Model::MessageAttributeValue::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SNS::Model::MessageAttributeValue::SetStringValue
void SetStringValue(const char *value)
Definition: MessageAttributeValue.h:153
Aws::SNS::Model::MessageAttributeValue::operator=
MessageAttributeValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::MessageAttributeValue::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: MessageAttributeValue.h:146
Aws::SNS::Model::MessageAttributeValue::GetBinaryValue
const Aws::Utils::ByteBuffer & GetBinaryValue() const
Definition: MessageAttributeValue.h:181
Aws::SNS::Model::MessageAttributeValue::SetBinaryValue
void SetBinaryValue(const Aws::Utils::ByteBuffer &value)
Definition: MessageAttributeValue.h:193
AWSStreamFwd.h
Aws::SNS::Model::MessageAttributeValue::MessageAttributeValue
MessageAttributeValue(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SNS::Model::MessageAttributeValue::DataTypeHasBeenSet
bool DataTypeHasBeenSet() const
Definition: MessageAttributeValue.h:69
Aws::SNS::Model::MessageAttributeValue::WithBinaryValue
MessageAttributeValue & WithBinaryValue(Aws::Utils::ByteBuffer &&value)
Definition: MessageAttributeValue.h:211
Aws::SNS::Model::MessageAttributeValue
Definition: MessageAttributeValue.h:45
Aws::SNS::Model::MessageAttributeValue::WithStringValue
MessageAttributeValue & WithStringValue(const char *value)
Definition: MessageAttributeValue.h:174
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::MessageAttributeValue::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: MessageAttributeValue.h:139
Aws::SNS::Model::MessageAttributeValue::WithDataType
MessageAttributeValue & WithDataType(Aws::String &&value)
Definition: MessageAttributeValue.h:109
Aws::Utils::Array< unsigned char >
Aws::SNS::Model::MessageAttributeValue::WithDataType
MessageAttributeValue & WithDataType(const Aws::String &value)
Definition: MessageAttributeValue.h:101
AWSString.h
Aws::SNS::Model::MessageAttributeValue::WithStringValue
MessageAttributeValue & WithStringValue(const Aws::String &value)
Definition: MessageAttributeValue.h:160
Aws::SNS::Model::MessageAttributeValue::SetDataType
void SetDataType(const Aws::String &value)
Definition: MessageAttributeValue.h:77
Aws::SNS::Model::MessageAttributeValue::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: MessageAttributeValue.h:132
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::MessageAttributeValue::SetDataType
void SetDataType(const char *value)
Definition: MessageAttributeValue.h:93
Aws::SNS::Model::MessageAttributeValue::WithStringValue
MessageAttributeValue & WithStringValue(Aws::String &&value)
Definition: MessageAttributeValue.h:167
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::MessageAttributeValue::WithDataType
MessageAttributeValue & WithDataType(const char *value)
Definition: MessageAttributeValue.h:117
Aws::SNS::Model::MessageAttributeValue::SetDataType
void SetDataType(Aws::String &&value)
Definition: MessageAttributeValue.h:85
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::SNS::Model::MessageAttributeValue::MessageAttributeValue
MessageAttributeValue()
Aws::SNS::Model::MessageAttributeValue::GetDataType
const Aws::String & GetDataType() const
Definition: MessageAttributeValue.h:61
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::MessageAttributeValue::BinaryValueHasBeenSet
bool BinaryValueHasBeenSet() const
Definition: MessageAttributeValue.h:187
Aws::SNS::Model::MessageAttributeValue::WithBinaryValue
MessageAttributeValue & WithBinaryValue(const Aws::Utils::ByteBuffer &value)
Definition: MessageAttributeValue.h:205
Aws::SNS::Model::MessageAttributeValue::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const