AWS SDK for C++  1.9.40
AWS SDK for C++
ListTemplatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Pinpoint
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListTemplates"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
46  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
47 
53  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 
60  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 
67  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 
74  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 
81  inline ListTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 
88  inline ListTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 
95  inline ListTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
96 
97 
103  inline const Aws::String& GetPageSize() const{ return m_pageSize; }
104 
110  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
111 
117  inline void SetPageSize(const Aws::String& value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
118 
124  inline void SetPageSize(Aws::String&& value) { m_pageSizeHasBeenSet = true; m_pageSize = std::move(value); }
125 
131  inline void SetPageSize(const char* value) { m_pageSizeHasBeenSet = true; m_pageSize.assign(value); }
132 
138  inline ListTemplatesRequest& WithPageSize(const Aws::String& value) { SetPageSize(value); return *this;}
139 
145  inline ListTemplatesRequest& WithPageSize(Aws::String&& value) { SetPageSize(std::move(value)); return *this;}
146 
152  inline ListTemplatesRequest& WithPageSize(const char* value) { SetPageSize(value); return *this;}
153 
154 
160  inline const Aws::String& GetPrefix() const{ return m_prefix; }
161 
167  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
168 
174  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
175 
181  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
182 
188  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
189 
195  inline ListTemplatesRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
196 
202  inline ListTemplatesRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
203 
209  inline ListTemplatesRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
210 
211 
217  inline const Aws::String& GetTemplateType() const{ return m_templateType; }
218 
224  inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
225 
231  inline void SetTemplateType(const Aws::String& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
232 
238  inline void SetTemplateType(Aws::String&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
239 
245  inline void SetTemplateType(const char* value) { m_templateTypeHasBeenSet = true; m_templateType.assign(value); }
246 
252  inline ListTemplatesRequest& WithTemplateType(const Aws::String& value) { SetTemplateType(value); return *this;}
253 
259  inline ListTemplatesRequest& WithTemplateType(Aws::String&& value) { SetTemplateType(std::move(value)); return *this;}
260 
266  inline ListTemplatesRequest& WithTemplateType(const char* value) { SetTemplateType(value); return *this;}
267 
268  private:
269 
270  Aws::String m_nextToken;
271  bool m_nextTokenHasBeenSet;
272 
273  Aws::String m_pageSize;
274  bool m_pageSizeHasBeenSet;
275 
276  Aws::String m_prefix;
277  bool m_prefixHasBeenSet;
278 
279  Aws::String m_templateType;
280  bool m_templateTypeHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace Pinpoint
285 } // namespace Aws
Aws::Pinpoint::Model::ListTemplatesRequest::WithTemplateType
ListTemplatesRequest & WithTemplateType(const char *value)
Definition: ListTemplatesRequest.h:266
Aws::Pinpoint::Model::ListTemplatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTemplatesRequest.h:34
Aws::Pinpoint::Model::ListTemplatesRequest::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: ListTemplatesRequest.h:181
Aws::Http::URI
Definition: URI.h:32
Aws::Pinpoint::Model::ListTemplatesRequest::SetTemplateType
void SetTemplateType(const char *value)
Definition: ListTemplatesRequest.h:245
Aws::Pinpoint::Model::ListTemplatesRequest::WithPageSize
ListTemplatesRequest & WithPageSize(const char *value)
Definition: ListTemplatesRequest.h:152
Aws::Pinpoint::Model::ListTemplatesRequest::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: ListTemplatesRequest.h:174
Aws::Pinpoint::Model::ListTemplatesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListTemplatesRequest.h:53
Aws::Pinpoint::Model::ListTemplatesRequest::WithPrefix
ListTemplatesRequest & WithPrefix(const char *value)
Definition: ListTemplatesRequest.h:209
AWS_PINPOINT_API
#define AWS_PINPOINT_API
Definition: Pinpoint_EXPORTS.h:28
Aws::Pinpoint::Model::ListTemplatesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListTemplatesRequest.h:67
Aws::Pinpoint::Model::ListTemplatesRequest::GetTemplateType
const Aws::String & GetTemplateType() const
Definition: ListTemplatesRequest.h:217
Aws::Pinpoint::Model::ListTemplatesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListTemplatesRequest.h:74
Aws::Pinpoint::Model::ListTemplatesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListTemplatesRequest.h:46
Aws::Pinpoint::Model::ListTemplatesRequest::WithPageSize
ListTemplatesRequest & WithPageSize(const Aws::String &value)
Definition: ListTemplatesRequest.h:138
Aws::Pinpoint::Model::ListTemplatesRequest::WithNextToken
ListTemplatesRequest & WithNextToken(const Aws::String &value)
Definition: ListTemplatesRequest.h:81
Aws::Pinpoint::Model::ListTemplatesRequest::WithPrefix
ListTemplatesRequest & WithPrefix(const Aws::String &value)
Definition: ListTemplatesRequest.h:195
Pinpoint_EXPORTS.h
Aws::Pinpoint::Model::ListTemplatesRequest::SetPageSize
void SetPageSize(Aws::String &&value)
Definition: ListTemplatesRequest.h:124
Aws::Pinpoint::Model::ListTemplatesRequest::WithNextToken
ListTemplatesRequest & WithNextToken(Aws::String &&value)
Definition: ListTemplatesRequest.h:88
Aws::Pinpoint::Model::ListTemplatesRequest::WithPageSize
ListTemplatesRequest & WithPageSize(Aws::String &&value)
Definition: ListTemplatesRequest.h:145
Aws::Pinpoint::Model::ListTemplatesRequest::WithPrefix
ListTemplatesRequest & WithPrefix(Aws::String &&value)
Definition: ListTemplatesRequest.h:202
AWSString.h
Aws::Pinpoint::Model::ListTemplatesRequest::SetPrefix
void SetPrefix(const char *value)
Definition: ListTemplatesRequest.h:188
Aws::Pinpoint::PinpointRequest
Definition: PinpointRequest.h:17
Aws::Pinpoint::Model::ListTemplatesRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListTemplatesRequest.h:110
Aws::Pinpoint::Model::ListTemplatesRequest::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: ListTemplatesRequest.h:167
Aws::Pinpoint::Model::ListTemplatesRequest::WithTemplateType
ListTemplatesRequest & WithTemplateType(Aws::String &&value)
Definition: ListTemplatesRequest.h:259
Aws::Pinpoint::Model::ListTemplatesRequest::GetPrefix
const Aws::String & GetPrefix() const
Definition: ListTemplatesRequest.h:160
Aws::Pinpoint::Model::ListTemplatesRequest
Definition: ListTemplatesRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::Pinpoint::Model::ListTemplatesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListTemplatesRequest.h:60
Aws::Pinpoint::Model::ListTemplatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Pinpoint::Model::ListTemplatesRequest::SetPageSize
void SetPageSize(const Aws::String &value)
Definition: ListTemplatesRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Pinpoint::Model::ListTemplatesRequest::SetPageSize
void SetPageSize(const char *value)
Definition: ListTemplatesRequest.h:131
Aws::Pinpoint::Model::ListTemplatesRequest::GetPageSize
const Aws::String & GetPageSize() const
Definition: ListTemplatesRequest.h:103
Aws::Pinpoint::Model::ListTemplatesRequest::WithNextToken
ListTemplatesRequest & WithNextToken(const char *value)
Definition: ListTemplatesRequest.h:95
Aws::Pinpoint::Model::ListTemplatesRequest::SetTemplateType
void SetTemplateType(const Aws::String &value)
Definition: ListTemplatesRequest.h:231
Aws::Pinpoint::Model::ListTemplatesRequest::SetTemplateType
void SetTemplateType(Aws::String &&value)
Definition: ListTemplatesRequest.h:238
Aws::Pinpoint::Model::ListTemplatesRequest::WithTemplateType
ListTemplatesRequest & WithTemplateType(const Aws::String &value)
Definition: ListTemplatesRequest.h:252
PinpointRequest.h
Aws::Pinpoint::Model::ListTemplatesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Pinpoint::Model::ListTemplatesRequest::ListTemplatesRequest
ListTemplatesRequest()
Aws::Pinpoint::Model::ListTemplatesRequest::TemplateTypeHasBeenSet
bool TemplateTypeHasBeenSet() const
Definition: ListTemplatesRequest.h:224