AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateTrialComponentRequest.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/TrialComponentArtifact.h>
14#include <aws/sagemaker/model/TrialComponentParameterValue.h>
15#include <aws/sagemaker/model/TrialComponentStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API UpdateTrialComponentRequest() = 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 "UpdateTrialComponent"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetTrialComponentName() const { return m_trialComponentName; }
44 inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; }
45 template <typename TrialComponentNameT = Aws::String>
46 void SetTrialComponentName(TrialComponentNameT&& value) {
47 m_trialComponentNameHasBeenSet = true;
48 m_trialComponentName = std::forward<TrialComponentNameT>(value);
49 }
50 template <typename TrialComponentNameT = Aws::String>
52 SetTrialComponentName(std::forward<TrialComponentNameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetDisplayName() const { return m_displayName; }
64 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
65 template <typename DisplayNameT = Aws::String>
66 void SetDisplayName(DisplayNameT&& value) {
67 m_displayNameHasBeenSet = true;
68 m_displayName = std::forward<DisplayNameT>(value);
69 }
70 template <typename DisplayNameT = Aws::String>
72 SetDisplayName(std::forward<DisplayNameT>(value));
73 return *this;
74 }
76
78
81 inline const TrialComponentStatus& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template <typename StatusT = TrialComponentStatus>
84 void SetStatus(StatusT&& value) {
85 m_statusHasBeenSet = true;
86 m_status = std::forward<StatusT>(value);
87 }
88 template <typename StatusT = TrialComponentStatus>
90 SetStatus(std::forward<StatusT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
100 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
101 template <typename StartTimeT = Aws::Utils::DateTime>
102 void SetStartTime(StartTimeT&& value) {
103 m_startTimeHasBeenSet = true;
104 m_startTime = std::forward<StartTimeT>(value);
105 }
106 template <typename StartTimeT = Aws::Utils::DateTime>
108 SetStartTime(std::forward<StartTimeT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
118 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
119 template <typename EndTimeT = Aws::Utils::DateTime>
120 void SetEndTime(EndTimeT&& value) {
121 m_endTimeHasBeenSet = true;
122 m_endTime = std::forward<EndTimeT>(value);
123 }
124 template <typename EndTimeT = Aws::Utils::DateTime>
126 SetEndTime(std::forward<EndTimeT>(value));
127 return *this;
128 }
130
132
138 inline const Aws::Map<Aws::String, TrialComponentParameterValue>& GetParameters() const { return m_parameters; }
139 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
140 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
141 void SetParameters(ParametersT&& value) {
142 m_parametersHasBeenSet = true;
143 m_parameters = std::forward<ParametersT>(value);
144 }
145 template <typename ParametersT = Aws::Map<Aws::String, TrialComponentParameterValue>>
147 SetParameters(std::forward<ParametersT>(value));
148 return *this;
149 }
150 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = TrialComponentParameterValue>
151 UpdateTrialComponentRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
152 m_parametersHasBeenSet = true;
153 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<Aws::String>& GetParametersToRemove() const { return m_parametersToRemove; }
163 inline bool ParametersToRemoveHasBeenSet() const { return m_parametersToRemoveHasBeenSet; }
164 template <typename ParametersToRemoveT = Aws::Vector<Aws::String>>
165 void SetParametersToRemove(ParametersToRemoveT&& value) {
166 m_parametersToRemoveHasBeenSet = true;
167 m_parametersToRemove = std::forward<ParametersToRemoveT>(value);
168 }
169 template <typename ParametersToRemoveT = Aws::Vector<Aws::String>>
171 SetParametersToRemove(std::forward<ParametersToRemoveT>(value));
172 return *this;
173 }
174 template <typename ParametersToRemoveT = Aws::String>
176 m_parametersToRemoveHasBeenSet = true;
177 m_parametersToRemove.emplace_back(std::forward<ParametersToRemoveT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
189 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
190 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
191 void SetInputArtifacts(InputArtifactsT&& value) {
192 m_inputArtifactsHasBeenSet = true;
193 m_inputArtifacts = std::forward<InputArtifactsT>(value);
194 }
195 template <typename InputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
197 SetInputArtifacts(std::forward<InputArtifactsT>(value));
198 return *this;
199 }
200 template <typename InputArtifactsKeyT = Aws::String, typename InputArtifactsValueT = TrialComponentArtifact>
201 UpdateTrialComponentRequest& AddInputArtifacts(InputArtifactsKeyT&& key, InputArtifactsValueT&& value) {
202 m_inputArtifactsHasBeenSet = true;
203 m_inputArtifacts.emplace(std::forward<InputArtifactsKeyT>(key), std::forward<InputArtifactsValueT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::Vector<Aws::String>& GetInputArtifactsToRemove() const { return m_inputArtifactsToRemove; }
213 inline bool InputArtifactsToRemoveHasBeenSet() const { return m_inputArtifactsToRemoveHasBeenSet; }
214 template <typename InputArtifactsToRemoveT = Aws::Vector<Aws::String>>
215 void SetInputArtifactsToRemove(InputArtifactsToRemoveT&& value) {
216 m_inputArtifactsToRemoveHasBeenSet = true;
217 m_inputArtifactsToRemove = std::forward<InputArtifactsToRemoveT>(value);
218 }
219 template <typename InputArtifactsToRemoveT = Aws::Vector<Aws::String>>
220 UpdateTrialComponentRequest& WithInputArtifactsToRemove(InputArtifactsToRemoveT&& value) {
221 SetInputArtifactsToRemove(std::forward<InputArtifactsToRemoveT>(value));
222 return *this;
223 }
224 template <typename InputArtifactsToRemoveT = Aws::String>
225 UpdateTrialComponentRequest& AddInputArtifactsToRemove(InputArtifactsToRemoveT&& value) {
226 m_inputArtifactsToRemoveHasBeenSet = true;
227 m_inputArtifactsToRemove.emplace_back(std::forward<InputArtifactsToRemoveT>(value));
228 return *this;
229 }
231
233
238 inline const Aws::Map<Aws::String, TrialComponentArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
239 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
240 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
241 void SetOutputArtifacts(OutputArtifactsT&& value) {
242 m_outputArtifactsHasBeenSet = true;
243 m_outputArtifacts = std::forward<OutputArtifactsT>(value);
244 }
245 template <typename OutputArtifactsT = Aws::Map<Aws::String, TrialComponentArtifact>>
247 SetOutputArtifacts(std::forward<OutputArtifactsT>(value));
248 return *this;
249 }
250 template <typename OutputArtifactsKeyT = Aws::String, typename OutputArtifactsValueT = TrialComponentArtifact>
251 UpdateTrialComponentRequest& AddOutputArtifacts(OutputArtifactsKeyT&& key, OutputArtifactsValueT&& value) {
252 m_outputArtifactsHasBeenSet = true;
253 m_outputArtifacts.emplace(std::forward<OutputArtifactsKeyT>(key), std::forward<OutputArtifactsValueT>(value));
254 return *this;
255 }
257
259
262 inline const Aws::Vector<Aws::String>& GetOutputArtifactsToRemove() const { return m_outputArtifactsToRemove; }
263 inline bool OutputArtifactsToRemoveHasBeenSet() const { return m_outputArtifactsToRemoveHasBeenSet; }
264 template <typename OutputArtifactsToRemoveT = Aws::Vector<Aws::String>>
265 void SetOutputArtifactsToRemove(OutputArtifactsToRemoveT&& value) {
266 m_outputArtifactsToRemoveHasBeenSet = true;
267 m_outputArtifactsToRemove = std::forward<OutputArtifactsToRemoveT>(value);
268 }
269 template <typename OutputArtifactsToRemoveT = Aws::Vector<Aws::String>>
270 UpdateTrialComponentRequest& WithOutputArtifactsToRemove(OutputArtifactsToRemoveT&& value) {
271 SetOutputArtifactsToRemove(std::forward<OutputArtifactsToRemoveT>(value));
272 return *this;
273 }
274 template <typename OutputArtifactsToRemoveT = Aws::String>
275 UpdateTrialComponentRequest& AddOutputArtifactsToRemove(OutputArtifactsToRemoveT&& value) {
276 m_outputArtifactsToRemoveHasBeenSet = true;
277 m_outputArtifactsToRemove.emplace_back(std::forward<OutputArtifactsToRemoveT>(value));
278 return *this;
279 }
281 private:
282 Aws::String m_trialComponentName;
283
284 Aws::String m_displayName;
285
286 TrialComponentStatus m_status;
287
288 Aws::Utils::DateTime m_startTime{};
289
290 Aws::Utils::DateTime m_endTime{};
291
293
294 Aws::Vector<Aws::String> m_parametersToRemove;
295
297
298 Aws::Vector<Aws::String> m_inputArtifactsToRemove;
299
301
302 Aws::Vector<Aws::String> m_outputArtifactsToRemove;
303 bool m_trialComponentNameHasBeenSet = false;
304 bool m_displayNameHasBeenSet = false;
305 bool m_statusHasBeenSet = false;
306 bool m_startTimeHasBeenSet = false;
307 bool m_endTimeHasBeenSet = false;
308 bool m_parametersHasBeenSet = false;
309 bool m_parametersToRemoveHasBeenSet = false;
310 bool m_inputArtifactsHasBeenSet = false;
311 bool m_inputArtifactsToRemoveHasBeenSet = false;
312 bool m_outputArtifactsHasBeenSet = false;
313 bool m_outputArtifactsToRemoveHasBeenSet = false;
314};
315
316} // namespace Model
317} // namespace SageMaker
318} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetInputArtifactsToRemove() const
UpdateTrialComponentRequest & AddOutputArtifacts(OutputArtifactsKeyT &&key, OutputArtifactsValueT &&value)
const Aws::Vector< Aws::String > & GetParametersToRemove() const
UpdateTrialComponentRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
UpdateTrialComponentRequest & AddParametersToRemove(ParametersToRemoveT &&value)
UpdateTrialComponentRequest & AddInputArtifactsToRemove(InputArtifactsToRemoveT &&value)
UpdateTrialComponentRequest & WithOutputArtifactsToRemove(OutputArtifactsToRemoveT &&value)
UpdateTrialComponentRequest & WithInputArtifactsToRemove(InputArtifactsToRemoveT &&value)
UpdateTrialComponentRequest & WithParameters(ParametersT &&value)
UpdateTrialComponentRequest & WithEndTime(EndTimeT &&value)
const Aws::Map< Aws::String, TrialComponentParameterValue > & GetParameters() const
const Aws::Vector< Aws::String > & GetOutputArtifactsToRemove() const
UpdateTrialComponentRequest & AddInputArtifacts(InputArtifactsKeyT &&key, InputArtifactsValueT &&value)
UpdateTrialComponentRequest & WithStatus(StatusT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API UpdateTrialComponentRequest()=default
void SetInputArtifactsToRemove(InputArtifactsToRemoveT &&value)
UpdateTrialComponentRequest & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, TrialComponentArtifact > & GetOutputArtifacts() const
UpdateTrialComponentRequest & WithInputArtifacts(InputArtifactsT &&value)
void SetOutputArtifactsToRemove(OutputArtifactsToRemoveT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateTrialComponentRequest & AddOutputArtifactsToRemove(OutputArtifactsToRemoveT &&value)
UpdateTrialComponentRequest & WithParametersToRemove(ParametersToRemoveT &&value)
const Aws::Map< Aws::String, TrialComponentArtifact > & GetInputArtifacts() const
UpdateTrialComponentRequest & WithTrialComponentName(TrialComponentNameT &&value)
UpdateTrialComponentRequest & WithOutputArtifacts(OutputArtifactsT &&value)
UpdateTrialComponentRequest & WithStartTime(StartTimeT &&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