AWS SDK for C++  0.12.9
AWS SDK for C++
SendMessageBatchRequestEntry.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sqs/SQS_EXPORTS.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace SQS
32 {
33 namespace Model
34 {
35 
41  {
42  public:
45  SendMessageBatchRequestEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
55  inline const Aws::String& GetId() const{ return m_id; }
56 
62  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
69  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
70 
76  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
77 
83  inline SendMessageBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
84 
90  inline SendMessageBatchRequestEntry& WithId(Aws::String&& value) { SetId(value); return *this;}
91 
97  inline SendMessageBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;}
98 
102  inline const Aws::String& GetMessageBody() const{ return m_messageBody; }
103 
107  inline void SetMessageBody(const Aws::String& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; }
108 
112  inline void SetMessageBody(Aws::String&& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; }
113 
117  inline void SetMessageBody(const char* value) { m_messageBodyHasBeenSet = true; m_messageBody.assign(value); }
118 
122  inline SendMessageBatchRequestEntry& WithMessageBody(const Aws::String& value) { SetMessageBody(value); return *this;}
123 
127  inline SendMessageBatchRequestEntry& WithMessageBody(Aws::String&& value) { SetMessageBody(value); return *this;}
128 
132  inline SendMessageBatchRequestEntry& WithMessageBody(const char* value) { SetMessageBody(value); return *this;}
133 
137  inline long GetDelaySeconds() const{ return m_delaySeconds; }
138 
142  inline void SetDelaySeconds(long value) { m_delaySecondsHasBeenSet = true; m_delaySeconds = value; }
143 
147  inline SendMessageBatchRequestEntry& WithDelaySeconds(long value) { SetDelaySeconds(value); return *this;}
148 
155  inline const Aws::Map<Aws::String, MessageAttributeValue>& GetMessageAttributes() const{ return m_messageAttributes; }
156 
163  inline void SetMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
164 
171  inline void SetMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes = value; }
172 
179  inline SendMessageBatchRequestEntry& WithMessageAttributes(const Aws::Map<Aws::String, MessageAttributeValue>& value) { SetMessageAttributes(value); return *this;}
180 
187  inline SendMessageBatchRequestEntry& WithMessageAttributes(Aws::Map<Aws::String, MessageAttributeValue>&& value) { SetMessageAttributes(value); return *this;}
188 
195  inline SendMessageBatchRequestEntry& AddMessageAttributes(const Aws::String& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes[key] = value; return *this; }
196 
203  inline SendMessageBatchRequestEntry& AddMessageAttributes(Aws::String&& key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes[key] = value; return *this; }
204 
211  inline SendMessageBatchRequestEntry& AddMessageAttributes(const Aws::String& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes[key] = value; return *this; }
212 
219  inline SendMessageBatchRequestEntry& AddMessageAttributes(Aws::String&& key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes[key] = value; return *this; }
220 
227  inline SendMessageBatchRequestEntry& AddMessageAttributes(const char* key, MessageAttributeValue&& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes[key] = value; return *this; }
228 
235  inline SendMessageBatchRequestEntry& AddMessageAttributes(const char* key, const MessageAttributeValue& value) { m_messageAttributesHasBeenSet = true; m_messageAttributes[key] = value; return *this; }
236 
237  private:
238  Aws::String m_id;
239  bool m_idHasBeenSet;
240  Aws::String m_messageBody;
241  bool m_messageBodyHasBeenSet;
242  long m_delaySeconds;
243  bool m_delaySecondsHasBeenSet;
245  bool m_messageAttributesHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace SQS
250 } // namespace Aws
SendMessageBatchRequestEntry & AddMessageAttributes(const Aws::String &key, const MessageAttributeValue &value)
SendMessageBatchRequestEntry & AddMessageAttributes(const Aws::String &key, MessageAttributeValue &&value)
SendMessageBatchRequestEntry & WithId(Aws::String &&value)
SendMessageBatchRequestEntry & WithDelaySeconds(long value)
SendMessageBatchRequestEntry & AddMessageAttributes(Aws::String &&key, MessageAttributeValue &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
void SetId(Aws::String &&value)
SendMessageBatchRequestEntry & AddMessageAttributes(Aws::String &&key, const MessageAttributeValue &value)
SendMessageBatchRequestEntry & WithMessageBody(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
long GetDelaySeconds() const
SendMessageBatchRequestEntry & WithMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
SendMessageBatchRequestEntry & WithId(const Aws::String &value)
void SetDelaySeconds(long value)
SendMessageBatchRequestEntry & WithId(const char *value)
void SetMessageBody(Aws::String &&value)
void SetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetId() const
void SetMessageAttributes(const Aws::Map< Aws::String, MessageAttributeValue > &value)
void SetMessageBody(const Aws::String &value)
void SetId(const char *value)
SendMessageBatchRequestEntry & WithMessageAttributes(Aws::Map< Aws::String, MessageAttributeValue > &&value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
SendMessageBatchRequestEntry & AddMessageAttributes(const char *key, const MessageAttributeValue &value)
SendMessageBatchRequestEntry & WithMessageBody(Aws::String &&value)
const Aws::String & GetMessageBody() const
SendMessageBatchRequestEntry & AddMessageAttributes(const char *key, MessageAttributeValue &&value)
void SetMessageBody(const char *value)
SendMessageBatchRequestEntry & WithMessageBody(const Aws::String &value)
const Aws::Map< Aws::String, MessageAttributeValue > & GetMessageAttributes() const
JSON (JavaScript Object Notation).