AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetArchiveSearchResult.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/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ArchiveFilters.h>
11#include <aws/mailmanager/model/SearchStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MailManager {
25namespace Model {
33 public:
34 AWS_MAILMANAGER_API GetArchiveSearchResult() = default;
37
39
42 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
43 template <typename ArchiveIdT = Aws::String>
44 void SetArchiveId(ArchiveIdT&& value) {
45 m_archiveIdHasBeenSet = true;
46 m_archiveId = std::forward<ArchiveIdT>(value);
47 }
48 template <typename ArchiveIdT = Aws::String>
50 SetArchiveId(std::forward<ArchiveIdT>(value));
51 return *this;
52 }
54
56
59 inline const ArchiveFilters& GetFilters() const { return m_filters; }
60 template <typename FiltersT = ArchiveFilters>
61 void SetFilters(FiltersT&& value) {
62 m_filtersHasBeenSet = true;
63 m_filters = std::forward<FiltersT>(value);
64 }
65 template <typename FiltersT = ArchiveFilters>
67 SetFilters(std::forward<FiltersT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
77 template <typename FromTimestampT = Aws::Utils::DateTime>
78 void SetFromTimestamp(FromTimestampT&& value) {
79 m_fromTimestampHasBeenSet = true;
80 m_fromTimestamp = std::forward<FromTimestampT>(value);
81 }
82 template <typename FromTimestampT = Aws::Utils::DateTime>
83 GetArchiveSearchResult& WithFromTimestamp(FromTimestampT&& value) {
84 SetFromTimestamp(std::forward<FromTimestampT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
94 template <typename ToTimestampT = Aws::Utils::DateTime>
95 void SetToTimestamp(ToTimestampT&& value) {
96 m_toTimestampHasBeenSet = true;
97 m_toTimestamp = std::forward<ToTimestampT>(value);
98 }
99 template <typename ToTimestampT = Aws::Utils::DateTime>
101 SetToTimestamp(std::forward<ToTimestampT>(value));
102 return *this;
103 }
105
107
110 inline int GetMaxResults() const { return m_maxResults; }
111 inline void SetMaxResults(int value) {
112 m_maxResultsHasBeenSet = true;
113 m_maxResults = value;
114 }
116 SetMaxResults(value);
117 return *this;
118 }
120
122
125 inline const SearchStatus& GetStatus() const { return m_status; }
126 template <typename StatusT = SearchStatus>
127 void SetStatus(StatusT&& value) {
128 m_statusHasBeenSet = true;
129 m_status = std::forward<StatusT>(value);
130 }
131 template <typename StatusT = SearchStatus>
133 SetStatus(std::forward<StatusT>(value));
134 return *this;
135 }
137
139
140 inline const Aws::String& GetRequestId() const { return m_requestId; }
141 template <typename RequestIdT = Aws::String>
142 void SetRequestId(RequestIdT&& value) {
143 m_requestIdHasBeenSet = true;
144 m_requestId = std::forward<RequestIdT>(value);
145 }
146 template <typename RequestIdT = Aws::String>
148 SetRequestId(std::forward<RequestIdT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_archiveId;
154
155 ArchiveFilters m_filters;
156
157 Aws::Utils::DateTime m_fromTimestamp{};
158
159 Aws::Utils::DateTime m_toTimestamp{};
160
161 int m_maxResults{0};
162
163 SearchStatus m_status;
164
165 Aws::String m_requestId;
166 bool m_archiveIdHasBeenSet = false;
167 bool m_filtersHasBeenSet = false;
168 bool m_fromTimestampHasBeenSet = false;
169 bool m_toTimestampHasBeenSet = false;
170 bool m_maxResultsHasBeenSet = false;
171 bool m_statusHasBeenSet = false;
172 bool m_requestIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace MailManager
177} // namespace Aws
GetArchiveSearchResult & WithFromTimestamp(FromTimestampT &&value)
AWS_MAILMANAGER_API GetArchiveSearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
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