AWS SDK for C++  1.8.126
AWS SDK for C++
DeleteMessageBatchRequestEntry.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SQS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
50  inline const Aws::String& GetId() const{ return m_id; }
51 
59  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 
68  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
69 
77  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
78 
86  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
87 
95  inline DeleteMessageBatchRequestEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
96 
104  inline DeleteMessageBatchRequestEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
105 
113  inline DeleteMessageBatchRequestEntry& WithId(const char* value) { SetId(value); return *this;}
114 
115 
119  inline const Aws::String& GetReceiptHandle() const{ return m_receiptHandle; }
120 
124  inline bool ReceiptHandleHasBeenSet() const { return m_receiptHandleHasBeenSet; }
125 
129  inline void SetReceiptHandle(const Aws::String& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = value; }
130 
134  inline void SetReceiptHandle(Aws::String&& value) { m_receiptHandleHasBeenSet = true; m_receiptHandle = std::move(value); }
135 
139  inline void SetReceiptHandle(const char* value) { m_receiptHandleHasBeenSet = true; m_receiptHandle.assign(value); }
140 
144  inline DeleteMessageBatchRequestEntry& WithReceiptHandle(const Aws::String& value) { SetReceiptHandle(value); return *this;}
145 
149  inline DeleteMessageBatchRequestEntry& WithReceiptHandle(Aws::String&& value) { SetReceiptHandle(std::move(value)); return *this;}
150 
154  inline DeleteMessageBatchRequestEntry& WithReceiptHandle(const char* value) { SetReceiptHandle(value); return *this;}
155 
156  private:
157 
158  Aws::String m_id;
159  bool m_idHasBeenSet;
160 
161  Aws::String m_receiptHandle;
162  bool m_receiptHandleHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace SQS
167 } // namespace Aws
Aws::SQS::Model::DeleteMessageBatchRequestEntry::WithId
DeleteMessageBatchRequestEntry & WithId(const Aws::String &value)
Definition: DeleteMessageBatchRequestEntry.h:95
Aws::SQS::Model::DeleteMessageBatchRequestEntry::operator=
DeleteMessageBatchRequestEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::DeleteMessageBatchRequestEntry::WithReceiptHandle
DeleteMessageBatchRequestEntry & WithReceiptHandle(const Aws::String &value)
Definition: DeleteMessageBatchRequestEntry.h:144
Aws::SQS::Model::DeleteMessageBatchRequestEntry::SetReceiptHandle
void SetReceiptHandle(const Aws::String &value)
Definition: DeleteMessageBatchRequestEntry.h:129
Aws::SQS::Model::DeleteMessageBatchRequestEntry::SetId
void SetId(Aws::String &&value)
Definition: DeleteMessageBatchRequestEntry.h:77
AWSStreamFwd.h
Aws::SQS::Model::DeleteMessageBatchRequestEntry::SetId
void SetId(const Aws::String &value)
Definition: DeleteMessageBatchRequestEntry.h:68
Aws::SQS::Model::DeleteMessageBatchRequestEntry::ReceiptHandleHasBeenSet
bool ReceiptHandleHasBeenSet() const
Definition: DeleteMessageBatchRequestEntry.h:124
Aws::SQS::Model::DeleteMessageBatchRequestEntry::SetId
void SetId(const char *value)
Definition: DeleteMessageBatchRequestEntry.h:86
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SQS::Model::DeleteMessageBatchRequestEntry::WithId
DeleteMessageBatchRequestEntry & WithId(const char *value)
Definition: DeleteMessageBatchRequestEntry.h:113
Aws::SQS::Model::DeleteMessageBatchRequestEntry
Definition: DeleteMessageBatchRequestEntry.h:33
Aws::SQS::Model::DeleteMessageBatchRequestEntry::SetReceiptHandle
void SetReceiptHandle(Aws::String &&value)
Definition: DeleteMessageBatchRequestEntry.h:134
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
Aws::SQS::Model::DeleteMessageBatchRequestEntry::SetReceiptHandle
void SetReceiptHandle(const char *value)
Definition: DeleteMessageBatchRequestEntry.h:139
AWSString.h
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::DeleteMessageBatchRequestEntry::DeleteMessageBatchRequestEntry
DeleteMessageBatchRequestEntry()
Aws::SQS::Model::DeleteMessageBatchRequestEntry::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SQS::Model::DeleteMessageBatchRequestEntry::GetId
const Aws::String & GetId() const
Definition: DeleteMessageBatchRequestEntry.h:50
SQS_EXPORTS.h
Aws::SQS::Model::DeleteMessageBatchRequestEntry::WithReceiptHandle
DeleteMessageBatchRequestEntry & WithReceiptHandle(Aws::String &&value)
Definition: DeleteMessageBatchRequestEntry.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::DeleteMessageBatchRequestEntry::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::SQS::Model::DeleteMessageBatchRequestEntry::DeleteMessageBatchRequestEntry
DeleteMessageBatchRequestEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SQS::Model::DeleteMessageBatchRequestEntry::GetReceiptHandle
const Aws::String & GetReceiptHandle() const
Definition: DeleteMessageBatchRequestEntry.h:119
Aws::SQS::Model::DeleteMessageBatchRequestEntry::WithReceiptHandle
DeleteMessageBatchRequestEntry & WithReceiptHandle(const char *value)
Definition: DeleteMessageBatchRequestEntry.h:154
Aws::SQS::Model::DeleteMessageBatchRequestEntry::WithId
DeleteMessageBatchRequestEntry & WithId(Aws::String &&value)
Definition: DeleteMessageBatchRequestEntry.h:104
Aws::SQS::Model::DeleteMessageBatchRequestEntry::IdHasBeenSet
bool IdHasBeenSet() const
Definition: DeleteMessageBatchRequestEntry.h:59