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/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();
47
48
50
56 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
57 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
58 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
59 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
60 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
61 inline MessageAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
62 inline MessageAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
63 inline MessageAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
65
67
71 inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; }
72 inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; }
73 inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; }
74 inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); }
75 inline MessageAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;}
76 inline MessageAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetStringListValues() const{ return m_stringListValues; }
84 inline bool StringListValuesHasBeenSet() const { return m_stringListValuesHasBeenSet; }
85 inline void SetStringListValues(const Aws::Vector<Aws::String>& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = value; }
86 inline void SetStringListValues(Aws::Vector<Aws::String>&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues = std::move(value); }
89 inline MessageAttributeValue& AddStringListValues(const Aws::String& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
90 inline MessageAttributeValue& AddStringListValues(Aws::String&& value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(std::move(value)); return *this; }
91 inline MessageAttributeValue& AddStringListValues(const char* value) { m_stringListValuesHasBeenSet = true; m_stringListValues.push_back(value); return *this; }
93
95
98 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBinaryListValues() const{ return m_binaryListValues; }
99 inline bool BinaryListValuesHasBeenSet() const { return m_binaryListValuesHasBeenSet; }
100 inline void SetBinaryListValues(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = value; }
101 inline void SetBinaryListValues(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues = std::move(value); }
104 inline MessageAttributeValue& AddBinaryListValues(const Aws::Utils::ByteBuffer& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(value); return *this; }
105 inline MessageAttributeValue& AddBinaryListValues(Aws::Utils::ByteBuffer&& value) { m_binaryListValuesHasBeenSet = true; m_binaryListValues.push_back(std::move(value)); return *this; }
107
109
117 inline const Aws::String& GetDataType() const{ return m_dataType; }
118 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
119 inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
120 inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
121 inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
122 inline MessageAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
123 inline MessageAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
124 inline MessageAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;}
126 private:
127
128 Aws::String m_stringValue;
129 bool m_stringValueHasBeenSet = false;
130
131 Aws::Utils::ByteBuffer m_binaryValue;
132 bool m_binaryValueHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_stringListValues;
135 bool m_stringListValuesHasBeenSet = false;
136
137 Aws::Vector<Aws::Utils::ByteBuffer> m_binaryListValues;
138 bool m_binaryListValuesHasBeenSet = false;
139
140 Aws::String m_dataType;
141 bool m_dataTypeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace SQS
146} // namespace Aws
AWS_SQS_API MessageAttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageAttributeValue & AddStringListValues(Aws::String &&value)
void SetBinaryListValues(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
MessageAttributeValue & WithStringListValues(const Aws::Vector< Aws::String > &value)
MessageAttributeValue & AddStringListValues(const Aws::String &value)
MessageAttributeValue & WithDataType(const char *value)
MessageAttributeValue & WithBinaryListValues(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
void SetStringListValues(Aws::Vector< Aws::String > &&value)
MessageAttributeValue & AddStringListValues(const char *value)
MessageAttributeValue & WithDataType(Aws::String &&value)
MessageAttributeValue & WithStringValue(const char *value)
void SetBinaryValue(const Aws::Utils::ByteBuffer &value)
void SetStringListValues(const Aws::Vector< Aws::String > &value)
void SetBinaryListValues(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
void SetStringValue(const Aws::String &value)
MessageAttributeValue & WithBinaryValue(const Aws::Utils::ByteBuffer &value)
MessageAttributeValue & WithStringListValues(Aws::Vector< Aws::String > &&value)
MessageAttributeValue & WithStringValue(const Aws::String &value)
MessageAttributeValue & WithBinaryValue(Aws::Utils::ByteBuffer &&value)
const Aws::Utils::ByteBuffer & GetBinaryValue() const
void SetBinaryValue(Aws::Utils::ByteBuffer &&value)
void SetDataType(const Aws::String &value)
MessageAttributeValue & WithStringValue(Aws::String &&value)
MessageAttributeValue & WithBinaryListValues(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
AWS_SQS_API MessageAttributeValue(Aws::Utils::Json::JsonView jsonValue)
MessageAttributeValue & WithDataType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetStringListValues() const
MessageAttributeValue & AddBinaryListValues(const Aws::Utils::ByteBuffer &value)
AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const
MessageAttributeValue & AddBinaryListValues(Aws::Utils::ByteBuffer &&value)
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