/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The user-specified message system attribute value. For string data types, the
* Value attribute has the same restrictions on the content as the
* message body. For more information, see SendMessage. Name, type, value and the message
* body must not be empty or null.See Also:
AWS
* API Reference
Strings are Unicode with UTF-8 binary encoding. For a list of code values, * see ASCII * Printable Characters.
*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } inline MessageSystemAttributeValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} inline MessageSystemAttributeValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} inline MessageSystemAttributeValue& WithStringValue(const char* value) { SetStringValue(value); return *this;} ///@} ///@{ /** *Binary type attributes can store any binary data, such as compressed data, * encrypted data, or images.
*/ inline const Aws::Utils::ByteBuffer& GetBinaryValue() const{ return m_binaryValue; } inline bool BinaryValueHasBeenSet() const { return m_binaryValueHasBeenSet; } inline void SetBinaryValue(const Aws::Utils::ByteBuffer& value) { m_binaryValueHasBeenSet = true; m_binaryValue = value; } inline void SetBinaryValue(Aws::Utils::ByteBuffer&& value) { m_binaryValueHasBeenSet = true; m_binaryValue = std::move(value); } inline MessageSystemAttributeValue& WithBinaryValue(const Aws::Utils::ByteBuffer& value) { SetBinaryValue(value); return *this;} inline MessageSystemAttributeValue& WithBinaryValue(Aws::Utils::ByteBuffer&& value) { SetBinaryValue(std::move(value)); return *this;} ///@} ///@{ /** *Not implemented. Reserved for future use.
*/ inline const Aws::VectorNot implemented. Reserved for future use.
*/ inline const Aws::VectorAmazon SQS supports the following logical data types: String,
* Number, and Binary. For the Number data
* type, you must use StringValue.
You can also append custom * labels. For more information, see Amazon * SQS Message Attributes in the Amazon SQS Developer Guide.
*/ inline const Aws::String& GetDataType() const{ return m_dataType; } inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; } inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; } inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); } inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); } inline MessageSystemAttributeValue& WithDataType(const Aws::String& value) { SetDataType(value); return *this;} inline MessageSystemAttributeValue& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;} inline MessageSystemAttributeValue& WithDataType(const char* value) { SetDataType(value); return *this;} ///@} private: Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; Aws::Utils::ByteBuffer m_binaryValue; bool m_binaryValueHasBeenSet = false; Aws::Vector