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/sqs/SQS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SQS
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_SQS_API MessageAttributeValue() = default;
47
48
50
56 inline const Aws::String& GetStringValue() const { return m_stringValue; }
57 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
58 template<typename StringValueT = Aws::String>
59 void SetStringValue(StringValueT&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::forward<StringValueT>(value); }
60 template<typename StringValueT = Aws::String>
61 MessageAttributeValue& WithStringValue(StringValueT&& value) { SetStringValue(std::forward<StringValueT>(value)); return *this;}
63
65
69 inline const Aws::Utils::ByteBuffer& GetBinaryValue() const { return m_binaryValue; }
70 inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
71 template<typename BinaryValueT = Aws::Utils::ByteBuffer>
72 void SetBinaryValue(BinaryValueT&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::forward<BinaryValueT>(value); }
73 template<typename BinaryValueT = Aws::Utils::ByteBuffer>
74 MessageAttributeValue& WithBinaryValue(BinaryValueT&& value) { SetBinaryValue(std::forward<BinaryValueT>(value)); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetStringListValues() const { return m_stringListValues; }
82 inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
83 template<typename StringListValuesT = Aws::Vector<Aws::String>>
84 void SetStringListValues(StringListValuesT&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = std::forward<StringListValuesT>(value); }
85 template<typename StringListValuesT = Aws::Vector<Aws::String>>
86 MessageAttributeValue& WithStringListValues(StringListValuesT&& value) { SetStringListValues(std::forward<StringListValuesT>(value)); return *this;}
87 template<typename StringListValuesT = Aws::String>
88 MessageAttributeValue& AddStringListValues(StringListValuesT&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.emplace_back(std::forward<StringListValuesT>(value)); return *this; }
90
92
95 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const { return m_binaryListValues; }
96 inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
97 template<typename BinaryListValuesT = Aws::Vector<Aws::Utils::ByteBuffer>>
98 void SetBinaryListValues(BinaryListValuesT&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = std::forward<BinaryListValuesT>(value); }
99 template<typename BinaryListValuesT = Aws::Vector<Aws::Utils::ByteBuffer>>
100 MessageAttributeValue& WithBinaryListValues(BinaryListValuesT&& value) { SetBinaryListValues(std::forward<BinaryListValuesT>(value)); return *this;}
101 template<typename BinaryListValuesT = Aws::Utils::ByteBuffer>
102 MessageAttributeValue& AddBinaryListValues(BinaryListValuesT&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.emplace_back(std::forward<BinaryListValuesT>(value)); return *this; }
104
106
114 inline const Aws::String& GetDataType() const { return m_dataType; }
115 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
116 template<typename DataTypeT = Aws::String>
117 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
118 template<typename DataTypeT = Aws::String>
119 MessageAttributeValue& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
121 private:
122
123 Aws::String m_stringValue;
124 bool m_stringValueHasBeenSet = false;
125
126 Aws::Utils::ByteBuffer m_binaryValue{};
127 bool m_binaryValueHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_stringListValues;
130 bool m_stringListValuesHasBeenSet = false;
131
132 Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
133 bool m_binaryListValuesHasBeenSet = false;
134
135 Aws::String m_dataType;
136 bool m_dataTypeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace SQS
141} // namespace Aws
AWS_SQS_API MessageAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageAttributeValue & WithDataType(DataTypeT &&value)
void SetBinaryListValues(BinaryListValuesT &&value)
AWS_SQS_API MessageAttributeValue()=default
const Aws::Utils::ByteBuffer & GetBinaryValue() const
MessageAttributeValue & WithStringValue(StringValueT &&value)
MessageAttributeValue & WithBinaryValue(BinaryValueT &&value)
void SetStringListValues(StringListValuesT &&value)
MessageAttributeValue & AddBinaryListValues(BinaryListValuesT &&value)
MessageAttributeValue & AddStringListValues(StringListValuesT &&value)
AWS_SQS_API MessageAttributeValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetStringListValues() const
MessageAttributeValue & WithBinaryListValues(BinaryListValuesT &&value)
MessageAttributeValue & WithStringListValues(StringListValuesT &&value)
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Utils::ByteBuffer > & GetBinaryListValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue