AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DataTypeT = Aws::String>
65 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
66 template<typename DataTypeT = Aws::String>
67 MessageAttributeValue& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
69
71
76 inline const Aws::String& GetStringValue() const { return m_stringValue; }
77 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
78 template<typename StringValueT = Aws::String>
79 void SetStringValue(StringValueT&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::forward<StringValueT>(value); }
80 template<typename StringValueT = Aws::String>
81 MessageAttributeValue& WithStringValue(StringValueT&& value) { SetStringValue(std::forward<StringValueT>(value)); return *this;}
83
85
89 inline const Aws::Utils::ByteBuffer& GetBinaryValue() const { return m_binaryValue; }
90 inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
91 template<typename BinaryValueT = Aws::Utils::ByteBuffer>
92 void SetBinaryValue(BinaryValueT&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::forward<BinaryValueT>(value); }
93 template<typename BinaryValueT = Aws::Utils::ByteBuffer>
94 MessageAttributeValue& WithBinaryValue(BinaryValueT&& value) { SetBinaryValue(std::forward<BinaryValueT>(value)); return *this;}
96 private:
97
98 Aws::String m_dataType;
99 bool m_dataTypeHasBeenSet = false;
100
101 Aws::String m_stringValue;
102 bool m_stringValueHasBeenSet = false;
103
104 Aws::Utils::ByteBuffer m_binaryValue{};
105 bool m_binaryValueHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace SNS
110} // namespace Aws
AWS_SNS_API MessageAttributeValue()=default
MessageAttributeValue & WithStringValue(StringValueT &&value)
AWS_SNS_API MessageAttributeValue(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::ByteBuffer & GetBinaryValue() const
MessageAttributeValue & WithDataType(DataTypeT &&value)
MessageAttributeValue & WithBinaryValue(BinaryValueT &&value)
AWS_SNS_API MessageAttributeValue & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream