AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetImportJobResult.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/FailureInfo.h>
12#include <aws/sesv2/model/ImportDataSource.h>
13#include <aws/sesv2/model/ImportDestination.h>
14#include <aws/sesv2/model/JobStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SESV2 {
28namespace Model {
36 public:
37 AWS_SESV2_API GetImportJobResult() = default;
40
42
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 template <typename JobIdT = Aws::String>
47 void SetJobId(JobIdT&& value) {
48 m_jobIdHasBeenSet = true;
49 m_jobId = std::forward<JobIdT>(value);
50 }
51 template <typename JobIdT = Aws::String>
52 GetImportJobResult& WithJobId(JobIdT&& value) {
53 SetJobId(std::forward<JobIdT>(value));
54 return *this;
55 }
57
59
62 inline const ImportDestination& GetImportDestination() const { return m_importDestination; }
63 template <typename ImportDestinationT = ImportDestination>
64 void SetImportDestination(ImportDestinationT&& value) {
65 m_importDestinationHasBeenSet = true;
66 m_importDestination = std::forward<ImportDestinationT>(value);
67 }
68 template <typename ImportDestinationT = ImportDestination>
69 GetImportJobResult& WithImportDestination(ImportDestinationT&& value) {
70 SetImportDestination(std::forward<ImportDestinationT>(value));
71 return *this;
72 }
74
76
79 inline const ImportDataSource& GetImportDataSource() const { return m_importDataSource; }
80 template <typename ImportDataSourceT = ImportDataSource>
81 void SetImportDataSource(ImportDataSourceT&& value) {
82 m_importDataSourceHasBeenSet = true;
83 m_importDataSource = std::forward<ImportDataSourceT>(value);
84 }
85 template <typename ImportDataSourceT = ImportDataSource>
86 GetImportJobResult& WithImportDataSource(ImportDataSourceT&& value) {
87 SetImportDataSource(std::forward<ImportDataSourceT>(value));
88 return *this;
89 }
91
93
96 inline const FailureInfo& GetFailureInfo() const { return m_failureInfo; }
97 template <typename FailureInfoT = FailureInfo>
98 void SetFailureInfo(FailureInfoT&& value) {
99 m_failureInfoHasBeenSet = true;
100 m_failureInfo = std::forward<FailureInfoT>(value);
101 }
102 template <typename FailureInfoT = FailureInfo>
103 GetImportJobResult& WithFailureInfo(FailureInfoT&& value) {
104 SetFailureInfo(std::forward<FailureInfoT>(value));
105 return *this;
106 }
108
110
113 inline JobStatus GetJobStatus() const { return m_jobStatus; }
114 inline void SetJobStatus(JobStatus value) {
115 m_jobStatusHasBeenSet = true;
116 m_jobStatus = value;
117 }
119 SetJobStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
129 template <typename CreatedTimestampT = Aws::Utils::DateTime>
130 void SetCreatedTimestamp(CreatedTimestampT&& value) {
131 m_createdTimestampHasBeenSet = true;
132 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
133 }
134 template <typename CreatedTimestampT = Aws::Utils::DateTime>
135 GetImportJobResult& WithCreatedTimestamp(CreatedTimestampT&& value) {
136 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetCompletedTimestamp() const { return m_completedTimestamp; }
146 template <typename CompletedTimestampT = Aws::Utils::DateTime>
147 void SetCompletedTimestamp(CompletedTimestampT&& value) {
148 m_completedTimestampHasBeenSet = true;
149 m_completedTimestamp = std::forward<CompletedTimestampT>(value);
150 }
151 template <typename CompletedTimestampT = Aws::Utils::DateTime>
152 GetImportJobResult& WithCompletedTimestamp(CompletedTimestampT&& value) {
153 SetCompletedTimestamp(std::forward<CompletedTimestampT>(value));
154 return *this;
155 }
157
159
162 inline int GetProcessedRecordsCount() const { return m_processedRecordsCount; }
163 inline void SetProcessedRecordsCount(int value) {
164 m_processedRecordsCountHasBeenSet = true;
165 m_processedRecordsCount = value;
166 }
169 return *this;
170 }
172
174
178 inline int GetFailedRecordsCount() const { return m_failedRecordsCount; }
179 inline void SetFailedRecordsCount(int value) {
180 m_failedRecordsCountHasBeenSet = true;
181 m_failedRecordsCount = value;
182 }
185 return *this;
186 }
188
190
191 inline const Aws::String& GetRequestId() const { return m_requestId; }
192 template <typename RequestIdT = Aws::String>
193 void SetRequestId(RequestIdT&& value) {
194 m_requestIdHasBeenSet = true;
195 m_requestId = std::forward<RequestIdT>(value);
196 }
197 template <typename RequestIdT = Aws::String>
198 GetImportJobResult& WithRequestId(RequestIdT&& value) {
199 SetRequestId(std::forward<RequestIdT>(value));
200 return *this;
201 }
203 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
204
205 private:
206 Aws::String m_jobId;
207
208 ImportDestination m_importDestination;
209
210 ImportDataSource m_importDataSource;
211
212 FailureInfo m_failureInfo;
213
214 JobStatus m_jobStatus{JobStatus::NOT_SET};
215
216 Aws::Utils::DateTime m_createdTimestamp{};
217
218 Aws::Utils::DateTime m_completedTimestamp{};
219
220 int m_processedRecordsCount{0};
221
222 int m_failedRecordsCount{0};
223
224 Aws::String m_requestId;
225 Aws::Http::HttpResponseCode m_HttpResponseCode;
226 bool m_jobIdHasBeenSet = false;
227 bool m_importDestinationHasBeenSet = false;
228 bool m_importDataSourceHasBeenSet = false;
229 bool m_failureInfoHasBeenSet = false;
230 bool m_jobStatusHasBeenSet = false;
231 bool m_createdTimestampHasBeenSet = false;
232 bool m_completedTimestampHasBeenSet = false;
233 bool m_processedRecordsCountHasBeenSet = false;
234 bool m_failedRecordsCountHasBeenSet = false;
235 bool m_requestIdHasBeenSet = false;
236};
237
238} // namespace Model
239} // namespace SESV2
240} // namespace Aws
const ImportDataSource & GetImportDataSource() const
const ImportDestination & GetImportDestination() const
GetImportJobResult & WithFailedRecordsCount(int value)
void SetFailureInfo(FailureInfoT &&value)
const FailureInfo & GetFailureInfo() const
void SetImportDestination(ImportDestinationT &&value)
const Aws::String & GetRequestId() const
AWS_SESV2_API GetImportJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetCompletedTimestamp(CompletedTimestampT &&value)
GetImportJobResult & WithJobId(JobIdT &&value)
GetImportJobResult & WithCompletedTimestamp(CompletedTimestampT &&value)
AWS_SESV2_API GetImportJobResult()=default
const Aws::String & GetJobId() const
GetImportJobResult & WithImportDataSource(ImportDataSourceT &&value)
GetImportJobResult & WithFailureInfo(FailureInfoT &&value)
GetImportJobResult & WithJobStatus(JobStatus value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SESV2_API GetImportJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImportJobResult & WithRequestId(RequestIdT &&value)
GetImportJobResult & WithImportDestination(ImportDestinationT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
GetImportJobResult & WithCreatedTimestamp(CreatedTimestampT &&value)
void SetCreatedTimestamp(CreatedTimestampT &&value)
const Aws::Utils::DateTime & GetCompletedTimestamp() const
void SetImportDataSource(ImportDataSourceT &&value)
GetImportJobResult & WithProcessedRecordsCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue