AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetArchiveSearchResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11#include <aws/mailmanager/model/ArchiveFilters.h>
12#include <aws/mailmanager/model/SearchStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MailManager {
26namespace Model {
34 public:
35 AWS_MAILMANAGER_API GetArchiveSearchResult() = default;
38
40
43 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
44 template <typename ArchiveIdT = Aws::String>
45 void SetArchiveId(ArchiveIdT&& value) {
46 m_archiveIdHasBeenSet = true;
47 m_archiveId = std::forward<ArchiveIdT>(value);
48 }
49 template <typename ArchiveIdT = Aws::String>
51 SetArchiveId(std::forward<ArchiveIdT>(value));
52 return *this;
53 }
55
57
60 inline const ArchiveFilters& GetFilters() const { return m_filters; }
61 template <typename FiltersT = ArchiveFilters>
62 void SetFilters(FiltersT&& value) {
63 m_filtersHasBeenSet = true;
64 m_filters = std::forward<FiltersT>(value);
65 }
66 template <typename FiltersT = ArchiveFilters>
68 SetFilters(std::forward<FiltersT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
78 template <typename FromTimestampT = Aws::Utils::DateTime>
79 void SetFromTimestamp(FromTimestampT&& value) {
80 m_fromTimestampHasBeenSet = true;
81 m_fromTimestamp = std::forward<FromTimestampT>(value);
82 }
83 template <typename FromTimestampT = Aws::Utils::DateTime>
84 GetArchiveSearchResult& WithFromTimestamp(FromTimestampT&& value) {
85 SetFromTimestamp(std::forward<FromTimestampT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
95 template <typename ToTimestampT = Aws::Utils::DateTime>
96 void SetToTimestamp(ToTimestampT&& value) {
97 m_toTimestampHasBeenSet = true;
98 m_toTimestamp = std::forward<ToTimestampT>(value);
99 }
100 template <typename ToTimestampT = Aws::Utils::DateTime>
102 SetToTimestamp(std::forward<ToTimestampT>(value));
103 return *this;
104 }
106
108
111 inline int GetMaxResults() const { return m_maxResults; }
112 inline void SetMaxResults(int value) {
113 m_maxResultsHasBeenSet = true;
114 m_maxResults = value;
115 }
117 SetMaxResults(value);
118 return *this;
119 }
121
123
126 inline const SearchStatus& GetStatus() const { return m_status; }
127 template <typename StatusT = SearchStatus>
128 void SetStatus(StatusT&& value) {
129 m_statusHasBeenSet = true;
130 m_status = std::forward<StatusT>(value);
131 }
132 template <typename StatusT = SearchStatus>
134 SetStatus(std::forward<StatusT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_archiveId;
157
158 ArchiveFilters m_filters;
159
160 Aws::Utils::DateTime m_fromTimestamp{};
161
162 Aws::Utils::DateTime m_toTimestamp{};
163
164 int m_maxResults{0};
165
166 SearchStatus m_status;
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_archiveIdHasBeenSet = false;
171 bool m_filtersHasBeenSet = false;
172 bool m_fromTimestampHasBeenSet = false;
173 bool m_toTimestampHasBeenSet = false;
174 bool m_maxResultsHasBeenSet = false;
175 bool m_statusHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace MailManager
181} // namespace Aws
GetArchiveSearchResult & WithFromTimestamp(FromTimestampT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetFromTimestamp() const
GetArchiveSearchResult & WithMaxResults(int value)
GetArchiveSearchResult & WithToTimestamp(ToTimestampT &&value)
GetArchiveSearchResult & WithRequestId(RequestIdT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetArchiveSearchResult & WithStatus(StatusT &&value)
GetArchiveSearchResult & WithFilters(FiltersT &&value)
const Aws::Utils::DateTime & GetToTimestamp() const
GetArchiveSearchResult & WithArchiveId(ArchiveIdT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue