AWS SDK for C++  1.8.126
AWS SDK for C++
ChangeMessageVisibilityBatchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sqs/SQS_EXPORTS.h>
8 #include <aws/sqs/SQSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SQS
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ChangeMessageVisibilityBatch"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
49 
54  inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
55 
60  inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
61 
66  inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
67 
72  inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
73 
78  inline ChangeMessageVisibilityBatchRequest& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
79 
84  inline ChangeMessageVisibilityBatchRequest& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
85 
90  inline ChangeMessageVisibilityBatchRequest& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
91 
92 
97  inline const Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>& GetEntries() const{ return m_entries; }
98 
103  inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; }
104 
109  inline void SetEntries(const Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>& value) { m_entriesHasBeenSet = true; m_entries = value; }
110 
115  inline void SetEntries(Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); }
116 
122 
127  inline ChangeMessageVisibilityBatchRequest& WithEntries(Aws::Vector<ChangeMessageVisibilityBatchRequestEntry>&& value) { SetEntries(std::move(value)); return *this;}
128 
133  inline ChangeMessageVisibilityBatchRequest& AddEntries(const ChangeMessageVisibilityBatchRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; }
134 
139  inline ChangeMessageVisibilityBatchRequest& AddEntries(ChangeMessageVisibilityBatchRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; }
140 
141  private:
142 
143  Aws::String m_queueUrl;
144  bool m_queueUrlHasBeenSet;
145 
147  bool m_entriesHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace SQS
152 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ChangeMessageVisibilityBatchRequest.h:35
Aws::SQS::Model::ChangeMessageVisibilityBatchRequestEntry
Definition: ChangeMessageVisibilityBatchRequestEntry.h:43
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::GetQueueUrl
const Aws::String & GetQueueUrl() const
Definition: ChangeMessageVisibilityBatchRequest.h:48
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::EntriesHasBeenSet
bool EntriesHasBeenSet() const
Definition: ChangeMessageVisibilityBatchRequest.h:103
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::WithQueueUrl
ChangeMessageVisibilityBatchRequest & WithQueueUrl(Aws::String &&value)
Definition: ChangeMessageVisibilityBatchRequest.h:84
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::QueueUrlHasBeenSet
bool QueueUrlHasBeenSet() const
Definition: ChangeMessageVisibilityBatchRequest.h:54
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest
Definition: ChangeMessageVisibilityBatchRequest.h:27
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::WithQueueUrl
ChangeMessageVisibilityBatchRequest & WithQueueUrl(const char *value)
Definition: ChangeMessageVisibilityBatchRequest.h:90
AWSVector.h
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::WithEntries
ChangeMessageVisibilityBatchRequest & WithEntries(Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &&value)
Definition: ChangeMessageVisibilityBatchRequest.h:127
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::SetQueueUrl
void SetQueueUrl(const char *value)
Definition: ChangeMessageVisibilityBatchRequest.h:72
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::AddEntries
ChangeMessageVisibilityBatchRequest & AddEntries(ChangeMessageVisibilityBatchRequestEntry &&value)
Definition: ChangeMessageVisibilityBatchRequest.h:139
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::SetEntries
void SetEntries(Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &&value)
Definition: ChangeMessageVisibilityBatchRequest.h:115
ChangeMessageVisibilityBatchRequestEntry.h
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::GetEntries
const Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > & GetEntries() const
Definition: ChangeMessageVisibilityBatchRequest.h:97
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::ChangeMessageVisibilityBatchRequest
ChangeMessageVisibilityBatchRequest()
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::WithQueueUrl
ChangeMessageVisibilityBatchRequest & WithQueueUrl(const Aws::String &value)
Definition: ChangeMessageVisibilityBatchRequest.h:78
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
SQS_EXPORTS.h
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::SetQueueUrl
void SetQueueUrl(Aws::String &&value)
Definition: ChangeMessageVisibilityBatchRequest.h:66
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::SetEntries
void SetEntries(const Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &value)
Definition: ChangeMessageVisibilityBatchRequest.h:109
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::AddEntries
ChangeMessageVisibilityBatchRequest & AddEntries(const ChangeMessageVisibilityBatchRequestEntry &value)
Definition: ChangeMessageVisibilityBatchRequest.h:133
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::WithEntries
ChangeMessageVisibilityBatchRequest & WithEntries(const Aws::Vector< ChangeMessageVisibilityBatchRequestEntry > &value)
Definition: ChangeMessageVisibilityBatchRequest.h:121
SQSRequest.h
Aws::SQS::Model::ChangeMessageVisibilityBatchRequest::SetQueueUrl
void SetQueueUrl(const Aws::String &value)
Definition: ChangeMessageVisibilityBatchRequest.h:60