AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DatasetImportJobSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/ImportMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Personalize {
22namespace Model {
23
33 public:
34 AWS_PERSONALIZE_API DatasetImportJobSummary() = default;
37 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDatasetImportJobArn() const { return m_datasetImportJobArn; }
44 inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; }
45 template <typename DatasetImportJobArnT = Aws::String>
46 void SetDatasetImportJobArn(DatasetImportJobArnT&& value) {
47 m_datasetImportJobArnHasBeenSet = true;
48 m_datasetImportJobArn = std::forward<DatasetImportJobArnT>(value);
49 }
50 template <typename DatasetImportJobArnT = Aws::String>
51 DatasetImportJobSummary& WithDatasetImportJobArn(DatasetImportJobArnT&& value) {
52 SetDatasetImportJobArn(std::forward<DatasetImportJobArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetJobName() const { return m_jobName; }
62 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
63 template <typename JobNameT = Aws::String>
64 void SetJobName(JobNameT&& value) {
65 m_jobNameHasBeenSet = true;
66 m_jobName = std::forward<JobNameT>(value);
67 }
68 template <typename JobNameT = Aws::String>
70 SetJobName(std::forward<JobNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template <typename StatusT = Aws::String>
84 void SetStatus(StatusT&& value) {
85 m_statusHasBeenSet = true;
86 m_status = std::forward<StatusT>(value);
87 }
88 template <typename StatusT = Aws::String>
90 SetStatus(std::forward<StatusT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
100 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
101 template <typename CreationDateTimeT = Aws::Utils::DateTime>
102 void SetCreationDateTime(CreationDateTimeT&& value) {
103 m_creationDateTimeHasBeenSet = true;
104 m_creationDateTime = std::forward<CreationDateTimeT>(value);
105 }
106 template <typename CreationDateTimeT = Aws::Utils::DateTime>
107 DatasetImportJobSummary& WithCreationDateTime(CreationDateTimeT&& value) {
108 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
119 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
120 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
121 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
122 m_lastUpdatedDateTimeHasBeenSet = true;
123 m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value);
124 }
125 template <typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
126 DatasetImportJobSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) {
127 SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
137 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
138 template <typename FailureReasonT = Aws::String>
139 void SetFailureReason(FailureReasonT&& value) {
140 m_failureReasonHasBeenSet = true;
141 m_failureReason = std::forward<FailureReasonT>(value);
142 }
143 template <typename FailureReasonT = Aws::String>
145 SetFailureReason(std::forward<FailureReasonT>(value));
146 return *this;
147 }
149
151
157 inline ImportMode GetImportMode() const { return m_importMode; }
158 inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
159 inline void SetImportMode(ImportMode value) {
160 m_importModeHasBeenSet = true;
161 m_importMode = value;
162 }
164 SetImportMode(value);
165 return *this;
166 }
168 private:
169 Aws::String m_datasetImportJobArn;
170
171 Aws::String m_jobName;
172
173 Aws::String m_status;
174
175 Aws::Utils::DateTime m_creationDateTime{};
176
177 Aws::Utils::DateTime m_lastUpdatedDateTime{};
178
179 Aws::String m_failureReason;
180
181 ImportMode m_importMode{ImportMode::NOT_SET};
182 bool m_datasetImportJobArnHasBeenSet = false;
183 bool m_jobNameHasBeenSet = false;
184 bool m_statusHasBeenSet = false;
185 bool m_creationDateTimeHasBeenSet = false;
186 bool m_lastUpdatedDateTimeHasBeenSet = false;
187 bool m_failureReasonHasBeenSet = false;
188 bool m_importModeHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Personalize
193} // namespace Aws
AWS_PERSONALIZE_API DatasetImportJobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DatasetImportJobSummary & WithFailureReason(FailureReasonT &&value)
DatasetImportJobSummary & WithImportMode(ImportMode value)
AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const
DatasetImportJobSummary & WithJobName(JobNameT &&value)
AWS_PERSONALIZE_API DatasetImportJobSummary(Aws::Utils::Json::JsonView jsonValue)
DatasetImportJobSummary & WithCreationDateTime(CreationDateTimeT &&value)
void SetLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
void SetDatasetImportJobArn(DatasetImportJobArnT &&value)
DatasetImportJobSummary & WithStatus(StatusT &&value)
const Aws::Utils::DateTime & GetLastUpdatedDateTime() const
const Aws::Utils::DateTime & GetCreationDateTime() const
DatasetImportJobSummary & WithLastUpdatedDateTime(LastUpdatedDateTimeT &&value)
AWS_PERSONALIZE_API DatasetImportJobSummary()=default
DatasetImportJobSummary & WithDatasetImportJobArn(DatasetImportJobArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue