AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InferenceRecommendationsJob.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/RecommendationJobType.h>
10#include <aws/sagemaker/model/RecommendationJobStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SAGEMAKER_API InferenceRecommendationsJob() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetJobName() const { return m_jobName; }
49 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
50 template<typename JobNameT = Aws::String>
51 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
52 template<typename JobNameT = Aws::String>
53 InferenceRecommendationsJob& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
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) { m_jobDescriptionHasBeenSet = true; m_jobDescription = std::forward<JobDescriptionT>(value); }
64 template<typename JobDescriptionT = Aws::String>
65 InferenceRecommendationsJob& WithJobDescription(JobDescriptionT&& value) { SetJobDescription(std::forward<JobDescriptionT>(value)); return *this;}
67
69
72 inline RecommendationJobType GetJobType() const { return m_jobType; }
73 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
74 inline void SetJobType(RecommendationJobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
77
79
82 inline const Aws::String& GetJobArn() const { return m_jobArn; }
83 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
84 template<typename JobArnT = Aws::String>
85 void SetJobArn(JobArnT&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::forward<JobArnT>(value); }
86 template<typename JobArnT = Aws::String>
87 InferenceRecommendationsJob& WithJobArn(JobArnT&& value) { SetJobArn(std::forward<JobArnT>(value)); return *this;}
89
91
94 inline RecommendationJobStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(RecommendationJobStatus value) { m_statusHasBeenSet = true; m_status = value; }
99
101
104 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
105 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
106 template<typename CreationTimeT = Aws::Utils::DateTime>
107 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
108 template<typename CreationTimeT = Aws::Utils::DateTime>
109 InferenceRecommendationsJob& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetCompletionTime() const { return m_completionTime; }
117 inline bool CompletionTimeHasBeenSet() const { return m_completionTimeHasBeenSet; }
118 template<typename CompletionTimeT = Aws::Utils::DateTime>
119 void SetCompletionTime(CompletionTimeT&& value) { m_completionTimeHasBeenSet = true; m_completionTime = std::forward<CompletionTimeT>(value); }
120 template<typename CompletionTimeT = Aws::Utils::DateTime>
121 InferenceRecommendationsJob& WithCompletionTime(CompletionTimeT&& value) { SetCompletionTime(std::forward<CompletionTimeT>(value)); return *this;}
123
125
129 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
130 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
131 template<typename RoleArnT = Aws::String>
132 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
133 template<typename RoleArnT = Aws::String>
134 InferenceRecommendationsJob& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
142 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
143 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
144 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
145 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
146 InferenceRecommendationsJob& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
148
150
153 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
154 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
155 template<typename FailureReasonT = Aws::String>
156 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
157 template<typename FailureReasonT = Aws::String>
158 InferenceRecommendationsJob& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
160
162
165 inline const Aws::String& GetModelName() const { return m_modelName; }
166 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
167 template<typename ModelNameT = Aws::String>
168 void SetModelName(ModelNameT&& value) { m_modelNameHasBeenSet = true; m_modelName = std::forward<ModelNameT>(value); }
169 template<typename ModelNameT = Aws::String>
170 InferenceRecommendationsJob& WithModelName(ModelNameT&& value) { SetModelName(std::forward<ModelNameT>(value)); return *this;}
172
174
179 inline const Aws::String& GetSamplePayloadUrl() const { return m_samplePayloadUrl; }
180 inline bool SamplePayloadUrlHasBeenSet() const { return m_samplePayloadUrlHasBeenSet; }
181 template<typename SamplePayloadUrlT = Aws::String>
182 void SetSamplePayloadUrl(SamplePayloadUrlT&& value) { m_samplePayloadUrlHasBeenSet = true; m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value); }
183 template<typename SamplePayloadUrlT = Aws::String>
184 InferenceRecommendationsJob& WithSamplePayloadUrl(SamplePayloadUrlT&& value) { SetSamplePayloadUrl(std::forward<SamplePayloadUrlT>(value)); return *this;}
186
188
191 inline const Aws::String& GetModelPackageVersionArn() const { return m_modelPackageVersionArn; }
192 inline bool ModelPackageVersionArnHasBeenSet() const { return m_modelPackageVersionArnHasBeenSet; }
193 template<typename ModelPackageVersionArnT = Aws::String>
194 void SetModelPackageVersionArn(ModelPackageVersionArnT&& value) { m_modelPackageVersionArnHasBeenSet = true; m_modelPackageVersionArn = std::forward<ModelPackageVersionArnT>(value); }
195 template<typename ModelPackageVersionArnT = Aws::String>
196 InferenceRecommendationsJob& WithModelPackageVersionArn(ModelPackageVersionArnT&& value) { SetModelPackageVersionArn(std::forward<ModelPackageVersionArnT>(value)); return *this;}
198 private:
199
200 Aws::String m_jobName;
201 bool m_jobNameHasBeenSet = false;
202
203 Aws::String m_jobDescription;
204 bool m_jobDescriptionHasBeenSet = false;
205
207 bool m_jobTypeHasBeenSet = false;
208
209 Aws::String m_jobArn;
210 bool m_jobArnHasBeenSet = false;
211
213 bool m_statusHasBeenSet = false;
214
215 Aws::Utils::DateTime m_creationTime{};
216 bool m_creationTimeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_completionTime{};
219 bool m_completionTimeHasBeenSet = false;
220
221 Aws::String m_roleArn;
222 bool m_roleArnHasBeenSet = false;
223
224 Aws::Utils::DateTime m_lastModifiedTime{};
225 bool m_lastModifiedTimeHasBeenSet = false;
226
227 Aws::String m_failureReason;
228 bool m_failureReasonHasBeenSet = false;
229
230 Aws::String m_modelName;
231 bool m_modelNameHasBeenSet = false;
232
233 Aws::String m_samplePayloadUrl;
234 bool m_samplePayloadUrlHasBeenSet = false;
235
236 Aws::String m_modelPackageVersionArn;
237 bool m_modelPackageVersionArnHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace SageMaker
242} // 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