AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InferenceRecommendationsJob.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/RecommendationJobStatus.h>
11#include <aws/sagemaker/model/RecommendationJobType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKER_API InferenceRecommendationsJob() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetJobName() const { return m_jobName; }
43 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
44 template <typename JobNameT = Aws::String>
45 void SetJobName(JobNameT&& value) {
46 m_jobNameHasBeenSet = true;
47 m_jobName = std::forward<JobNameT>(value);
48 }
49 template <typename JobNameT = Aws::String>
51 SetJobName(std::forward<JobNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetJobDescription() const { return m_jobDescription; }
61 inline bool JobDescriptionHasBeenSet() const { return m_jobDescriptionHasBeenSet; }
62 template <typename JobDescriptionT = Aws::String>
63 void SetJobDescription(JobDescriptionT&& value) {
64 m_jobDescriptionHasBeenSet = true;
65 m_jobDescription = std::forward<JobDescriptionT>(value);
66 }
67 template <typename JobDescriptionT = Aws::String>
69 SetJobDescription(std::forward<JobDescriptionT>(value));
70 return *this;
71 }
73
75
78 inline RecommendationJobType GetJobType() const { return m_jobType; }
79 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
80 inline void SetJobType(RecommendationJobType value) {
81 m_jobTypeHasBeenSet = true;
82 m_jobType = value;
83 }
85 SetJobType(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetJobArn() const { return m_jobArn; }
95 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
96 template <typename JobArnT = Aws::String>
97 void SetJobArn(JobArnT&& value) {
98 m_jobArnHasBeenSet = true;
99 m_jobArn = std::forward<JobArnT>(value);
100 }
101 template <typename JobArnT = Aws::String>
103 SetJobArn(std::forward<JobArnT>(value));
104 return *this;
105 }
107
109
112 inline RecommendationJobStatus GetStatus() const { return m_status; }
113 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
129 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
130 template <typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) {
132 m_creationTimeHasBeenSet = true;
133 m_creationTime = std::forward<CreationTimeT>(value);
134 }
135 template <typename CreationTimeT = Aws::Utils::DateTime>
137 SetCreationTime(std::forward<CreationTimeT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
147 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
148 template <typename CompletionTimeT = Aws::Utils::DateTime>
149 void SetCompletionTime(CompletionTimeT&& value) {
150 m_completionTimeHasBeenSet = true;
151 m_completionTime = std::forward<CompletionTimeT>(value);
152 }
153 template <typename CompletionTimeT = Aws::Utils::DateTime>
155 SetCompletionTime(std::forward<CompletionTimeT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
166 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
167 template <typename RoleArnT = Aws::String>
168 void SetRoleArn(RoleArnT&& value) {
169 m_roleArnHasBeenSet = true;
170 m_roleArn = std::forward<RoleArnT>(value);
171 }
172 template <typename RoleArnT = Aws::String>
174 SetRoleArn(std::forward<RoleArnT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
184 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
185 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
186 void SetLastModifiedTime(LastModifiedTimeT&& value) {
187 m_lastModifiedTimeHasBeenSet = true;
188 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
189 }
190 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
192 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
202 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
203 template <typename FailureReasonT = Aws::String>
204 void SetFailureReason(FailureReasonT&& value) {
205 m_failureReasonHasBeenSet = true;
206 m_failureReason = std::forward<FailureReasonT>(value);
207 }
208 template <typename FailureReasonT = Aws::String>
210 SetFailureReason(std::forward<FailureReasonT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetModelName() const { return m_modelName; }
220 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
221 template <typename ModelNameT = Aws::String>
222 void SetModelName(ModelNameT&& value) {
223 m_modelNameHasBeenSet = true;
224 m_modelName = std::forward<ModelNameT>(value);
225 }
226 template <typename ModelNameT = Aws::String>
228 SetModelName(std::forward<ModelNameT>(value));
229 return *this;
230 }
232
234
239 inline const Aws::String& GetSamplePayloadUrl() const { return m_samplePayloadUrl; }
240 inline bool SamplePayloadUrlHasBeenSet() const { return m_samplePayloadUrlHasBeenSet; }
241 template <typename SamplePayloadUrlT = Aws::String>
242 void SetSamplePayloadUrl(SamplePayloadUrlT&& value) {
243 m_samplePayloadUrlHasBeenSet = true;
244 m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value);
245 }
246 template <typename SamplePayloadUrlT = Aws::String>
248 SetSamplePayloadUrl(std::forward<SamplePayloadUrlT>(value));
249 return *this;
250 }
252
254
257 inline const Aws::String& GetModelPackageVersionArn() const { return m_modelPackageVersionArn; }
258 inline bool ModelPackageVersionArnHasBeenSet() const { return m_modelPackageVersionArnHasBeenSet; }
259 template <typename ModelPackageVersionArnT = Aws::String>
260 void SetModelPackageVersionArn(ModelPackageVersionArnT&& value) {
261 m_modelPackageVersionArnHasBeenSet = true;
262 m_modelPackageVersionArn = std::forward<ModelPackageVersionArnT>(value);
263 }
264 template <typename ModelPackageVersionArnT = Aws::String>
265 InferenceRecommendationsJob& WithModelPackageVersionArn(ModelPackageVersionArnT&& value) {
266 SetModelPackageVersionArn(std::forward<ModelPackageVersionArnT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_jobName;
272
273 Aws::String m_jobDescription;
274
276
277 Aws::String m_jobArn;
278
280
281 Aws::Utils::DateTime m_creationTime{};
282
283 Aws::Utils::DateTime m_completionTime{};
284
285 Aws::String m_roleArn;
286
287 Aws::Utils::DateTime m_lastModifiedTime{};
288
289 Aws::String m_failureReason;
290
291 Aws::String m_modelName;
292
293 Aws::String m_samplePayloadUrl;
294
295 Aws::String m_modelPackageVersionArn;
296 bool m_jobNameHasBeenSet = false;
297 bool m_jobDescriptionHasBeenSet = false;
298 bool m_jobTypeHasBeenSet = false;
299 bool m_jobArnHasBeenSet = false;
300 bool m_statusHasBeenSet = false;
301 bool m_creationTimeHasBeenSet = false;
302 bool m_completionTimeHasBeenSet = false;
303 bool m_roleArnHasBeenSet = false;
304 bool m_lastModifiedTimeHasBeenSet = false;
305 bool m_failureReasonHasBeenSet = false;
306 bool m_modelNameHasBeenSet = false;
307 bool m_samplePayloadUrlHasBeenSet = false;
308 bool m_modelPackageVersionArnHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace SageMaker
313} // namespace Aws
InferenceRecommendationsJob & WithSamplePayloadUrl(SamplePayloadUrlT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceRecommendationsJob & WithJobDescription(JobDescriptionT &&value)
AWS_SAGEMAKER_API InferenceRecommendationsJob(Aws::Utils::Json::JsonView jsonValue)
InferenceRecommendationsJob & WithStatus(RecommendationJobStatus value)
InferenceRecommendationsJob & WithCompletionTime(CompletionTimeT &&value)
InferenceRecommendationsJob & WithCreationTime(CreationTimeT &&value)
InferenceRecommendationsJob & WithModelName(ModelNameT &&value)
InferenceRecommendationsJob & WithJobType(RecommendationJobType value)
InferenceRecommendationsJob & WithRoleArn(RoleArnT &&value)
InferenceRecommendationsJob & WithJobArn(JobArnT &&value)
InferenceRecommendationsJob & WithFailureReason(FailureReasonT &&value)
AWS_SAGEMAKER_API InferenceRecommendationsJob & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceRecommendationsJob & WithJobName(JobNameT &&value)
void SetModelPackageVersionArn(ModelPackageVersionArnT &&value)
InferenceRecommendationsJob & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API InferenceRecommendationsJob()=default
InferenceRecommendationsJob & WithModelPackageVersionArn(ModelPackageVersionArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue