AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DatasetImportJobSummary.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/personalize/model/ImportMode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Personalize
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_PERSONALIZE_API DatasetImportJobSummary() = default;
42 AWS_PERSONALIZE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDatasetImportJobArn() const { return m_datasetImportJobArn; }
50 inline bool DatasetImportJobArnHasBeenSet() const { return m_datasetImportJobArnHasBeenSet; }
51 template<typename DatasetImportJobArnT = Aws::String>
52 void SetDatasetImportJobArn(DatasetImportJobArnT&& value) { m_datasetImportJobArnHasBeenSet = true; m_datasetImportJobArn = std::forward<DatasetImportJobArnT>(value); }
53 template<typename DatasetImportJobArnT = Aws::String>
54 DatasetImportJobSummary& WithDatasetImportJobArn(DatasetImportJobArnT&& value) { SetDatasetImportJobArn(std::forward<DatasetImportJobArnT>(value)); return *this;}
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) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
65 template<typename JobNameT = Aws::String>
66 DatasetImportJobSummary& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
68
70
75 inline const Aws::String& GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 template<typename StatusT = Aws::String>
78 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
79 template<typename StatusT = Aws::String>
80 DatasetImportJobSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
88 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
89 template<typename CreationDateTimeT = Aws::Utils::DateTime>
90 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
91 template<typename CreationDateTimeT = Aws::Utils::DateTime>
92 DatasetImportJobSummary& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
94
96
100 inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const { return m_lastUpdatedDateTime; }
101 inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
102 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
103 void SetLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::forward<LastUpdatedDateTimeT>(value); }
104 template<typename LastUpdatedDateTimeT = Aws::Utils::DateTime>
105 DatasetImportJobSummary& WithLastUpdatedDateTime(LastUpdatedDateTimeT&& value) { SetLastUpdatedDateTime(std::forward<LastUpdatedDateTimeT>(value)); return *this;}
107
109
112 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
113 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
114 template<typename FailureReasonT = Aws::String>
115 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
116 template<typename FailureReasonT = Aws::String>
117 DatasetImportJobSummary& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
119
121
127 inline ImportMode GetImportMode() const { return m_importMode; }
128 inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
129 inline void SetImportMode(ImportMode value) { m_importModeHasBeenSet = true; m_importMode = value; }
130 inline DatasetImportJobSummary& WithImportMode(ImportMode value) { SetImportMode(value); return *this;}
132 private:
133
134 Aws::String m_datasetImportJobArn;
135 bool m_datasetImportJobArnHasBeenSet = false;
136
137 Aws::String m_jobName;
138 bool m_jobNameHasBeenSet = false;
139
140 Aws::String m_status;
141 bool m_statusHasBeenSet = false;
142
143 Aws::Utils::DateTime m_creationDateTime{};
144 bool m_creationDateTimeHasBeenSet = false;
145
146 Aws::Utils::DateTime m_lastUpdatedDateTime{};
147 bool m_lastUpdatedDateTimeHasBeenSet = false;
148
149 Aws::String m_failureReason;
150 bool m_failureReasonHasBeenSet = false;
151
152 ImportMode m_importMode{ImportMode::NOT_SET};
153 bool m_importModeHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace Personalize
158} // 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