AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
StartArchiveSearchRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManagerRequest.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/ArchiveFilters.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MailManager {
17namespace Model {
18
26 public:
27 AWS_MAILMANAGER_API StartArchiveSearchRequest() = default;
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 "StartArchiveSearch"; }
34
35 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
44 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
45 template <typename ArchiveIdT = Aws::String>
46 void SetArchiveId(ArchiveIdT&& value) {
47 m_archiveIdHasBeenSet = true;
48 m_archiveId = std::forward<ArchiveIdT>(value);
49 }
50 template <typename ArchiveIdT = Aws::String>
52 SetArchiveId(std::forward<ArchiveIdT>(value));
53 return *this;
54 }
56
58
61 inline const ArchiveFilters& GetFilters() const { return m_filters; }
62 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
63 template <typename FiltersT = ArchiveFilters>
64 void SetFilters(FiltersT&& value) {
65 m_filtersHasBeenSet = true;
66 m_filters = std::forward<FiltersT>(value);
67 }
68 template <typename FiltersT = ArchiveFilters>
70 SetFilters(std::forward<FiltersT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
80 inline bool FromTimestampHasBeenSet() const { return m_fromTimestampHasBeenSet; }
81 template <typename FromTimestampT = Aws::Utils::DateTime>
82 void SetFromTimestamp(FromTimestampT&& value) {
83 m_fromTimestampHasBeenSet = true;
84 m_fromTimestamp = std::forward<FromTimestampT>(value);
85 }
86 template <typename FromTimestampT = Aws::Utils::DateTime>
88 SetFromTimestamp(std::forward<FromTimestampT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
98 inline bool ToTimestampHasBeenSet() const { return m_toTimestampHasBeenSet; }
99 template <typename ToTimestampT = Aws::Utils::DateTime>
100 void SetToTimestamp(ToTimestampT&& value) {
101 m_toTimestampHasBeenSet = true;
102 m_toTimestamp = std::forward<ToTimestampT>(value);
103 }
104 template <typename ToTimestampT = Aws::Utils::DateTime>
106 SetToTimestamp(std::forward<ToTimestampT>(value));
107 return *this;
108 }
110
112
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126 private:
127 Aws::String m_archiveId;
128
129 ArchiveFilters m_filters;
130
131 Aws::Utils::DateTime m_fromTimestamp{};
132
133 Aws::Utils::DateTime m_toTimestamp{};
134
135 int m_maxResults{0};
136 bool m_archiveIdHasBeenSet = false;
137 bool m_filtersHasBeenSet = false;
138 bool m_fromTimestampHasBeenSet = false;
139 bool m_toTimestampHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace MailManager
145} // namespace Aws
StartArchiveSearchRequest & WithToTimestamp(ToTimestampT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_MAILMANAGER_API StartArchiveSearchRequest()=default
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
StartArchiveSearchRequest & WithFilters(FiltersT &&value)
StartArchiveSearchRequest & WithArchiveId(ArchiveIdT &&value)
StartArchiveSearchRequest & WithFromTimestamp(FromTimestampT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String