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>
50 template <
typename TrainingSessionArnT = Aws::String>
52 m_trainingSessionArnHasBeenSet =
true;
53 m_trainingSessionArn = std::forward<TrainingSessionArnT>(value);
55 template <
typename TrainingSessionArnT = Aws::String>
68 template <
typename TrainingSessionNameT = Aws::String>
70 m_trainingSessionNameHasBeenSet =
true;
71 m_trainingSessionName = std::forward<TrainingSessionNameT>(value);
73 template <
typename TrainingSessionNameT = Aws::String>
87 m_trainingSessionStatusHasBeenSet =
true;
88 m_trainingSessionStatus = value;
103 template <
typename ModelPackageGroupArnT = Aws::String>
105 m_modelPackageGroupArnHasBeenSet =
true;
106 m_modelPackageGroupArn = std::forward<ModelPackageGroupArnT>(value);
108 template <
typename ModelPackageGroupArnT = Aws::String>
121 template <
typename CreationTimeT = Aws::Utils::DateTime>
123 m_creationTimeHasBeenSet =
true;
124 m_creationTime = std::forward<CreationTimeT>(value);
126 template <
typename CreationTimeT = Aws::Utils::DateTime>
139 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
141 m_lastModifiedTimeHasBeenSet =
true;
142 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
144 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
157 template <
typename EndTimeT = Aws::Utils::DateTime>
159 m_endTimeHasBeenSet =
true;
160 m_endTime = std::forward<EndTimeT>(value);
162 template <
typename EndTimeT = Aws::Utils::DateTime>
175 template <
typename ErrorDetailsT = Aws::String>
177 m_errorDetailsHasBeenSet =
true;
178 m_errorDetails = std::forward<ErrorDetailsT>(value);
180 template <
typename ErrorDetailsT = Aws::String>
195 m_lastReceivedSequenceNumberHasBeenSet =
true;
196 m_lastReceivedSequenceNumber = value;
210 template <
typename BillableTokenUsageT = BillableTokenUsage>
212 m_billableTokenUsageHasBeenSet =
true;
213 m_billableTokenUsage = std::forward<BillableTokenUsageT>(value);
215 template <
typename BillableTokenUsageT = BillableTokenUsage>
228 template <
typename VpcConfigT = VpcConfig>
230 m_vpcConfigHasBeenSet =
true;
231 m_vpcConfig = std::forward<VpcConfigT>(value);
233 template <
typename VpcConfigT = VpcConfig>
247 template <
typename RoleArnT = Aws::String>
249 m_roleArnHasBeenSet =
true;
250 m_roleArn = std::forward<RoleArnT>(value);
252 template <
typename RoleArnT = Aws::String>
265 template <
typename LoraConfigT = LoraConfig>
267 m_loraConfigHasBeenSet =
true;
268 m_loraConfig = std::forward<LoraConfigT>(value);
270 template <
typename LoraConfigT = LoraConfig>
283 template <
typename ModelConfigT = TrainingSessionModelConfig>
285 m_modelConfigHasBeenSet =
true;
286 m_modelConfig = std::forward<ModelConfigT>(value);
288 template <
typename ModelConfigT = TrainingSessionModelConfig>
301 template <
typename OutputConfigT = TrainingSessionOutputConfig>
303 m_outputConfigHasBeenSet =
true;
304 m_outputConfig = std::forward<OutputConfigT>(value);
306 template <
typename OutputConfigT = TrainingSessionOutputConfig>
319 template <
typename TagsT = Aws::Vector<Tag>>
321 m_tagsHasBeenSet =
true;
322 m_tags = std::forward<TagsT>(value);
324 template <
typename TagsT = Aws::Vector<Tag>>
326 SetTags(std::forward<TagsT>(value));
329 template <
typename TagsT = Tag>
331 m_tagsHasBeenSet =
true;
332 m_tags.emplace_back(std::forward<TagsT>(value));
353 int m_lastReceivedSequenceNumber{0};
355 BillableTokenUsage m_billableTokenUsage;
357 VpcConfig m_vpcConfig;
361 LoraConfig m_loraConfig;
363 TrainingSessionModelConfig m_modelConfig;
365 TrainingSessionOutputConfig m_outputConfig;
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;
const Aws::String & GetErrorDetails() const
TrainingSessionDetail & WithTags(TagsT &&value)
TrainingSessionDetail & WithBillableTokenUsage(BillableTokenUsageT &&value)
TrainingSessionDetail & WithTrainingSessionArn(TrainingSessionArnT &&value)
TrainingSessionDetail & WithLastReceivedSequenceNumber(int value)
const Aws::String & GetTrainingSessionName() const
bool BillableTokenUsageHasBeenSet() const
const Aws::String & GetTrainingSessionArn() const
bool CreationTimeHasBeenSet() const
void SetTrainingSessionStatus(TrainingSessionStatus value)
void SetModelConfig(ModelConfigT &&value)
bool EndTimeHasBeenSet() const
TrainingSessionDetail & WithRoleArn(RoleArnT &&value)
TrainingSessionDetail & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API TrainingSessionDetail()=default
const LoraConfig & GetLoraConfig() const
bool TrainingSessionStatusHasBeenSet() const
bool ModelPackageGroupArnHasBeenSet() const
bool LastModifiedTimeHasBeenSet() const
TrainingSessionDetail & WithLoraConfig(LoraConfigT &&value)
bool ModelConfigHasBeenSet() const
TrainingSessionDetail & WithVpcConfig(VpcConfigT &&value)
AWS_SAGEMAKER_API TrainingSessionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API TrainingSessionDetail(Aws::Utils::Json::JsonView jsonValue)
void SetLastReceivedSequenceNumber(int value)
void SetLoraConfig(LoraConfigT &&value)
const Aws::String & GetModelPackageGroupArn() const
void SetVpcConfig(VpcConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
void SetTags(TagsT &&value)
void SetTrainingSessionArn(TrainingSessionArnT &&value)
const Aws::Vector< Tag > & GetTags() const
void SetRoleArn(RoleArnT &&value)
const TrainingSessionOutputConfig & GetOutputConfig() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TrainingSessionDetail & AddTags(TagsT &&value)
const VpcConfig & GetVpcConfig() const
void SetTrainingSessionName(TrainingSessionNameT &&value)
const BillableTokenUsage & GetBillableTokenUsage() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
bool LoraConfigHasBeenSet() const
void SetCreationTime(CreationTimeT &&value)
void SetEndTime(EndTimeT &&value)
TrainingSessionDetail & WithTrainingSessionName(TrainingSessionNameT &&value)
void SetBillableTokenUsage(BillableTokenUsageT &&value)
TrainingSessionDetail & WithModelConfig(ModelConfigT &&value)
const TrainingSessionModelConfig & GetModelConfig() const
const Aws::String & GetRoleArn() const
bool VpcConfigHasBeenSet() const
int GetLastReceivedSequenceNumber() const
bool TrainingSessionArnHasBeenSet() const
void SetOutputConfig(OutputConfigT &&value)
const Aws::Utils::DateTime & GetEndTime() const
bool OutputConfigHasBeenSet() const
TrainingSessionDetail & WithModelPackageGroupArn(ModelPackageGroupArnT &&value)
TrainingSessionDetail & WithOutputConfig(OutputConfigT &&value)
bool ErrorDetailsHasBeenSet() const
TrainingSessionDetail & WithEndTime(EndTimeT &&value)
TrainingSessionDetail & WithCreationTime(CreationTimeT &&value)
bool TrainingSessionNameHasBeenSet() const
void SetModelPackageGroupArn(ModelPackageGroupArnT &&value)
bool RoleArnHasBeenSet() const
bool TagsHasBeenSet() const
TrainingSessionStatus GetTrainingSessionStatus() const
bool LastReceivedSequenceNumberHasBeenSet() const
TrainingSessionDetail & WithErrorDetails(ErrorDetailsT &&value)
TrainingSessionDetail & WithTrainingSessionStatus(TrainingSessionStatus value)
void SetErrorDetails(ErrorDetailsT &&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