AWS SDK for C++  1.8.71
AWS SDK for C++
ListTemplatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/email/SESRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SES
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListTemplates"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
49  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
50 
55  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
56 
61  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 
67  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
68 
73  inline ListTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 
79  inline ListTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
80 
85  inline ListTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
86 
87 
94  inline int GetMaxItems() const{ return m_maxItems; }
95 
102  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
103 
110  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
111 
118  inline ListTemplatesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
119 
120  private:
121 
122  Aws::String m_nextToken;
123  bool m_nextTokenHasBeenSet;
124 
125  int m_maxItems;
126  bool m_maxItemsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace SES
131 } // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNextToken() const
ListTemplatesRequest & WithNextToken(Aws::String &&value)
ListTemplatesRequest & WithNextToken(const char *value)
ListTemplatesRequest & WithMaxItems(int value)
void SetNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
ListTemplatesRequest & WithNextToken(const Aws::String &value)