Download include/aws/sqs/model/SendMessageBatchRequestEntry.h from Shenghong/dai_env: direct link, hf CLI and curl.
- Browser
- Download file 17.5 kB
-
https://huggingface.co/Shenghong/dai_env/resolve/main/include/aws/sqs/model/SendMessageBatchRequestEntry.h
- Command line
-
hf download hf://Shenghong/dai_env/include/aws/sqs/model/SendMessageBatchRequestEntry.h
-
curl -L -o SendMessageBatchRequestEntry.h https://huggingface.co/Shenghong/dai_env/resolve/main/include/aws/sqs/model/SendMessageBatchRequestEntry.h
17.5 kB
| /** | |
| * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| * SPDX-License-Identifier: Apache-2.0. | |
| */ | |
| namespace Aws | |
| { | |
| namespace Utils | |
| { | |
| namespace Json | |
| { | |
| class JsonValue; | |
| class JsonView; | |
| } // namespace Json | |
| } // namespace Utils | |
| namespace SQS | |
| { | |
| namespace Model | |
| { | |
| /** | |
| * <p>Contains the details of a single Amazon SQS message along with an | |
| * <code>Id</code>.</p><p><h3>See Also:</h3> <a | |
| * href="http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SendMessageBatchRequestEntry">AWS | |
| * API Reference</a></p> | |
| */ | |
| class SendMessageBatchRequestEntry | |
| { | |
| public: | |
| AWS_SQS_API SendMessageBatchRequestEntry(); | |
| AWS_SQS_API SendMessageBatchRequestEntry(Aws::Utils::Json::JsonView jsonValue); | |
| AWS_SQS_API SendMessageBatchRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue); | |
| AWS_SQS_API Aws::Utils::Json::JsonValue Jsonize() const; | |
| ///@{ | |
| /** | |
| * <p>An identifier for a message in this batch used to communicate the result.</p> | |
| * <p>The <code>Id</code>s of a batch request need to be unique within a | |
| * request.</p> <p>This identifier can have up to 80 characters. The following | |
| * characters are accepted: alphanumeric characters, hyphens(-), and underscores | |
| * (_).</p> | |
| */ | |
| inline const Aws::String& GetId() const{ return m_id; } | |
| inline bool IdHasBeenSet() const { return m_idHasBeenSet; } | |
| inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } | |
| inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } | |
| inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } | |
| inline SendMessageBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;} | |
| inline SendMessageBatchRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} | |
| inline SendMessageBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;} | |
| ///@} | |
| ///@{ | |
| /** | |
| * <p>The body of the message.</p> | |
| */ | |
| inline const Aws::String& GetMessageBody() const{ return m_messageBody; } | |
| inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; } | |
| inline void SetMessageBody(const Aws::String& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; } | |
| inline void SetMessageBody(Aws::String&& value) { m_messageBodyHasBeenSet = true; m_messageBody = std::move(value); } | |
| inline void SetMessageBody(const char* value) { m_messageBodyHasBeenSet = true; m_messageBody.assign(value); } | |
| inline SendMessageBatchRequestEntry& WithMessageBody(const Aws::String& value) { SetMessageBody(value); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageBody(Aws::String&& value) { SetMessageBody(std::move(value)); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageBody(const char* value) { SetMessageBody(value); return *this;} | |
| ///@} | |
| ///@{ | |
| /** | |
| * <p>The length of time, in seconds, for which a specific message is delayed. | |
| * Valid values: 0 to 900. Maximum: 15 minutes. Messages with a positive | |
| * <code>DelaySeconds</code> value become available for processing after the delay | |
| * period is finished. If you don't specify a value, the default value for the | |
| * queue is applied. </p> <p>When you set <code>FifoQueue</code>, you can't | |
| * set <code>DelaySeconds</code> per message. You can set this parameter only on a | |
| * queue level.</p> | |
| */ | |
| inline int GetDelaySeconds() const{ return m_delaySeconds; } | |
| inline bool DelaySecondsHasBeenSet() const { return m_delaySecondsHasBeenSet; } | |
| inline void SetDelaySeconds(int value) { m_delaySecondsHasBeenSet = true; m_delaySeconds = value; } | |
| inline SendMessageBatchRequestEntry& WithDelaySeconds(int value) { SetDelaySeconds(value); return *this;} | |
| ///@} | |
| ///@{ | |
| /** | |
| * <p>Each message attribute consists of a <code>Name</code>, <code>Type</code>, | |
| * and <code>Value</code>. For more information, see <a | |
| * href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html#sqs-message-attributes">Amazon | |
| * SQS message attributes</a> in the <i>Amazon SQS Developer Guide</i>.</p> | |
| */ | |
| inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; } | |
| inline bool MessageAttributesHasBeenSet() const { return m_messageAttributesHasBeenSet; } | |
| inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; } | |
| inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = std::move(value); } | |
| inline SendMessageBatchRequestEntry& WithMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { SetMessageAttributes(value); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { SetMessageAttributes(std::move(value)); return *this;} | |
| inline SendMessageBatchRequestEntry& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), value); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(std::move(key), std::move(value)); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, std::move(value)); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes.emplace(key, value); return *this; } | |
| ///@} | |
| ///@{ | |
| /** | |
| * <p>The message system attribute to send Each message system attribute consists | |
| * of a <code>Name</code>, <code>Type</code>, and <code>Value</code>.</p> | |
| * <ul> <li> <p>Currently, the only supported message system attribute | |
| * is <code>AWSTraceHeader</code>. Its type must be <code>String</code> and its | |
| * value must be a correctly formatted X-Ray trace header string.</p> </li> <li> | |
| * <p>The size of a message system attribute doesn't count towards the total size | |
| * of a message.</p> </li> </ul> | |
| */ | |
| inline const Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>& GetMessageSystemAttributes() const{ return m_messageSystemAttributes; } | |
| inline bool MessageSystemAttributesHasBeenSet() const { return m_messageSystemAttributesHasBeenSet; } | |
| inline void SetMessageSystemAttributes(const Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = value; } | |
| inline void SetMessageSystemAttributes(Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes = std::move(value); } | |
| inline SendMessageBatchRequestEntry& WithMessageSystemAttributes(const Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>& value) { SetMessageSystemAttributes(value); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageSystemAttributes(Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>&& value) { SetMessageSystemAttributes(std::move(value)); return *this;} | |
| inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(const MessageSystemAttributeNameForSends& key, const MessageSystemAttributeValue& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, value); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(MessageSystemAttributeNameForSends&& key, const MessageSystemAttributeValue& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(std::move(key), value); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(const MessageSystemAttributeNameForSends& key, MessageSystemAttributeValue&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(key, std::move(value)); return *this; } | |
| inline SendMessageBatchRequestEntry& AddMessageSystemAttributes(MessageSystemAttributeNameForSends&& key, MessageSystemAttributeValue&& value) { m_messageSystemAttributesHasBeenSet = true; m_messageSystemAttributes.emplace(std::move(key), std::move(value)); return *this; } | |
| ///@} | |
| ///@{ | |
| /** | |
| * <p>This parameter applies only to FIFO (first-in-first-out) queues.</p> <p>The | |
| * token used for deduplication of messages within a 5-minute minimum deduplication | |
| * interval. If a message with a particular <code>MessageDeduplicationId</code> is | |
| * sent successfully, subsequent messages with the same | |
| * <code>MessageDeduplicationId</code> are accepted successfully but aren't | |
| * delivered. For more information, see <a | |
| * href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-exactly-once-processing.html"> | |
| * Exactly-once processing</a> in the <i>Amazon SQS Developer Guide</i>.</p> <ul> | |
| * <li> <p>Every message must have a unique | |
| * <code>MessageDeduplicationId</code>,</p> <ul> <li> <p>You may provide a | |
| * <code>MessageDeduplicationId</code> explicitly.</p> </li> <li> <p>If you aren't | |
| * able to provide a <code>MessageDeduplicationId</code> and you enable | |
| * <code>ContentBasedDeduplication</code> for your queue, Amazon SQS uses a SHA-256 | |
| * hash to generate the <code>MessageDeduplicationId</code> using the body of the | |
| * message (but not the attributes of the message). </p> </li> <li> <p>If you don't | |
| * provide a <code>MessageDeduplicationId</code> and the queue doesn't have | |
| * <code>ContentBasedDeduplication</code> set, the action fails with an error.</p> | |
| * </li> <li> <p>If the queue has <code>ContentBasedDeduplication</code> set, your | |
| * <code>MessageDeduplicationId</code> overrides the generated one.</p> </li> </ul> | |
| * </li> <li> <p>When <code>ContentBasedDeduplication</code> is in effect, messages | |
| * with identical content sent within the deduplication interval are treated as | |
| * duplicates and only one copy of the message is delivered.</p> </li> <li> <p>If | |
| * you send one message with <code>ContentBasedDeduplication</code> enabled and | |
| * then another message with a <code>MessageDeduplicationId</code> that is the same | |
| * as the one generated for the first <code>MessageDeduplicationId</code>, the two | |
| * messages are treated as duplicates and only one copy of the message is | |
| * delivered. </p> </li> </ul> <p>The <code>MessageDeduplicationId</code> is | |
| * available to the consumer of the message (this can be useful for troubleshooting | |
| * delivery issues).</p> <p>If a message is sent successfully but the | |
| * acknowledgement is lost and the message is resent with the same | |
| * <code>MessageDeduplicationId</code> after the deduplication interval, Amazon SQS | |
| * can't detect duplicate messages.</p> <p>Amazon SQS continues to keep track of | |
| * the message deduplication ID even after the message is received and deleted.</p> | |
| * <p>The length of <code>MessageDeduplicationId</code> is 128 characters. | |
| * <code>MessageDeduplicationId</code> can contain alphanumeric characters | |
| * (<code>a-z</code>, <code>A-Z</code>, <code>0-9</code>) and punctuation | |
| * (<code>!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~</code>).</p> <p>For best | |
| * practices of using <code>MessageDeduplicationId</code>, see <a | |
| * href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html">Using | |
| * the MessageDeduplicationId Property</a> in the <i>Amazon SQS Developer | |
| * Guide</i>.</p> | |
| */ | |
| inline const Aws::String& GetMessageDeduplicationId() const{ return m_messageDeduplicationId; } | |
| inline bool MessageDeduplicationIdHasBeenSet() const { return m_messageDeduplicationIdHasBeenSet; } | |
| inline void SetMessageDeduplicationId(const Aws::String& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = value; } | |
| inline void SetMessageDeduplicationId(Aws::String&& value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId = std::move(value); } | |
| inline void SetMessageDeduplicationId(const char* value) { m_messageDeduplicationIdHasBeenSet = true; m_messageDeduplicationId.assign(value); } | |
| inline SendMessageBatchRequestEntry& WithMessageDeduplicationId(const Aws::String& value) { SetMessageDeduplicationId(value); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageDeduplicationId(Aws::String&& value) { SetMessageDeduplicationId(std::move(value)); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageDeduplicationId(const char* value) { SetMessageDeduplicationId(value); return *this;} | |
| ///@} | |
| ///@{ | |
| /** | |
| * <p>This parameter applies only to FIFO (first-in-first-out) queues.</p> <p>The | |
| * tag that specifies that a message belongs to a specific message group. Messages | |
| * that belong to the same message group are processed in a FIFO manner (however, | |
| * messages in different message groups might be processed out of order). To | |
| * interleave multiple ordered streams within a single queue, use | |
| * <code>MessageGroupId</code> values (for example, session data for multiple | |
| * users). In this scenario, multiple consumers can process the queue, but the | |
| * session data of each user is processed in a FIFO fashion.</p> <ul> <li> <p>You | |
| * must associate a non-empty <code>MessageGroupId</code> with a message. If you | |
| * don't provide a <code>MessageGroupId</code>, the action fails.</p> </li> <li> | |
| * <p> <code>ReceiveMessage</code> might return messages with multiple | |
| * <code>MessageGroupId</code> values. For each <code>MessageGroupId</code>, the | |
| * messages are sorted by time sent. The caller can't specify a | |
| * <code>MessageGroupId</code>.</p> </li> </ul> <p>The length of | |
| * <code>MessageGroupId</code> is 128 characters. Valid values: alphanumeric | |
| * characters and punctuation | |
| * <code>(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)</code>.</p> <p>For best | |
| * practices of using <code>MessageGroupId</code>, see <a | |
| * href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html">Using | |
| * the MessageGroupId Property</a> in the <i>Amazon SQS Developer Guide</i>.</p> | |
| * <p> <code>MessageGroupId</code> is required for FIFO queues. You | |
| * can't use it for Standard queues.</p> | |
| */ | |
| inline const Aws::String& GetMessageGroupId() const{ return m_messageGroupId; } | |
| inline bool MessageGroupIdHasBeenSet() const { return m_messageGroupIdHasBeenSet; } | |
| inline void SetMessageGroupId(const Aws::String& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = value; } | |
| inline void SetMessageGroupId(Aws::String&& value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId = std::move(value); } | |
| inline void SetMessageGroupId(const char* value) { m_messageGroupIdHasBeenSet = true; m_messageGroupId.assign(value); } | |
| inline SendMessageBatchRequestEntry& WithMessageGroupId(const Aws::String& value) { SetMessageGroupId(value); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageGroupId(Aws::String&& value) { SetMessageGroupId(std::move(value)); return *this;} | |
| inline SendMessageBatchRequestEntry& WithMessageGroupId(const char* value) { SetMessageGroupId(value); return *this;} | |
| ///@} | |
| private: | |
| Aws::String m_id; | |
| bool m_idHasBeenSet = false; | |
| Aws::String m_messageBody; | |
| bool m_messageBodyHasBeenSet = false; | |
| int m_delaySeconds; | |
| bool m_delaySecondsHasBeenSet = false; | |
| Aws::Map<Aws::String, MessageAttributeValue> m_messageAttributes; | |
| bool m_messageAttributesHasBeenSet = false; | |
| Aws::Map<MessageSystemAttributeNameForSends, MessageSystemAttributeValue> m_messageSystemAttributes; | |
| bool m_messageSystemAttributesHasBeenSet = false; | |
| Aws::String m_messageDeduplicationId; | |
| bool m_messageDeduplicationIdHasBeenSet = false; | |
| Aws::String m_messageGroupId; | |
| bool m_messageGroupIdHasBeenSet = false; | |
| }; | |
| } // namespace Model | |
| } // namespace SQS | |
| } // namespace Aws | |