AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MessageSystemAttributeValue.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
38 {
39 public:
40 AWS_SQS_API MessageSystemAttributeValue() = default;
44
45
47
53 inline const Aws::String& GetStringValue() const { return m_stringValue; }
54 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
55 template<typename StringValueT = Aws::String>
56 void SetStringValue(StringValueT&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::forward<StringValueT>(value); }
57 template<typename StringValueT = Aws::String>
58 MessageSystemAttributeValue& WithStringValue(StringValueT&& value) { SetStringValue(std::forward<StringValueT>(value)); return *this;}
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) { m_binaryValueHasBeenSet = true; m_binaryValue = std::forward<BinaryValueT>(value); }
70 template<typename BinaryValueT = Aws::Utils::ByteBuffer>
71 MessageSystemAttributeValue& WithBinaryValue(BinaryValueT&& value) { SetBinaryValue(std::forward<BinaryValueT>(value)); return *this;}
73
75
78 inline const Aws::Vector<Aws::String>& GetStringListValues() const { return m_stringListValues; }
79 inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
80 template<typename StringListValuesT = Aws::Vector<Aws::String>>
81 void SetStringListValues(StringListValuesT&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = std::forward<StringListValuesT>(value); }
82 template<typename StringListValuesT = Aws::Vector<Aws::String>>
83 MessageSystemAttributeValue& WithStringListValues(StringListValuesT&& value) { SetStringListValues(std::forward<StringListValuesT>(value)); return *this;}
84 template<typename StringListValuesT = Aws::String>
85 MessageSystemAttributeValue& AddStringListValues(StringListValuesT&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.emplace_back(std::forward<StringListValuesT>(value)); return *this; }
87
89
92 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const { return m_binaryListValues; }
93 inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
94 template<typename BinaryListValuesT = Aws::Vector<Aws::Utils::ByteBuffer>>
95 void SetBinaryListValues(BinaryListValuesT&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = std::forward<BinaryListValuesT>(value); }
96 template<typename BinaryListValuesT = Aws::Vector<Aws::Utils::ByteBuffer>>
97 MessageSystemAttributeValue& WithBinaryListValues(BinaryListValuesT&& value) { SetBinaryListValues(std::forward<BinaryListValuesT>(value)); return *this;}
98 template<typename BinaryListValuesT = Aws::Utils::ByteBuffer>
99 MessageSystemAttributeValue& AddBinaryListValues(BinaryListValuesT&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.emplace_back(std::forward<BinaryListValuesT>(value)); return *this; }
101
103
111 inline const Aws::String& GetDataType() const { return m_dataType; }
112 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
113 template<typename DataTypeT = Aws::String>
114 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
115 template<typename DataTypeT = Aws::String>
116 MessageSystemAttributeValue& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
118 private:
119
120 Aws::String m_stringValue;
121 bool m_stringValueHasBeenSet = false;
122
123 Aws::Utils::ByteBuffer m_binaryValue{};
124 bool m_binaryValueHasBeenSet = false;
125
126 Aws::Vector<Aws::String> m_stringListValues;
127 bool m_stringListValuesHasBeenSet = false;
128
129 Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
130 bool m_binaryListValuesHasBeenSet = false;
131
132 Aws::String m_dataType;
133 bool m_dataTypeHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SQS
138} // 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