AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
MessageSystemAttributeValue.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sqs/SQS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SQS {
22namespace Model {
23
34 public:
35 AWS_SQS_API MessageSystemAttributeValue() = default;
39
41
47 inline const Aws::String& GetStringValue() const { return m_stringValue; }
48 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
49 template <typename StringValueT = Aws::String>
50 void SetStringValue(StringValueT&& value) {
51 m_stringValueHasBeenSet = true;
52 m_stringValue = std::forward<StringValueT>(value);
53 }
54 template <typename StringValueT = Aws::String>
56 SetStringValue(std::forward<StringValueT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Utils::ByteBuffer& GetBinaryValue() const { return m_binaryValue; }
67 inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
68 template <typename BinaryValueT = Aws::Utils::ByteBuffer>
69 void SetBinaryValue(BinaryValueT&& value) {
70 m_binaryValueHasBeenSet = true;
71 m_binaryValue = std::forward<BinaryValueT>(value);
72 }
73 template <typename BinaryValueT = Aws::Utils::ByteBuffer>
75 SetBinaryValue(std::forward<BinaryValueT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::Vector<Aws::String>& GetStringListValues() const { return m_stringListValues; }
85 inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
86 template <typename StringListValuesT = Aws::Vector<Aws::String>>
87 void SetStringListValues(StringListValuesT&& value) {
88 m_stringListValuesHasBeenSet = true;
89 m_stringListValues = std::forward<StringListValuesT>(value);
90 }
91 template <typename StringListValuesT = Aws::Vector<Aws::String>>
93 SetStringListValues(std::forward<StringListValuesT>(value));
94 return *this;
95 }
96 template <typename StringListValuesT = Aws::String>
98 m_stringListValuesHasBeenSet = true;
99 m_stringListValues.emplace_back(std::forward<StringListValuesT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const { return m_binaryListValues; }
109 inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
110 template <typename BinaryListValuesT = Aws::Vector<Aws::Utils::ByteBuffer>>
111 void SetBinaryListValues(BinaryListValuesT&& value) {
112 m_binaryListValuesHasBeenSet = true;
113 m_binaryListValues = std::forward<BinaryListValuesT>(value);
114 }
115 template <typename BinaryListValuesT = Aws::Vector<Aws::Utils::ByteBuffer>>
117 SetBinaryListValues(std::forward<BinaryListValuesT>(value));
118 return *this;
119 }
120 template <typename BinaryListValuesT = Aws::Utils::ByteBuffer>
122 m_binaryListValuesHasBeenSet = true;
123 m_binaryListValues.emplace_back(std::forward<BinaryListValuesT>(value));
124 return *this;
125 }
127
129
137 inline const Aws::String& GetDataType() const { return m_dataType; }
138 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
139 template <typename DataTypeT = Aws::String>
140 void SetDataType(DataTypeT&& value) {
141 m_dataTypeHasBeenSet = true;
142 m_dataType = std::forward<DataTypeT>(value);
143 }
144 template <typename DataTypeT = Aws::String>
146 SetDataType(std::forward<DataTypeT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_stringValue;
152
153 Aws::Utils::ByteBuffer m_binaryValue{};
154
155 Aws::Vector<Aws::String> m_stringListValues;
156
157 Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
158
159 Aws::String m_dataType;
160 bool m_stringValueHasBeenSet = false;
161 bool m_binaryValueHasBeenSet = false;
162 bool m_stringListValuesHasBeenSet = false;
163 bool m_binaryListValuesHasBeenSet = false;
164 bool m_dataTypeHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace SQS
169} // namespace Aws
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetStringListValues() const
MessageSystemAttributeValue & WithBinaryListValues(BinaryListValuesT &&value)
AWS_SQS_API MessageSystemAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SQS_API MessageSystemAttributeValue(Aws::Utils::Json::JsonView jsonValue)
MessageSystemAttributeValue & AddStringListValues(StringListValuesT &&value)
MessageSystemAttributeValue & WithDataType(DataTypeT &&value)
MessageSystemAttributeValue & WithBinaryValue(BinaryValueT &&value)
const Aws::Utils::ByteBuffer & GetBinaryValue() const
MessageSystemAttributeValue & WithStringListValues(StringListValuesT &&value)
const Aws::Vector< Aws::Utils::ByteBuffer > & GetBinaryListValues() const
MessageSystemAttributeValue & WithStringValue(StringValueT &&value)
AWS_SQS_API MessageSystemAttributeValue()=default
MessageSystemAttributeValue & AddBinaryListValues(BinaryListValuesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue