/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace SQS { namespace Model { /** *

The MD5OfMessageBody and MessageId * elements.

See Also:

AWS * API Reference

*/ class SendMessageResult { public: AWS_SQS_API SendMessageResult(); AWS_SQS_API SendMessageResult(const Aws::AmazonWebServiceResult& result); AWS_SQS_API SendMessageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline const Aws::String& GetMD5OfMessageBody() const{ return m_mD5OfMessageBody; } /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline void SetMD5OfMessageBody(const Aws::String& value) { m_mD5OfMessageBody = value; } /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline void SetMD5OfMessageBody(Aws::String&& value) { m_mD5OfMessageBody = std::move(value); } /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline void SetMD5OfMessageBody(const char* value) { m_mD5OfMessageBody.assign(value); } /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline SendMessageResult& WithMD5OfMessageBody(const Aws::String& value) { SetMD5OfMessageBody(value); return *this;} /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline SendMessageResult& WithMD5OfMessageBody(Aws::String&& value) { SetMD5OfMessageBody(std::move(value)); return *this;} /** *

An MD5 digest of the non-URL-encoded message body string. You can use this * attribute to verify that Amazon SQS received the message correctly. Amazon SQS * URL-decodes the message before creating the MD5 digest. For information about * MD5, see RFC1321.

*/ inline SendMessageResult& WithMD5OfMessageBody(const char* value) { SetMD5OfMessageBody(value); return *this;} /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline const Aws::String& GetMD5OfMessageAttributes() const{ return m_mD5OfMessageAttributes; } /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline void SetMD5OfMessageAttributes(const Aws::String& value) { m_mD5OfMessageAttributes = value; } /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline void SetMD5OfMessageAttributes(Aws::String&& value) { m_mD5OfMessageAttributes = std::move(value); } /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline void SetMD5OfMessageAttributes(const char* value) { m_mD5OfMessageAttributes.assign(value); } /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline SendMessageResult& WithMD5OfMessageAttributes(const Aws::String& value) { SetMD5OfMessageAttributes(value); return *this;} /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline SendMessageResult& WithMD5OfMessageAttributes(Aws::String&& value) { SetMD5OfMessageAttributes(std::move(value)); return *this;} /** *

An MD5 digest of the non-URL-encoded message attribute string. You can use * this attribute to verify that Amazon SQS received the message correctly. Amazon * SQS URL-decodes the message before creating the MD5 digest. For information * about MD5, see RFC1321.

*/ inline SendMessageResult& WithMD5OfMessageAttributes(const char* value) { SetMD5OfMessageAttributes(value); return *this;} /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline const Aws::String& GetMD5OfMessageSystemAttributes() const{ return m_mD5OfMessageSystemAttributes; } /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline void SetMD5OfMessageSystemAttributes(const Aws::String& value) { m_mD5OfMessageSystemAttributes = value; } /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline void SetMD5OfMessageSystemAttributes(Aws::String&& value) { m_mD5OfMessageSystemAttributes = std::move(value); } /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline void SetMD5OfMessageSystemAttributes(const char* value) { m_mD5OfMessageSystemAttributes.assign(value); } /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline SendMessageResult& WithMD5OfMessageSystemAttributes(const Aws::String& value) { SetMD5OfMessageSystemAttributes(value); return *this;} /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline SendMessageResult& WithMD5OfMessageSystemAttributes(Aws::String&& value) { SetMD5OfMessageSystemAttributes(std::move(value)); return *this;} /** *

An MD5 digest of the non-URL-encoded message system attribute string. You can * use this attribute to verify that Amazon SQS received the message correctly. * Amazon SQS URL-decodes the message before creating the MD5 digest.

*/ inline SendMessageResult& WithMD5OfMessageSystemAttributes(const char* value) { SetMD5OfMessageSystemAttributes(value); return *this;} /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline void SetMessageId(const Aws::String& value) { m_messageId = value; } /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline void SetMessageId(Aws::String&& value) { m_messageId = std::move(value); } /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline void SetMessageId(const char* value) { m_messageId.assign(value); } /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline SendMessageResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline SendMessageResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *

An attribute containing the MessageId of the message sent to the * queue. For more information, see Queue * and Message Identifiers in the Amazon SQS Developer Guide.

*/ inline SendMessageResult& WithMessageId(const char* value) { SetMessageId(value); return *this;} /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; } /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumber = value; } /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumber = std::move(value); } /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline void SetSequenceNumber(const char* value) { m_sequenceNumber.assign(value); } /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline SendMessageResult& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;} /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline SendMessageResult& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;} /** *

This parameter applies only to FIFO (first-in-first-out) queues.

The * large, non-consecutive number that Amazon SQS assigns to each message.

*

The length of SequenceNumber is 128 bits. * SequenceNumber continues to increase for a particular * MessageGroupId.

*/ inline SendMessageResult& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline SendMessageResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline SendMessageResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_mD5OfMessageBody; Aws::String m_mD5OfMessageAttributes; Aws::String m_mD5OfMessageSystemAttributes; Aws::String m_messageId; Aws::String m_sequenceNumber; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace SQS } // namespace Aws