AWS SDK for C++

AWS SDK for C++ Version 1.11.835

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/JobCategory.h>
11#include <aws/sagemaker/model/JobSecondaryStatus.h>
12#include <aws/sagemaker/model/JobStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
34 public:
35 AWS_SAGEMAKER_API JobSummary() = default;
36 AWS_SAGEMAKER_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API JobSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobArn() const { return m_jobArn; }
45 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
46 template <typename JobArnT = Aws::String>
47 void SetJobArn(JobArnT&& value) {
48 m_jobArnHasBeenSet = true;
49 m_jobArn = std::forward<JobArnT>(value);
50 }
51 template <typename JobArnT = Aws::String>
52 JobSummary& WithJobArn(JobArnT&& value) {
53 SetJobArn(std::forward<JobArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetJobName() const { return m_jobName; }
63 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
64 template <typename JobNameT = Aws::String>
65 void SetJobName(JobNameT&& value) {
66 m_jobNameHasBeenSet = true;
67 m_jobName = std::forward<JobNameT>(value);
68 }
69 template <typename JobNameT = Aws::String>
70 JobSummary& WithJobName(JobNameT&& value) {
71 SetJobName(std::forward<JobNameT>(value));
72 return *this;
73 }
75
77
80 inline JobCategory GetJobCategory() const { return m_jobCategory; }
81 inline bool JobCategoryHasBeenSet() const { return m_jobCategoryHasBeenSet; }
82 inline void SetJobCategory(JobCategory value) {
83 m_jobCategoryHasBeenSet = true;
84 m_jobCategory = value;
85 }
87 SetJobCategory(value);
88 return *this;
89 }
91
93
96 inline JobStatus GetJobStatus() const { return m_jobStatus; }
97 inline bool JobStatusHasBeenSet() const { return m_jobStatusHasBeenSet; }
98 inline void SetJobStatus(JobStatus value) {
99 m_jobStatusHasBeenSet = true;
100 m_jobStatus = value;
101 }
103 SetJobStatus(value);
104 return *this;
105 }
107
109
113 inline JobSecondaryStatus GetJobSecondaryStatus() const { return m_jobSecondaryStatus; }
114 inline bool JobSecondaryStatusHasBeenSet() const { return m_jobSecondaryStatusHasBeenSet; }
116 m_jobSecondaryStatusHasBeenSet = true;
117 m_jobSecondaryStatus = value;
118 }
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
130 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
131 template <typename CreationTimeT = Aws::Utils::DateTime>
132 void SetCreationTime(CreationTimeT&& value) {
133 m_creationTimeHasBeenSet = true;
134 m_creationTime = std::forward<CreationTimeT>(value);
135 }
136 template <typename CreationTimeT = Aws::Utils::DateTime>
137 JobSummary& WithCreationTime(CreationTimeT&& value) {
138 SetCreationTime(std::forward<CreationTimeT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
148 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
149 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
150 void SetLastModifiedTime(LastModifiedTimeT&& value) {
151 m_lastModifiedTimeHasBeenSet = true;
152 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
153 }
154 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
155 JobSummary& WithLastModifiedTime(LastModifiedTimeT&& value) {
156 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
166 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
167 template <typename EndTimeT = Aws::Utils::DateTime>
168 void SetEndTime(EndTimeT&& value) {
169 m_endTimeHasBeenSet = true;
170 m_endTime = std::forward<EndTimeT>(value);
171 }
172 template <typename EndTimeT = Aws::Utils::DateTime>
173 JobSummary& WithEndTime(EndTimeT&& value) {
174 SetEndTime(std::forward<EndTimeT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_jobArn;
180
181 Aws::String m_jobName;
182
183 JobCategory m_jobCategory{JobCategory::NOT_SET};
184
185 JobStatus m_jobStatus{JobStatus::NOT_SET};
186
188
189 Aws::Utils::DateTime m_creationTime{};
190
191 Aws::Utils::DateTime m_lastModifiedTime{};
192
193 Aws::Utils::DateTime m_endTime{};
194 bool m_jobArnHasBeenSet = false;
195 bool m_jobNameHasBeenSet = false;
196 bool m_jobCategoryHasBeenSet = false;
197 bool m_jobStatusHasBeenSet = false;
198 bool m_jobSecondaryStatusHasBeenSet = false;
199 bool m_creationTimeHasBeenSet = false;
200 bool m_lastModifiedTimeHasBeenSet = false;
201 bool m_endTimeHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace SageMaker
206} // namespace Aws
AWS_SAGEMAKER_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
void SetJobSecondaryStatus(JobSecondaryStatus value)
Definition JobSummary.h:115
void SetJobStatus(JobStatus value)
Definition JobSummary.h:98
AWS_SAGEMAKER_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJobCategory(JobCategory value)
Definition JobSummary.h:82
JobSummary & WithJobCategory(JobCategory value)
Definition JobSummary.h:86
const Aws::String & GetJobArn() const
Definition JobSummary.h:44
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition JobSummary.h:147
const Aws::Utils::DateTime & GetCreationTime() const
Definition JobSummary.h:129
AWS_SAGEMAKER_API JobSummary()=default
JobSummary & WithJobStatus(JobStatus value)
Definition JobSummary.h:102
JobCategory GetJobCategory() const
Definition JobSummary.h:80
JobSummary & WithJobName(JobNameT &&value)
Definition JobSummary.h:70
JobSummary & WithJobArn(JobArnT &&value)
Definition JobSummary.h:52
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithEndTime(EndTimeT &&value)
Definition JobSummary.h:173
JobSummary & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition JobSummary.h:155
void SetJobName(JobNameT &&value)
Definition JobSummary.h:65
void SetEndTime(EndTimeT &&value)
Definition JobSummary.h:168
const Aws::String & GetJobName() const
Definition JobSummary.h:62
JobSummary & WithJobSecondaryStatus(JobSecondaryStatus value)
Definition JobSummary.h:119
JobSummary & WithCreationTime(CreationTimeT &&value)
Definition JobSummary.h:137
JobSecondaryStatus GetJobSecondaryStatus() const
Definition JobSummary.h:113
const Aws::Utils::DateTime & GetEndTime() const
Definition JobSummary.h:165
void SetJobArn(JobArnT &&value)
Definition JobSummary.h:47
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition JobSummary.h:150
void SetCreationTime(CreationTimeT &&value)
Definition JobSummary.h:132
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue