AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MessageAttributeValue.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace SNS
23{
24namespace Model
25{
26
45 {
46 public:
47 AWS_SNS_API MessageAttributeValue();
50
51 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
54
56
62 inline const Aws::String& GetDataType() const{ return m_dataType; }
63 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
64 inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
65 inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
66 inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
67 inline MessageAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
68 inline MessageAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
69 inline MessageAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;}
71
73
78 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
79 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
80 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
81 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
82 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
83 inline MessageAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
84 inline MessageAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
85 inline MessageAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
87
89
93 inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; }
94 inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
95 inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; }
96 inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); }
97 inline MessageAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;}
98 inline MessageAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;}
100 private:
101
102 Aws::String m_dataType;
103 bool m_dataTypeHasBeenSet = false;
104
105 Aws::String m_stringValue;
106 bool m_stringValueHasBeenSet = false;
107
108 Aws::Utils::ByteBuffer m_binaryValue;
109 bool m_binaryValueHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SNS
114} // namespace Aws
MessageAttributeValue & WithBinaryValue(const Aws::Utils::ByteBuffer &value)
MessageAttributeValue & WithStringValue(const char *value)
AWS_SNS_API MessageAttributeValue(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetBinaryValue(Aws::Utils::ByteBuffer &&value)
MessageAttributeValue & WithBinaryValue(Aws::Utils::ByteBuffer &&value)
void SetStringValue(const Aws::String &value)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MessageAttributeValue & WithStringValue(Aws::String &&value)
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::ByteBuffer & GetBinaryValue() const
MessageAttributeValue & WithDataType(Aws::String &&value)
void SetBinaryValue(const Aws::Utils::ByteBuffer &value)
void SetDataType(const Aws::String &value)
MessageAttributeValue & WithDataType(const char *value)
MessageAttributeValue & WithDataType(const Aws::String &value)
AWS_SNS_API MessageAttributeValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MessageAttributeValue & WithStringValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream