AWS SDK for C++  0.12.9
AWS SDK for C++
SendMessageBatchResultEntry.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SQS
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  SendMessageBatchResultEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline SendMessageBatchResultEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline SendMessageBatchResultEntry& WithId(Aws::String&& value) { SetId(value); return *this;}
77 
81  inline SendMessageBatchResultEntry& WithId(const char* value) { SetId(value); return *this;}
82 
86  inline const Aws::String& GetMessageId() const{ return m_messageId; }
87 
91  inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
92 
96  inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
97 
101  inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
102 
106  inline SendMessageBatchResultEntry& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
107 
111  inline SendMessageBatchResultEntry& WithMessageId(Aws::String&& value) { SetMessageId(value); return *this;}
112 
116  inline SendMessageBatchResultEntry& WithMessageId(const char* value) { SetMessageId(value); return *this;}
117 
125  inline const Aws::String& GetMD5OfMessageBody() const{ return m_mD5OfMessageBody; }
126 
134  inline void SetMD5OfMessageBody(const Aws::String& value) { m_mD5OfMessageBodyHasBeenSet = true; m_mD5OfMessageBody = value; }
135 
143  inline void SetMD5OfMessageBody(Aws::String&& value) { m_mD5OfMessageBodyHasBeenSet = true; m_mD5OfMessageBody = value; }
144 
152  inline void SetMD5OfMessageBody(const char* value) { m_mD5OfMessageBodyHasBeenSet = true; m_mD5OfMessageBody.assign(value); }
153 
161  inline SendMessageBatchResultEntry& WithMD5OfMessageBody(const Aws::String& value) { SetMD5OfMessageBody(value); return *this;}
162 
170  inline SendMessageBatchResultEntry& WithMD5OfMessageBody(Aws::String&& value) { SetMD5OfMessageBody(value); return *this;}
171 
179  inline SendMessageBatchResultEntry& WithMD5OfMessageBody(const char* value) { SetMD5OfMessageBody(value); return *this;}
180 
188  inline const Aws::String& GetMD5OfMessageAttributes() const{ return m_mD5OfMessageAttributes; }
189 
197  inline void SetMD5OfMessageAttributes(const Aws::String& value) { m_mD5OfMessageAttributesHasBeenSet = true; m_mD5OfMessageAttributes = value; }
198 
206  inline void SetMD5OfMessageAttributes(Aws::String&& value) { m_mD5OfMessageAttributesHasBeenSet = true; m_mD5OfMessageAttributes = value; }
207 
215  inline void SetMD5OfMessageAttributes(const char* value) { m_mD5OfMessageAttributesHasBeenSet = true; m_mD5OfMessageAttributes.assign(value); }
216 
224  inline SendMessageBatchResultEntry& WithMD5OfMessageAttributes(const Aws::String& value) { SetMD5OfMessageAttributes(value); return *this;}
225 
233  inline SendMessageBatchResultEntry& WithMD5OfMessageAttributes(Aws::String&& value) { SetMD5OfMessageAttributes(value); return *this;}
234 
242  inline SendMessageBatchResultEntry& WithMD5OfMessageAttributes(const char* value) { SetMD5OfMessageAttributes(value); return *this;}
243 
244  private:
245  Aws::String m_id;
246  bool m_idHasBeenSet;
247  Aws::String m_messageId;
248  bool m_messageIdHasBeenSet;
249  Aws::String m_mD5OfMessageBody;
250  bool m_mD5OfMessageBodyHasBeenSet;
251  Aws::String m_mD5OfMessageAttributes;
252  bool m_mD5OfMessageAttributesHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace SQS
257 } // namespace Aws
void SetId(Aws::String &&value)
void SetId(const Aws::String &value)
void SetMD5OfMessageAttributes(const Aws::String &value)
void SetId(const char *value)
void SetMD5OfMessageBody(Aws::String &&value)
void SetMessageId(const Aws::String &value)
SendMessageBatchResultEntry & WithMessageId(Aws::String &&value)
SendMessageBatchResultEntry & WithMD5OfMessageAttributes(Aws::String &&value)
const Aws::String & GetId() const
void SetMessageId(const char *value)
const Aws::String & GetMessageId() const
void SetMD5OfMessageBody(const char *value)
SendMessageBatchResultEntry & WithId(const Aws::String &value)
SendMessageBatchResultEntry & WithMD5OfMessageAttributes(const char *value)
const Aws::String & GetMD5OfMessageBody() const
SendMessageBatchResultEntry & WithMD5OfMessageBody(const char *value)
SendMessageBatchResultEntry & WithMD5OfMessageAttributes(const Aws::String &value)
SendMessageBatchResultEntry & WithMD5OfMessageBody(const Aws::String &value)
SendMessageBatchResultEntry & WithMessageId(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetMD5OfMessageAttributes() const
SendMessageBatchResultEntry & WithId(const char *value)
SendMessageBatchResultEntry & WithMessageId(const Aws::String &value)
void SetMessageId(Aws::String &&value)
void SetMD5OfMessageAttributes(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SendMessageBatchResultEntry & WithId(Aws::String &&value)
void SetMD5OfMessageBody(const Aws::String &value)
SendMessageBatchResultEntry & WithMD5OfMessageBody(Aws::String &&value)
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:34
void SetMD5OfMessageAttributes(const char *value)
JSON (JavaScript Object Notation).