AWS SDK for C++  1.9.1
AWS SDK for C++
ListQueuesRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SQS
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "ListQueues"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
47  inline const Aws::String& GetQueueNamePrefix() const{ return m_queueNamePrefix; }
48 
54  inline bool QueueNamePrefixHasBeenSet() const { return m_queueNamePrefixHasBeenSet; }
55 
61  inline void SetQueueNamePrefix(const Aws::String& value) { m_queueNamePrefixHasBeenSet = true; m_queueNamePrefix = value; }
62 
68  inline void SetQueueNamePrefix(Aws::String&& value) { m_queueNamePrefixHasBeenSet = true; m_queueNamePrefix = std::move(value); }
69 
75  inline void SetQueueNamePrefix(const char* value) { m_queueNamePrefixHasBeenSet = true; m_queueNamePrefix.assign(value); }
76 
82  inline ListQueuesRequest& WithQueueNamePrefix(const Aws::String& value) { SetQueueNamePrefix(value); return *this;}
83 
89  inline ListQueuesRequest& WithQueueNamePrefix(Aws::String&& value) { SetQueueNamePrefix(std::move(value)); return *this;}
90 
96  inline ListQueuesRequest& WithQueueNamePrefix(const char* value) { SetQueueNamePrefix(value); return *this;}
97 
98 
102  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
103 
107  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 
112  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
113 
117  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
118 
122  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
123 
127  inline ListQueuesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
128 
132  inline ListQueuesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
133 
137  inline ListQueuesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
138 
139 
145  inline int GetMaxResults() const{ return m_maxResults; }
146 
152  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
153 
159  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
160 
166  inline ListQueuesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
167 
168  private:
169 
170  Aws::String m_queueNamePrefix;
171  bool m_queueNamePrefixHasBeenSet;
172 
173  Aws::String m_nextToken;
174  bool m_nextTokenHasBeenSet;
175 
176  int m_maxResults;
177  bool m_maxResultsHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace SQS
182 } // namespace Aws
Aws::SQS::Model::ListQueuesRequest::ListQueuesRequest
ListQueuesRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::SQS::Model::ListQueuesRequest::WithQueueNamePrefix
ListQueuesRequest & WithQueueNamePrefix(const char *value)
Definition: ListQueuesRequest.h:96
Aws::SQS::Model::ListQueuesRequest::WithMaxResults
ListQueuesRequest & WithMaxResults(int value)
Definition: ListQueuesRequest.h:166
Aws::SQS::Model::ListQueuesRequest::WithNextToken
ListQueuesRequest & WithNextToken(Aws::String &&value)
Definition: ListQueuesRequest.h:132
Aws::SQS::Model::ListQueuesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListQueuesRequest.h:122
Aws::SQS::Model::ListQueuesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListQueuesRequest.h:107
Aws::SQS::Model::ListQueuesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListQueuesRequest.h:145
Aws::SQS::Model::ListQueuesRequest::WithQueueNamePrefix
ListQueuesRequest & WithQueueNamePrefix(const Aws::String &value)
Definition: ListQueuesRequest.h:82
Aws::SQS::Model::ListQueuesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListQueuesRequest.h:159
Aws::SQS::Model::ListQueuesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListQueuesRequest.h:102
Aws::SQS::Model::ListQueuesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Chime::Model::NotificationTarget::NOT_SET
@ NOT_SET
AWSString.h
Aws::SQS::Model::ListQueuesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListQueuesRequest.h:152
AWS_SQS_API
#define AWS_SQS_API
Definition: SQS_EXPORTS.h:28
Aws::SQS::Model::ListQueuesRequest::QueueNamePrefixHasBeenSet
bool QueueNamePrefixHasBeenSet() const
Definition: ListQueuesRequest.h:54
Aws::SQS::Model::ListQueuesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListQueuesRequest.h:112
SQS_EXPORTS.h
Aws::SQS::Model::ListQueuesRequest::SetQueueNamePrefix
void SetQueueNamePrefix(const char *value)
Definition: ListQueuesRequest.h:75
Aws::SQS::SQSRequest
Definition: SQSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::SQS::Model::ListQueuesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListQueuesRequest.h:117
Aws::SQS::Model::ListQueuesRequest::WithQueueNamePrefix
ListQueuesRequest & WithQueueNamePrefix(Aws::String &&value)
Definition: ListQueuesRequest.h:89
Aws::SQS::Model::ListQueuesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListQueuesRequest.h:33
Aws::SQS::Model::ListQueuesRequest
Definition: ListQueuesRequest.h:25
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SQS::Model::ListQueuesRequest::SetQueueNamePrefix
void SetQueueNamePrefix(const Aws::String &value)
Definition: ListQueuesRequest.h:61
Aws::SQS::Model::ListQueuesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SQS::Model::ListQueuesRequest::SetQueueNamePrefix
void SetQueueNamePrefix(Aws::String &&value)
Definition: ListQueuesRequest.h:68
Aws::SQS::Model::ListQueuesRequest::WithNextToken
ListQueuesRequest & WithNextToken(const Aws::String &value)
Definition: ListQueuesRequest.h:127
Aws::SQS::Model::ListQueuesRequest::GetQueueNamePrefix
const Aws::String & GetQueueNamePrefix() const
Definition: ListQueuesRequest.h:47
SQSRequest.h
Aws::SQS::Model::ListQueuesRequest::WithNextToken
ListQueuesRequest & WithNextToken(const char *value)
Definition: ListQueuesRequest.h:137