AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetArchiveExportResult.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/ExportDestinationConfiguration.h>
13#include <aws/mailmanager/model/ExportStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MailManager {
27namespace Model {
35 public:
36 AWS_MAILMANAGER_API GetArchiveExportResult() = default;
39
41
44 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
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 template <typename FiltersT = ArchiveFilters>
63 void SetFilters(FiltersT&& value) {
64 m_filtersHasBeenSet = true;
65 m_filters = std::forward<FiltersT>(value);
66 }
67 template <typename FiltersT = ArchiveFilters>
69 SetFilters(std::forward<FiltersT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetFromTimestamp() const { return m_fromTimestamp; }
79 template <typename FromTimestampT = Aws::Utils::DateTime>
80 void SetFromTimestamp(FromTimestampT&& value) {
81 m_fromTimestampHasBeenSet = true;
82 m_fromTimestamp = std::forward<FromTimestampT>(value);
83 }
84 template <typename FromTimestampT = Aws::Utils::DateTime>
85 GetArchiveExportResult& WithFromTimestamp(FromTimestampT&& value) {
86 SetFromTimestamp(std::forward<FromTimestampT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetToTimestamp() const { return m_toTimestamp; }
96 template <typename ToTimestampT = Aws::Utils::DateTime>
97 void SetToTimestamp(ToTimestampT&& value) {
98 m_toTimestampHasBeenSet = true;
99 m_toTimestamp = std::forward<ToTimestampT>(value);
100 }
101 template <typename ToTimestampT = Aws::Utils::DateTime>
103 SetToTimestamp(std::forward<ToTimestampT>(value));
104 return *this;
105 }
107
109
112 inline int GetMaxResults() const { return m_maxResults; }
113 inline void SetMaxResults(int value) {
114 m_maxResultsHasBeenSet = true;
115 m_maxResults = value;
116 }
118 SetMaxResults(value);
119 return *this;
120 }
122
124
127 inline const ExportDestinationConfiguration& GetExportDestinationConfiguration() const { return m_exportDestinationConfiguration; }
128 template <typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
129 void SetExportDestinationConfiguration(ExportDestinationConfigurationT&& value) {
130 m_exportDestinationConfigurationHasBeenSet = true;
131 m_exportDestinationConfiguration = std::forward<ExportDestinationConfigurationT>(value);
132 }
133 template <typename ExportDestinationConfigurationT = ExportDestinationConfiguration>
134 GetArchiveExportResult& WithExportDestinationConfiguration(ExportDestinationConfigurationT&& value) {
135 SetExportDestinationConfiguration(std::forward<ExportDestinationConfigurationT>(value));
136 return *this;
137 }
139
141
144 inline const ExportStatus& GetStatus() const { return m_status; }
145 template <typename StatusT = ExportStatus>
146 void SetStatus(StatusT&& value) {
147 m_statusHasBeenSet = true;
148 m_status = std::forward<StatusT>(value);
149 }
150 template <typename StatusT = ExportStatus>
152 SetStatus(std::forward<StatusT>(value));
153 return *this;
154 }
156
158
159 inline const Aws::String& GetRequestId() const { return m_requestId; }
160 template <typename RequestIdT = Aws::String>
161 void SetRequestId(RequestIdT&& value) {
162 m_requestIdHasBeenSet = true;
163 m_requestId = std::forward<RequestIdT>(value);
164 }
165 template <typename RequestIdT = Aws::String>
167 SetRequestId(std::forward<RequestIdT>(value));
168 return *this;
169 }
171 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
172
173 private:
174 Aws::String m_archiveId;
175
176 ArchiveFilters m_filters;
177
178 Aws::Utils::DateTime m_fromTimestamp{};
179
180 Aws::Utils::DateTime m_toTimestamp{};
181
182 int m_maxResults{0};
183
184 ExportDestinationConfiguration m_exportDestinationConfiguration;
185
186 ExportStatus m_status;
187
188 Aws::String m_requestId;
189 Aws::Http::HttpResponseCode m_HttpResponseCode;
190 bool m_archiveIdHasBeenSet = false;
191 bool m_filtersHasBeenSet = false;
192 bool m_fromTimestampHasBeenSet = false;
193 bool m_toTimestampHasBeenSet = false;
194 bool m_maxResultsHasBeenSet = false;
195 bool m_exportDestinationConfigurationHasBeenSet = false;
196 bool m_statusHasBeenSet = false;
197 bool m_requestIdHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace MailManager
202} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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