AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
CreateTrainingSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/LoraConfig.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <aws/sagemaker/model/TrainingSessionModelConfig.h>
14#include <aws/sagemaker/model/TrainingSessionOutputConfig.h>
15#include <aws/sagemaker/model/VpcConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API CreateTrainingSessionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTrainingSession"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetTrainingSessionName() const { return m_trainingSessionName; }
44 inline bool TrainingSessionNameHasBeenSet() const { return m_trainingSessionNameHasBeenSet; }
45 template <typename TrainingSessionNameT = Aws::String>
46 void SetTrainingSessionName(TrainingSessionNameT&& value) {
47 m_trainingSessionNameHasBeenSet = true;
48 m_trainingSessionName = std::forward<TrainingSessionNameT>(value);
49 }
50 template <typename TrainingSessionNameT = Aws::String>
52 SetTrainingSessionName(std::forward<TrainingSessionNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetModelPackageGroupArn() const { return m_modelPackageGroupArn; }
63 inline bool ModelPackageGroupArnHasBeenSet() const { return m_modelPackageGroupArnHasBeenSet; }
64 template <typename ModelPackageGroupArnT = Aws::String>
65 void SetModelPackageGroupArn(ModelPackageGroupArnT&& value) {
66 m_modelPackageGroupArnHasBeenSet = true;
67 m_modelPackageGroupArn = std::forward<ModelPackageGroupArnT>(value);
68 }
69 template <typename ModelPackageGroupArnT = Aws::String>
71 SetModelPackageGroupArn(std::forward<ModelPackageGroupArnT>(value));
72 return *this;
73 }
75
77
81 inline const LoraConfig& GetLoraConfig() const { return m_loraConfig; }
82 inline bool LoraConfigHasBeenSet() const { return m_loraConfigHasBeenSet; }
83 template <typename LoraConfigT = LoraConfig>
84 void SetLoraConfig(LoraConfigT&& value) {
85 m_loraConfigHasBeenSet = true;
86 m_loraConfig = std::forward<LoraConfigT>(value);
87 }
88 template <typename LoraConfigT = LoraConfig>
90 SetLoraConfig(std::forward<LoraConfigT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
102 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
103 template <typename RoleArnT = Aws::String>
104 void SetRoleArn(RoleArnT&& value) {
105 m_roleArnHasBeenSet = true;
106 m_roleArn = std::forward<RoleArnT>(value);
107 }
108 template <typename RoleArnT = Aws::String>
110 SetRoleArn(std::forward<RoleArnT>(value));
111 return *this;
112 }
114
116
120 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
121 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
122 template <typename VpcConfigT = VpcConfig>
123 void SetVpcConfig(VpcConfigT&& value) {
124 m_vpcConfigHasBeenSet = true;
125 m_vpcConfig = std::forward<VpcConfigT>(value);
126 }
127 template <typename VpcConfigT = VpcConfig>
129 SetVpcConfig(std::forward<VpcConfigT>(value));
130 return *this;
131 }
133
135
139 inline const TrainingSessionModelConfig& GetModelConfig() const { return m_modelConfig; }
140 inline bool ModelConfigHasBeenSet() const { return m_modelConfigHasBeenSet; }
141 template <typename ModelConfigT = TrainingSessionModelConfig>
142 void SetModelConfig(ModelConfigT&& value) {
143 m_modelConfigHasBeenSet = true;
144 m_modelConfig = std::forward<ModelConfigT>(value);
145 }
146 template <typename ModelConfigT = TrainingSessionModelConfig>
148 SetModelConfig(std::forward<ModelConfigT>(value));
149 return *this;
150 }
152
154
158 inline const TrainingSessionOutputConfig& GetOutputConfig() const { return m_outputConfig; }
159 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
160 template <typename OutputConfigT = TrainingSessionOutputConfig>
161 void SetOutputConfig(OutputConfigT&& value) {
162 m_outputConfigHasBeenSet = true;
163 m_outputConfig = std::forward<OutputConfigT>(value);
164 }
165 template <typename OutputConfigT = TrainingSessionOutputConfig>
167 SetOutputConfig(std::forward<OutputConfigT>(value));
168 return *this;
169 }
171
173
179 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 template <typename TagsT = Aws::Vector<Tag>>
182 void SetTags(TagsT&& value) {
183 m_tagsHasBeenSet = true;
184 m_tags = std::forward<TagsT>(value);
185 }
186 template <typename TagsT = Aws::Vector<Tag>>
188 SetTags(std::forward<TagsT>(value));
189 return *this;
190 }
191 template <typename TagsT = Tag>
193 m_tagsHasBeenSet = true;
194 m_tags.emplace_back(std::forward<TagsT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_trainingSessionName;
200
201 Aws::String m_modelPackageGroupArn;
202
203 LoraConfig m_loraConfig;
204
205 Aws::String m_roleArn;
206
207 VpcConfig m_vpcConfig;
208
209 TrainingSessionModelConfig m_modelConfig;
210
211 TrainingSessionOutputConfig m_outputConfig;
212
213 Aws::Vector<Tag> m_tags;
214 bool m_trainingSessionNameHasBeenSet = false;
215 bool m_modelPackageGroupArnHasBeenSet = false;
216 bool m_loraConfigHasBeenSet = false;
217 bool m_roleArnHasBeenSet = false;
218 bool m_vpcConfigHasBeenSet = false;
219 bool m_modelConfigHasBeenSet = false;
220 bool m_outputConfigHasBeenSet = false;
221 bool m_tagsHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace SageMaker
226} // namespace Aws
AWS_SAGEMAKER_API CreateTrainingSessionRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrainingSessionRequest & WithVpcConfig(VpcConfigT &&value)
CreateTrainingSessionRequest & AddTags(TagsT &&value)
CreateTrainingSessionRequest & WithOutputConfig(OutputConfigT &&value)
CreateTrainingSessionRequest & WithModelPackageGroupArn(ModelPackageGroupArnT &&value)
CreateTrainingSessionRequest & WithModelConfig(ModelConfigT &&value)
CreateTrainingSessionRequest & WithRoleArn(RoleArnT &&value)
CreateTrainingSessionRequest & WithTags(TagsT &&value)
CreateTrainingSessionRequest & WithTrainingSessionName(TrainingSessionNameT &&value)
CreateTrainingSessionRequest & WithLoraConfig(LoraConfigT &&value)
const TrainingSessionOutputConfig & GetOutputConfig() const
const TrainingSessionModelConfig & GetModelConfig() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector