AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateTrialComponentRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/SageMakerRequest.h>
12#include <aws/sagemaker/SageMaker_EXPORTS.h>
13#include <aws/sagemaker/model/MetadataProperties.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/TrialComponentArtifact.h>
16#include <aws/sagemaker/model/TrialComponentParameterValue.h>
17#include <aws/sagemaker/model/TrialComponentStatus.h>
18
19#include <utility>
20
21namespace Aws {
22namespace SageMaker {
23namespace Model {
24
28 public:
29 AWS_SAGEMAKER_API CreateTrialComponentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateTrialComponent"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
42
46 inline const Aws::String& GetTrialComponentName() const { return m_trialComponentName; }
47 inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; }
48 template <typename TrialComponentNameT = Aws::String>
49 void SetTrialComponentName(TrialComponentNameT&& value) {
50 m_trialComponentNameHasBeenSet = true;
51 m_trialComponentName = std::forward<TrialComponentNameT>(value);
52 }
53 template <typename TrialComponentNameT = Aws::String>
55 SetTrialComponentName(std::forward<TrialComponentNameT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetDisplayName() const { return m_displayName; }
67 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
68 template <typename DisplayNameT = Aws::String>
69 void SetDisplayName(DisplayNameT&& value) {
70 m_displayNameHasBeenSet = true;
71 m_displayName = std::forward<DisplayNameT>(value);
72 }
73 template <typename DisplayNameT = Aws::String>
75 SetDisplayName(std::forward<DisplayNameT>(value));
76 return *this;
77 }
79
81
85 inline const TrialComponentStatus& GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 template <typename StatusT = TrialComponentStatus>
88 void SetStatus(StatusT&& value) {
89 m_statusHasBeenSet = true;
90 m_status = std::forward<StatusT>(value);
91 }
92 template <typename StatusT = TrialComponentStatus>
94 SetStatus(std::forward<StatusT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
104 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
105 template <typename StartTimeT = Aws::Utils::DateTime>
106 void SetStartTime(StartTimeT&& value) {
107 m_startTimeHasBeenSet = true;
108 m_startTime = std::forward<StartTimeT>(value);
109 }
110 template <typename StartTimeT = Aws::Utils::DateTime>
112 SetStartTime(std::forward<StartTimeT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
122 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
123 template <typename EndTimeT = Aws::Utils::DateTime>
124 void SetEndTime(EndTimeT&& value) {
125 m_endTimeHasBeenSet = true;
126 m_endTime = std::forward<EndTimeT>(value);
127 }
128 template <typename EndTimeT = Aws::Utils::DateTime>
130 SetEndTime(std::forward<EndTimeT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Map<Aws::String, TrialComponentParameterValue>& GetParameters() const { return m_parameters; }
140 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
141 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
142 void SetParameters(ParametersT&& value) {
143 m_parametersHasBeenSet = true;
144 m_parameters = std::forward<ParametersT>(value);
145 }
146 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
148 SetParameters(std::forward<ParametersT>(value));
149 return *this;
150 }
151 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TrialComponentParameterValue>
152 CreateTrialComponentRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
153 m_parametersHasBeenSet = true;
154 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
165 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
166 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
167 void SetInputArtifacts(InputArtifactsT&& value) {
168 m_inputArtifactsHasBeenSet = true;
169 m_inputArtifacts = std::forward<InputArtifactsT>(value);
170 }
171 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
173 SetInputArtifacts(std::forward<InputArtifactsT>(value));
174 return *this;
175 }
176 template <typename InputArtifactsKeyT = Aws::String, typename InputArtifactsValueT = TrialComponentArtifact>
177 CreateTrialComponentRequest& AddInputArtifacts(InputArtifactsKeyT&& key, InputArtifactsValueT&& value) {
178 m_inputArtifactsHasBeenSet = true;
179 m_inputArtifacts.emplace(std::forward<InputArtifactsKeyT>(key), std::forward<InputArtifactsValueT>(value));
180 return *this;
181 }
183
185
189 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
190 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
191 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
192 void SetOutputArtifacts(OutputArtifactsT&& value) {
193 m_outputArtifactsHasBeenSet = true;
194 m_outputArtifacts = std::forward<OutputArtifactsT>(value);
195 }
196 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
198 SetOutputArtifacts(std::forward<OutputArtifactsT>(value));
199 return *this;
200 }
201 template <typename OutputArtifactsKeyT = Aws::String, typename OutputArtifactsValueT = TrialComponentArtifact>
202 CreateTrialComponentRequest& AddOutputArtifacts(OutputArtifactsKeyT&& key, OutputArtifactsValueT&& value) {
203 m_outputArtifactsHasBeenSet = true;
204 m_outputArtifacts.emplace(std::forward<OutputArtifactsKeyT>(key), std::forward<OutputArtifactsValueT>(value));
205 return *this;
206 }
208
210
211 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
212 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
213 template <typename MetadataPropertiesT = MetadataProperties>
214 void SetMetadataProperties(MetadataPropertiesT&& value) {
215 m_metadataPropertiesHasBeenSet = true;
216 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
217 }
218 template <typename MetadataPropertiesT = MetadataProperties>
220 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
221 return *this;
222 }
224
226
231 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 template <typename TagsT = Aws::Vector<Tag>>
234 void SetTags(TagsT&& value) {
235 m_tagsHasBeenSet = true;
236 m_tags = std::forward<TagsT>(value);
237 }
238 template <typename TagsT = Aws::Vector<Tag>>
240 SetTags(std::forward<TagsT>(value));
241 return *this;
242 }
243 template <typename TagsT = Tag>
245 m_tagsHasBeenSet = true;
246 m_tags.emplace_back(std::forward<TagsT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_trialComponentName;
252
253 Aws::String m_displayName;
254
255 TrialComponentStatus m_status;
256
257 Aws::Utils::DateTime m_startTime{};
258
259 Aws::Utils::DateTime m_endTime{};
260
262
264
266
267 MetadataProperties m_metadataProperties;
268
269 Aws::Vector<Tag> m_tags;
270 bool m_trialComponentNameHasBeenSet = false;
271 bool m_displayNameHasBeenSet = false;
272 bool m_statusHasBeenSet = false;
273 bool m_startTimeHasBeenSet = false;
274 bool m_endTimeHasBeenSet = false;
275 bool m_parametersHasBeenSet = false;
276 bool m_inputArtifactsHasBeenSet = false;
277 bool m_outputArtifactsHasBeenSet = false;
278 bool m_metadataPropertiesHasBeenSet = false;
279 bool m_tagsHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace SageMaker
284} // namespace Aws
const Aws::Map< Aws::String, TrialComponentArtifact > & GetOutputArtifacts() const
CreateTrialComponentRequest & WithOutputArtifacts(OutputArtifactsT &&value)
CreateTrialComponentRequest & WithTrialComponentName(TrialComponentNameT &&value)
CreateTrialComponentRequest & WithParameters(ParametersT &&value)
CreateTrialComponentRequest & WithStatus(StatusT &&value)
CreateTrialComponentRequest & WithMetadataProperties(MetadataPropertiesT &&value)
CreateTrialComponentRequest & WithEndTime(EndTimeT &&value)
CreateTrialComponentRequest & AddOutputArtifacts(OutputArtifactsKeyT &&key, OutputArtifactsValueT &&value)
CreateTrialComponentRequest & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, TrialComponentParameterValue > & GetParameters() const
CreateTrialComponentRequest & WithInputArtifacts(InputArtifactsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API CreateTrialComponentRequest()=default
CreateTrialComponentRequest & AddTags(TagsT &&value)
const Aws::Map< Aws::String, TrialComponentArtifact > & GetInputArtifacts() const
CreateTrialComponentRequest & AddInputArtifacts(InputArtifactsKeyT &&key, InputArtifactsValueT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrialComponentRequest & WithStartTime(StartTimeT &&value)
CreateTrialComponentRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
CreateTrialComponentRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector