AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetExportJobResult.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/sesv2/SESV2_EXPORTS.h>
11#include <aws/sesv2/model/ExportDataSource.h>
12#include <aws/sesv2/model/ExportDestination.h>
13#include <aws/sesv2/model/ExportSourceType.h>
14#include <aws/sesv2/model/ExportStatistics.h>
15#include <aws/sesv2/model/FailureInfo.h>
16#include <aws/sesv2/model/JobStatus.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace SESV2 {
30namespace Model {
38 public:
39 AWS_SESV2_API GetExportJobResult() = default;
42
44
47 inline const Aws::String& GetJobId() const { return m_jobId; }
48 template <typename JobIdT = Aws::String>
49 void SetJobId(JobIdT&& value) {
50 m_jobIdHasBeenSet = true;
51 m_jobId = std::forward<JobIdT>(value);
52 }
53 template <typename JobIdT = Aws::String>
54 GetExportJobResult& WithJobId(JobIdT&& value) {
55 SetJobId(std::forward<JobIdT>(value));
56 return *this;
57 }
59
61
64 inline ExportSourceType GetExportSourceType() const { return m_exportSourceType; }
66 m_exportSourceTypeHasBeenSet = true;
67 m_exportSourceType = value;
68 }
71 return *this;
72 }
74
76
79 inline JobStatus GetJobStatus() const { return m_jobStatus; }
80 inline void SetJobStatus(JobStatus value) {
81 m_jobStatusHasBeenSet = true;
82 m_jobStatus = value;
83 }
85 SetJobStatus(value);
86 return *this;
87 }
89
91
96 inline const ExportDestination& GetExportDestination() const { return m_exportDestination; }
97 template <typename ExportDestinationT = ExportDestination>
98 void SetExportDestination(ExportDestinationT&& value) {
99 m_exportDestinationHasBeenSet = true;
100 m_exportDestination = std::forward<ExportDestinationT>(value);
101 }
102 template <typename ExportDestinationT = ExportDestination>
103 GetExportJobResult& WithExportDestination(ExportDestinationT&& value) {
104 SetExportDestination(std::forward<ExportDestinationT>(value));
105 return *this;
106 }
108
110
113 inline const ExportDataSource& GetExportDataSource() const { return m_exportDataSource; }
114 template <typename ExportDataSourceT = ExportDataSource>
115 void SetExportDataSource(ExportDataSourceT&& value) {
116 m_exportDataSourceHasBeenSet = true;
117 m_exportDataSource = std::forward<ExportDataSourceT>(value);
118 }
119 template <typename ExportDataSourceT = ExportDataSource>
120 GetExportJobResult& WithExportDataSource(ExportDataSourceT&& value) {
121 SetExportDataSource(std::forward<ExportDataSourceT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
131 template <typename CreatedTimestampT = Aws::Utils::DateTime>
132 void SetCreatedTimestamp(CreatedTimestampT&& value) {
133 m_createdTimestampHasBeenSet = true;
134 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
135 }
136 template <typename CreatedTimestampT = Aws::Utils::DateTime>
137 GetExportJobResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
138 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
148 template <typename CompletedTimestampT = Aws::Utils::DateTime>
149 void SetCompletedTimestamp(CompletedTimestampT&& value) {
150 m_completedTimestampHasBeenSet = true;
151 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
152 }
153 template <typename CompletedTimestampT = Aws::Utils::DateTime>
154 GetExportJobResult& WithCompletedTimestamp(CompletedTimestampT&& value) {
155 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
156 return *this;
157 }
159
161
164 inline const FailureInfo& GetFailureInfo() const { return m_failureInfo; }
165 template <typename FailureInfoT = FailureInfo>
166 void SetFailureInfo(FailureInfoT&& value) {
167 m_failureInfoHasBeenSet = true;
168 m_failureInfo = std::forward<FailureInfoT>(value);
169 }
170 template <typename FailureInfoT = FailureInfo>
171 GetExportJobResult& WithFailureInfo(FailureInfoT&& value) {
172 SetFailureInfo(std::forward<FailureInfoT>(value));
173 return *this;
174 }
176
178
181 inline const ExportStatistics& GetStatistics() const { return m_statistics; }
182 template <typename StatisticsT = ExportStatistics>
183 void SetStatistics(StatisticsT&& value) {
184 m_statisticsHasBeenSet = true;
185 m_statistics = std::forward<StatisticsT>(value);
186 }
187 template <typename StatisticsT = ExportStatistics>
188 GetExportJobResult& WithStatistics(StatisticsT&& value) {
189 SetStatistics(std::forward<StatisticsT>(value));
190 return *this;
191 }
193
195
196 inline const Aws::String& GetRequestId() const { return m_requestId; }
197 template <typename RequestIdT = Aws::String>
198 void SetRequestId(RequestIdT&& value) {
199 m_requestIdHasBeenSet = true;
200 m_requestId = std::forward<RequestIdT>(value);
201 }
202 template <typename RequestIdT = Aws::String>
203 GetExportJobResult& WithRequestId(RequestIdT&& value) {
204 SetRequestId(std::forward<RequestIdT>(value));
205 return *this;
206 }
208 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
209
210 private:
211 Aws::String m_jobId;
212
214
215 JobStatus m_jobStatus{JobStatus::NOT_SET};
216
217 ExportDestination m_exportDestination;
218
219 ExportDataSource m_exportDataSource;
220
221 Aws::Utils::DateTime m_createdTimestamp{};
222
223 Aws::Utils::DateTime m_completedTimestamp{};
224
225 FailureInfo m_failureInfo;
226
227 ExportStatistics m_statistics;
228
229 Aws::String m_requestId;
230 Aws::Http::HttpResponseCode m_HttpResponseCode;
231 bool m_jobIdHasBeenSet = false;
232 bool m_exportSourceTypeHasBeenSet = false;
233 bool m_jobStatusHasBeenSet = false;
234 bool m_exportDestinationHasBeenSet = false;
235 bool m_exportDataSourceHasBeenSet = false;
236 bool m_createdTimestampHasBeenSet = false;
237 bool m_completedTimestampHasBeenSet = false;
238 bool m_failureInfoHasBeenSet = false;
239 bool m_statisticsHasBeenSet = false;
240 bool m_requestIdHasBeenSet = false;
241};
242
243} // namespace Model
244} // namespace SESV2
245} // namespace Aws
GetExportJobResult & WithExportDataSource(ExportDataSourceT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const ExportDestination & GetExportDestination() const
void SetFailureInfo(FailureInfoT &&value)
const Aws::Utils::DateTime & GetCompletedTimestamp() const
const Aws::String & GetRequestId() const
const ExportDataSource & GetExportDataSource() const
AWS_SESV2_API GetExportJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetExportJobResult & WithExportDestination(ExportDestinationT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
void SetExportDataSource(ExportDataSourceT &&value)
GetExportJobResult & WithExportSourceType(ExportSourceType value)
GetExportJobResult & WithJobStatus(JobStatus value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
const ExportStatistics & GetStatistics() const
GetExportJobResult & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_SESV2_API GetExportJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetExportJobResult & WithJobId(JobIdT &&value)
GetExportJobResult & WithStatistics(StatisticsT &&value)
GetExportJobResult & WithRequestId(RequestIdT &&value)
ExportSourceType GetExportSourceType() const
AWS_SESV2_API GetExportJobResult()=default
void SetExportSourceType(ExportSourceType value)
GetExportJobResult & WithFailureInfo(FailureInfoT &&value)
const FailureInfo & GetFailureInfo() const
const Aws::String & GetJobId() const
void SetExportDestination(ExportDestinationT &&value)
GetExportJobResult & WithCompletedTimestamp(CompletedTimestampT &&value)
void SetCompletedTimestamp(CompletedTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue