AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListArchivesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace MailManager {
15namespace Model {
16
24 public:
25 AWS_MAILMANAGER_API ListArchivesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListArchives"; }
32
33 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
45 template <typename NextTokenT = Aws::String>
46 void SetNextToken(NextTokenT&& value) {
47 m_nextTokenHasBeenSet = true;
48 m_nextToken = std::forward<NextTokenT>(value);
49 }
50 template <typename NextTokenT = Aws::String>
51 ListArchivesRequest& WithNextToken(NextTokenT&& value) {
52 SetNextToken(std::forward<NextTokenT>(value));
53 return *this;
54 }
56
58
62 inline int GetPageSize() const { return m_pageSize; }
63 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
64 inline void SetPageSize(int value) {
65 m_pageSizeHasBeenSet = true;
66 m_pageSize = value;
67 }
68 inline ListArchivesRequest& WithPageSize(int value) {
69 SetPageSize(value);
70 return *this;
71 }
73 private:
74 Aws::String m_nextToken;
75
76 int m_pageSize{0};
77 bool m_nextTokenHasBeenSet = false;
78 bool m_pageSizeHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace MailManager
83} // namespace Aws
ListArchivesRequest & WithNextToken(NextTokenT &&value)
ListArchivesRequest & WithPageSize(int value)
AWS_MAILMANAGER_API ListArchivesRequest()=default
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String