AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetArchiveExportResult.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/ExportDestinationConfiguration.h>
12#include <aws/mailmanager/model/ExportStatus.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 GetArchiveExportResult() = 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 GetArchiveExportResult& 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 ExportDestinationConfiguration& GetExportDestinationConfiguration() const { return m_exportDestinationConfiguration; }
127 template <typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
128 void SetExportDestinationConfiguration(ExportDestinationConfigurationT&& value) {
129 m_exportDestinationConfigurationHasBeenSet = true;
130 m_exportDestinationConfiguration = std::forward<ExportDestinationConfigurationT>(value);
131 }
132 template <typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
133 GetArchiveExportResult& WithExportDestinationConfiguration(ExportDestinationConfigurationT&& value) {
134 SetExportDestinationConfiguration(std::forward<ExportDestinationConfigurationT>(value));
135 return *this;
136 }
138
140
143 inline const ExportStatus& GetStatus() const { return m_status; }
144 template <typename StatusT = ExportStatus>
145 void SetStatus(StatusT&& value) {
146 m_statusHasBeenSet = true;
147 m_status = std::forward<StatusT>(value);
148 }
149 template <typename StatusT = ExportStatus>
151 SetStatus(std::forward<StatusT>(value));
152 return *this;
153 }
155
157
158 inline const Aws::String& GetRequestId() const { return m_requestId; }
159 template <typename RequestIdT = Aws::String>
160 void SetRequestId(RequestIdT&& value) {
161 m_requestIdHasBeenSet = true;
162 m_requestId = std::forward<RequestIdT>(value);
163 }
164 template <typename RequestIdT = Aws::String>
166 SetRequestId(std::forward<RequestIdT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_archiveId;
172
173 ArchiveFilters m_filters;
174
175 Aws::Utils::DateTime m_fromTimestamp{};
176
177 Aws::Utils::DateTime m_toTimestamp{};
178
179 int m_maxResults{0};
180
181 ExportDestinationConfiguration m_exportDestinationConfiguration;
182
183 ExportStatus m_status;
184
185 Aws::String m_requestId;
186 bool m_archiveIdHasBeenSet = false;
187 bool m_filtersHasBeenSet = false;
188 bool m_fromTimestampHasBeenSet = false;
189 bool m_toTimestampHasBeenSet = false;
190 bool m_maxResultsHasBeenSet = false;
191 bool m_exportDestinationConfigurationHasBeenSet = false;
192 bool m_statusHasBeenSet = false;
193 bool m_requestIdHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace MailManager
198} // namespace Aws
const Aws::Utils::DateTime & GetToTimestamp() const
GetArchiveExportResult & WithRequestId(RequestIdT &&value)
GetArchiveExportResult & WithToTimestamp(ToTimestampT &&value)
GetArchiveExportResult & WithFromTimestamp(FromTimestampT &&value)
AWS_MAILMANAGER_API GetArchiveExportResult()=default
GetArchiveExportResult & WithMaxResults(int value)
GetArchiveExportResult & WithArchiveId(ArchiveIdT &&value)
void SetExportDestinationConfiguration(ExportDestinationConfigurationT &&value)
GetArchiveExportResult & WithFilters(FiltersT &&value)
GetArchiveExportResult & WithExportDestinationConfiguration(ExportDestinationConfigurationT &&value)
GetArchiveExportResult & WithStatus(StatusT &&value)
const ExportDestinationConfiguration & GetExportDestinationConfiguration() const
const Aws::Utils::DateTime & GetFromTimestamp() const
AWS_MAILMANAGER_API GetArchiveExportResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MAILMANAGER_API GetArchiveExportResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue