AWS SDK for C++

AWS SDK for C++ Version 1.11.922

Loading...
Searching...
No Matches
TrainingSessionDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/BillableTokenUsage.h>
12#include <aws/sagemaker/model/LoraConfig.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <aws/sagemaker/model/TrainingSessionModelConfig.h>
15#include <aws/sagemaker/model/TrainingSessionOutputConfig.h>
16#include <aws/sagemaker/model/TrainingSessionStatus.h>
17#include <aws/sagemaker/model/VpcConfig.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker {
29namespace Model {
30
38 public:
39 AWS_SAGEMAKER_API TrainingSessionDetail() = default;
42 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetTrainingSessionArn() const { return m_trainingSessionArn; }
49 inline bool TrainingSessionArnHasBeenSet() const { return m_trainingSessionArnHasBeenSet; }
50 template <typename TrainingSessionArnT = Aws::String>
51 void SetTrainingSessionArn(TrainingSessionArnT&& value) {
52 m_trainingSessionArnHasBeenSet = true;
53 m_trainingSessionArn = std::forward<TrainingSessionArnT>(value);
54 }
55 template <typename TrainingSessionArnT = Aws::String>
56 TrainingSessionDetail& WithTrainingSessionArn(TrainingSessionArnT&& value) {
57 SetTrainingSessionArn(std::forward<TrainingSessionArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetTrainingSessionName() const { return m_trainingSessionName; }
67 inline bool TrainingSessionNameHasBeenSet() const { return m_trainingSessionNameHasBeenSet; }
68 template <typename TrainingSessionNameT = Aws::String>
69 void SetTrainingSessionName(TrainingSessionNameT&& value) {
70 m_trainingSessionNameHasBeenSet = true;
71 m_trainingSessionName = std::forward<TrainingSessionNameT>(value);
72 }
73 template <typename TrainingSessionNameT = Aws::String>
74 TrainingSessionDetail& WithTrainingSessionName(TrainingSessionNameT&& value) {
75 SetTrainingSessionName(std::forward<TrainingSessionNameT>(value));
76 return *this;
77 }
79
81
84 inline TrainingSessionStatus GetTrainingSessionStatus() const { return m_trainingSessionStatus; }
85 inline bool TrainingSessionStatusHasBeenSet() const { return m_trainingSessionStatusHasBeenSet; }
87 m_trainingSessionStatusHasBeenSet = true;
88 m_trainingSessionStatus = value;
89 }
92 return *this;
93 }
95
97
101 inline const Aws::String& GetModelPackageGroupArn() const { return m_modelPackageGroupArn; }
102 inline bool ModelPackageGroupArnHasBeenSet() const { return m_modelPackageGroupArnHasBeenSet; }
103 template <typename ModelPackageGroupArnT = Aws::String>
104 void SetModelPackageGroupArn(ModelPackageGroupArnT&& value) {
105 m_modelPackageGroupArnHasBeenSet = true;
106 m_modelPackageGroupArn = std::forward<ModelPackageGroupArnT>(value);
107 }
108 template <typename ModelPackageGroupArnT = Aws::String>
109 TrainingSessionDetail& WithModelPackageGroupArn(ModelPackageGroupArnT&& value) {
110 SetModelPackageGroupArn(std::forward<ModelPackageGroupArnT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
120 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
121 template <typename CreationTimeT = Aws::Utils::DateTime>
122 void SetCreationTime(CreationTimeT&& value) {
123 m_creationTimeHasBeenSet = true;
124 m_creationTime = std::forward<CreationTimeT>(value);
125 }
126 template <typename CreationTimeT = Aws::Utils::DateTime>
127 TrainingSessionDetail& WithCreationTime(CreationTimeT&& value) {
128 SetCreationTime(std::forward<CreationTimeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
138 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
139 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 void SetLastModifiedTime(LastModifiedTimeT&& value) {
141 m_lastModifiedTimeHasBeenSet = true;
142 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
143 }
144 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
145 TrainingSessionDetail& WithLastModifiedTime(LastModifiedTimeT&& value) {
146 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
156 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
157 template <typename EndTimeT = Aws::Utils::DateTime>
158 void SetEndTime(EndTimeT&& value) {
159 m_endTimeHasBeenSet = true;
160 m_endTime = std::forward<EndTimeT>(value);
161 }
162 template <typename EndTimeT = Aws::Utils::DateTime>
164 SetEndTime(std::forward<EndTimeT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetErrorDetails() const { return m_errorDetails; }
174 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
175 template <typename ErrorDetailsT = Aws::String>
176 void SetErrorDetails(ErrorDetailsT&& value) {
177 m_errorDetailsHasBeenSet = true;
178 m_errorDetails = std::forward<ErrorDetailsT>(value);
179 }
180 template <typename ErrorDetailsT = Aws::String>
181 TrainingSessionDetail& WithErrorDetails(ErrorDetailsT&& value) {
182 SetErrorDetails(std::forward<ErrorDetailsT>(value));
183 return *this;
184 }
186
188
192 inline int GetLastReceivedSequenceNumber() const { return m_lastReceivedSequenceNumber; }
193 inline bool LastReceivedSequenceNumberHasBeenSet() const { return m_lastReceivedSequenceNumberHasBeenSet; }
194 inline void SetLastReceivedSequenceNumber(int value) {
195 m_lastReceivedSequenceNumberHasBeenSet = true;
196 m_lastReceivedSequenceNumber = value;
197 }
200 return *this;
201 }
203
205
208 inline const BillableTokenUsage& GetBillableTokenUsage() const { return m_billableTokenUsage; }
209 inline bool BillableTokenUsageHasBeenSet() const { return m_billableTokenUsageHasBeenSet; }
210 template <typename BillableTokenUsageT = BillableTokenUsage>
211 void SetBillableTokenUsage(BillableTokenUsageT&& value) {
212 m_billableTokenUsageHasBeenSet = true;
213 m_billableTokenUsage = std::forward<BillableTokenUsageT>(value);
214 }
215 template <typename BillableTokenUsageT = BillableTokenUsage>
216 TrainingSessionDetail& WithBillableTokenUsage(BillableTokenUsageT&& value) {
217 SetBillableTokenUsage(std::forward<BillableTokenUsageT>(value));
218 return *this;
219 }
221
223
226 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
227 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
228 template <typename VpcConfigT = VpcConfig>
229 void SetVpcConfig(VpcConfigT&& value) {
230 m_vpcConfigHasBeenSet = true;
231 m_vpcConfig = std::forward<VpcConfigT>(value);
232 }
233 template <typename VpcConfigT = VpcConfig>
235 SetVpcConfig(std::forward<VpcConfigT>(value));
236 return *this;
237 }
239
241
245 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
246 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
247 template <typename RoleArnT = Aws::String>
248 void SetRoleArn(RoleArnT&& value) {
249 m_roleArnHasBeenSet = true;
250 m_roleArn = std::forward<RoleArnT>(value);
251 }
252 template <typename RoleArnT = Aws::String>
254 SetRoleArn(std::forward<RoleArnT>(value));
255 return *this;
256 }
258
260
263 inline const LoraConfig& GetLoraConfig() const { return m_loraConfig; }
264 inline bool LoraConfigHasBeenSet() const { return m_loraConfigHasBeenSet; }
265 template <typename LoraConfigT = LoraConfig>
266 void SetLoraConfig(LoraConfigT&& value) {
267 m_loraConfigHasBeenSet = true;
268 m_loraConfig = std::forward<LoraConfigT>(value);
269 }
270 template <typename LoraConfigT = LoraConfig>
271 TrainingSessionDetail& WithLoraConfig(LoraConfigT&& value) {
272 SetLoraConfig(std::forward<LoraConfigT>(value));
273 return *this;
274 }
276
278
281 inline const TrainingSessionModelConfig& GetModelConfig() const { return m_modelConfig; }
282 inline bool ModelConfigHasBeenSet() const { return m_modelConfigHasBeenSet; }
283 template <typename ModelConfigT = TrainingSessionModelConfig>
284 void SetModelConfig(ModelConfigT&& value) {
285 m_modelConfigHasBeenSet = true;
286 m_modelConfig = std::forward<ModelConfigT>(value);
287 }
288 template <typename ModelConfigT = TrainingSessionModelConfig>
289 TrainingSessionDetail& WithModelConfig(ModelConfigT&& value) {
290 SetModelConfig(std::forward<ModelConfigT>(value));
291 return *this;
292 }
294
296
299 inline const TrainingSessionOutputConfig& GetOutputConfig() const { return m_outputConfig; }
300 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
301 template <typename OutputConfigT = TrainingSessionOutputConfig>
302 void SetOutputConfig(OutputConfigT&& value) {
303 m_outputConfigHasBeenSet = true;
304 m_outputConfig = std::forward<OutputConfigT>(value);
305 }
306 template <typename OutputConfigT = TrainingSessionOutputConfig>
307 TrainingSessionDetail& WithOutputConfig(OutputConfigT&& value) {
308 SetOutputConfig(std::forward<OutputConfigT>(value));
309 return *this;
310 }
312
314
317 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
318 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
319 template <typename TagsT = Aws::Vector<Tag>>
320 void SetTags(TagsT&& value) {
321 m_tagsHasBeenSet = true;
322 m_tags = std::forward<TagsT>(value);
323 }
324 template <typename TagsT = Aws::Vector<Tag>>
326 SetTags(std::forward<TagsT>(value));
327 return *this;
328 }
329 template <typename TagsT = Tag>
331 m_tagsHasBeenSet = true;
332 m_tags.emplace_back(std::forward<TagsT>(value));
333 return *this;
334 }
336 private:
337 Aws::String m_trainingSessionArn;
338
339 Aws::String m_trainingSessionName;
340
342
343 Aws::String m_modelPackageGroupArn;
344
345 Aws::Utils::DateTime m_creationTime{};
346
347 Aws::Utils::DateTime m_lastModifiedTime{};
348
349 Aws::Utils::DateTime m_endTime{};
350
351 Aws::String m_errorDetails;
352
353 int m_lastReceivedSequenceNumber{0};
354
355 BillableTokenUsage m_billableTokenUsage;
356
357 VpcConfig m_vpcConfig;
358
359 Aws::String m_roleArn;
360
361 LoraConfig m_loraConfig;
362
363 TrainingSessionModelConfig m_modelConfig;
364
365 TrainingSessionOutputConfig m_outputConfig;
366
367 Aws::Vector<Tag> m_tags;
368 bool m_trainingSessionArnHasBeenSet = false;
369 bool m_trainingSessionNameHasBeenSet = false;
370 bool m_trainingSessionStatusHasBeenSet = false;
371 bool m_modelPackageGroupArnHasBeenSet = false;
372 bool m_creationTimeHasBeenSet = false;
373 bool m_lastModifiedTimeHasBeenSet = false;
374 bool m_endTimeHasBeenSet = false;
375 bool m_errorDetailsHasBeenSet = false;
376 bool m_lastReceivedSequenceNumberHasBeenSet = false;
377 bool m_billableTokenUsageHasBeenSet = false;
378 bool m_vpcConfigHasBeenSet = false;
379 bool m_roleArnHasBeenSet = false;
380 bool m_loraConfigHasBeenSet = false;
381 bool m_modelConfigHasBeenSet = false;
382 bool m_outputConfigHasBeenSet = false;
383 bool m_tagsHasBeenSet = false;
384};
385
386} // namespace Model
387} // namespace SageMaker
388} // namespace Aws
TrainingSessionDetail & WithTags(TagsT &&value)
TrainingSessionDetail & WithBillableTokenUsage(BillableTokenUsageT &&value)
TrainingSessionDetail & WithTrainingSessionArn(TrainingSessionArnT &&value)
TrainingSessionDetail & WithLastReceivedSequenceNumber(int value)
void SetTrainingSessionStatus(TrainingSessionStatus value)
TrainingSessionDetail & WithRoleArn(RoleArnT &&value)
TrainingSessionDetail & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API TrainingSessionDetail()=default
TrainingSessionDetail & WithLoraConfig(LoraConfigT &&value)
TrainingSessionDetail & WithVpcConfig(VpcConfigT &&value)
AWS_SAGEMAKER_API TrainingSessionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API TrainingSessionDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
void SetTrainingSessionArn(TrainingSessionArnT &&value)
const TrainingSessionOutputConfig & GetOutputConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingSessionDetail & AddTags(TagsT &&value)
void SetTrainingSessionName(TrainingSessionNameT &&value)
const BillableTokenUsage & GetBillableTokenUsage() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
TrainingSessionDetail & WithTrainingSessionName(TrainingSessionNameT &&value)
void SetBillableTokenUsage(BillableTokenUsageT &&value)
TrainingSessionDetail & WithModelConfig(ModelConfigT &&value)
const TrainingSessionModelConfig & GetModelConfig() const
const Aws::Utils::DateTime & GetEndTime() const
TrainingSessionDetail & WithModelPackageGroupArn(ModelPackageGroupArnT &&value)
TrainingSessionDetail & WithOutputConfig(OutputConfigT &&value)
TrainingSessionDetail & WithEndTime(EndTimeT &&value)
TrainingSessionDetail & WithCreationTime(CreationTimeT &&value)
void SetModelPackageGroupArn(ModelPackageGroupArnT &&value)
TrainingSessionStatus GetTrainingSessionStatus() const
TrainingSessionDetail & WithErrorDetails(ErrorDetailsT &&value)
TrainingSessionDetail & WithTrainingSessionStatus(TrainingSessionStatus value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue