AWS SDK for C++  1.9.153
AWS SDK for C++
ListEmailTemplatesRequest.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 SESV2
19 {
20 namespace Model
21 {
22 
33  {
34  public:
36 
37  // Service request name is the Operation name which will send this request out,
38  // each operation should has unique request name, so that we can get operation's name from this request.
39  // Note: this is not true for response, multiple operations may have the same response name,
40  // so we can not get operation's name from response.
41  inline virtual const char* GetServiceRequestName() const override { return "ListEmailTemplates"; }
42 
43  Aws::String SerializePayload() const override;
44 
45  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46 
47 
52  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
53 
58  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 
64  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
65 
70  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
71 
76  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
77 
82  inline ListEmailTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
83 
88  inline ListEmailTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 
94  inline ListEmailTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95 
96 
105  inline int GetPageSize() const{ return m_pageSize; }
106 
115  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
116 
125  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
126 
135  inline ListEmailTemplatesRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
136 
137  private:
138 
139  Aws::String m_nextToken;
140  bool m_nextTokenHasBeenSet;
141 
142  int m_pageSize;
143  bool m_pageSizeHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace SESV2
148 } // namespace Aws
Aws::SESV2::Model::ListEmailTemplatesRequest::WithNextToken
ListEmailTemplatesRequest & WithNextToken(const char *value)
Definition: ListEmailTemplatesRequest.h:94
Aws::SESV2::Model::ListEmailTemplatesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListEmailTemplatesRequest.h:58
Aws::Http::URI
Definition: URI.h:32
Aws::SESV2::Model::ListEmailTemplatesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_SESV2_API
#define AWS_SESV2_API
Definition: SESV2_EXPORTS.h:28
Aws::SESV2::Model::ListEmailTemplatesRequest::WithNextToken
ListEmailTemplatesRequest & WithNextToken(const Aws::String &value)
Definition: ListEmailTemplatesRequest.h:82
Aws::SESV2::Model::ListEmailTemplatesRequest::ListEmailTemplatesRequest
ListEmailTemplatesRequest()
Aws::SESV2::Model::ListEmailTemplatesRequest
Definition: ListEmailTemplatesRequest.h:33
Aws::SESV2::Model::ListEmailTemplatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListEmailTemplatesRequest.h:41
Aws::SESV2::Model::ListEmailTemplatesRequest::SetPageSize
void SetPageSize(int value)
Definition: ListEmailTemplatesRequest.h:125
Aws::SESV2::Model::ListEmailTemplatesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListEmailTemplatesRequest.h:76
Aws::SESV2::Model::ListEmailTemplatesRequest::WithPageSize
ListEmailTemplatesRequest & WithPageSize(int value)
Definition: ListEmailTemplatesRequest.h:135
Aws::SESV2::Model::ListEmailTemplatesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListEmailTemplatesRequest.h:52
Aws::SESV2::Model::ListEmailTemplatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SESV2::Model::ListEmailTemplatesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListEmailTemplatesRequest.h:64
Aws::SESV2::SESV2Request
Definition: SESV2Request.h:17
AWSString.h
Aws::SESV2::Model::ListEmailTemplatesRequest::WithNextToken
ListEmailTemplatesRequest & WithNextToken(Aws::String &&value)
Definition: ListEmailTemplatesRequest.h:88
SESV2_EXPORTS.h
Aws::SESV2::Model::ListEmailTemplatesRequest::GetPageSize
int GetPageSize() const
Definition: ListEmailTemplatesRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::SESV2::Model::ListEmailTemplatesRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListEmailTemplatesRequest.h:115
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SESV2::Model::ListEmailTemplatesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListEmailTemplatesRequest.h:70
SESV2Request.h