AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HyperParameterTuningJobSearchEntity.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/HyperParameterTuningJobConfig.h>
10#include <aws/sagemaker/model/HyperParameterTrainingJobDefinition.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/HyperParameterTuningJobStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/sagemaker/model/TrainingJobStatusCounters.h>
15#include <aws/sagemaker/model/ObjectiveStatusCounters.h>
16#include <aws/sagemaker/model/HyperParameterTrainingJobSummary.h>
17#include <aws/sagemaker/model/HyperParameterTuningJobWarmStartConfig.h>
18#include <aws/sagemaker/model/HyperParameterTuningJobCompletionDetails.h>
19#include <aws/sagemaker/model/HyperParameterTuningJobConsumedResources.h>
20#include <aws/sagemaker/model/Tag.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace SageMaker
34{
35namespace Model
36{
37
47 {
48 public:
49 AWS_SAGEMAKER_API HyperParameterTuningJobSearchEntity() = default;
52 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const Aws::String& GetHyperParameterTuningJobName() const { return m_hyperParameterTuningJobName; }
60 inline bool HyperParameterTuningJobNameHasBeenSet() const { return m_hyperParameterTuningJobNameHasBeenSet; }
61 template<typename HyperParameterTuningJobNameT = Aws::String>
62 void SetHyperParameterTuningJobName(HyperParameterTuningJobNameT&& value) { m_hyperParameterTuningJobNameHasBeenSet = true; m_hyperParameterTuningJobName = std::forward<HyperParameterTuningJobNameT>(value); }
63 template<typename HyperParameterTuningJobNameT = Aws::String>
64 HyperParameterTuningJobSearchEntity& WithHyperParameterTuningJobName(HyperParameterTuningJobNameT&& value) { SetHyperParameterTuningJobName(std::forward<HyperParameterTuningJobNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetHyperParameterTuningJobArn() const { return m_hyperParameterTuningJobArn; }
72 inline bool HyperParameterTuningJobArnHasBeenSet() const { return m_hyperParameterTuningJobArnHasBeenSet; }
73 template<typename HyperParameterTuningJobArnT = Aws::String>
74 void SetHyperParameterTuningJobArn(HyperParameterTuningJobArnT&& value) { m_hyperParameterTuningJobArnHasBeenSet = true; m_hyperParameterTuningJobArn = std::forward<HyperParameterTuningJobArnT>(value); }
75 template<typename HyperParameterTuningJobArnT = Aws::String>
76 HyperParameterTuningJobSearchEntity& WithHyperParameterTuningJobArn(HyperParameterTuningJobArnT&& value) { SetHyperParameterTuningJobArn(std::forward<HyperParameterTuningJobArnT>(value)); return *this;}
78
80
81 inline const HyperParameterTuningJobConfig& GetHyperParameterTuningJobConfig() const { return m_hyperParameterTuningJobConfig; }
82 inline bool HyperParameterTuningJobConfigHasBeenSet() const { return m_hyperParameterTuningJobConfigHasBeenSet; }
83 template<typename HyperParameterTuningJobConfigT = HyperParameterTuningJobConfig>
84 void SetHyperParameterTuningJobConfig(HyperParameterTuningJobConfigT&& value) { m_hyperParameterTuningJobConfigHasBeenSet = true; m_hyperParameterTuningJobConfig = std::forward<HyperParameterTuningJobConfigT>(value); }
85 template<typename HyperParameterTuningJobConfigT = HyperParameterTuningJobConfig>
86 HyperParameterTuningJobSearchEntity& WithHyperParameterTuningJobConfig(HyperParameterTuningJobConfigT&& value) { SetHyperParameterTuningJobConfig(std::forward<HyperParameterTuningJobConfigT>(value)); return *this;}
88
90
91 inline const HyperParameterTrainingJobDefinition& GetTrainingJobDefinition() const { return m_trainingJobDefinition; }
92 inline bool TrainingJobDefinitionHasBeenSet() const { return m_trainingJobDefinitionHasBeenSet; }
93 template<typename TrainingJobDefinitionT = HyperParameterTrainingJobDefinition>
94 void SetTrainingJobDefinition(TrainingJobDefinitionT&& value) { m_trainingJobDefinitionHasBeenSet = true; m_trainingJobDefinition = std::forward<TrainingJobDefinitionT>(value); }
95 template<typename TrainingJobDefinitionT = HyperParameterTrainingJobDefinition>
96 HyperParameterTuningJobSearchEntity& WithTrainingJobDefinition(TrainingJobDefinitionT&& value) { SetTrainingJobDefinition(std::forward<TrainingJobDefinitionT>(value)); return *this;}
98
100
103 inline const Aws::Vector<HyperParameterTrainingJobDefinition>& GetTrainingJobDefinitions() const { return m_trainingJobDefinitions; }
104 inline bool TrainingJobDefinitionsHasBeenSet() const { return m_trainingJobDefinitionsHasBeenSet; }
105 template<typename TrainingJobDefinitionsT = Aws::Vector<HyperParameterTrainingJobDefinition>>
106 void SetTrainingJobDefinitions(TrainingJobDefinitionsT&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions = std::forward<TrainingJobDefinitionsT>(value); }
107 template<typename TrainingJobDefinitionsT = Aws::Vector<HyperParameterTrainingJobDefinition>>
108 HyperParameterTuningJobSearchEntity& WithTrainingJobDefinitions(TrainingJobDefinitionsT&& value) { SetTrainingJobDefinitions(std::forward<TrainingJobDefinitionsT>(value)); return *this;}
109 template<typename TrainingJobDefinitionsT = HyperParameterTrainingJobDefinition>
110 HyperParameterTuningJobSearchEntity& AddTrainingJobDefinitions(TrainingJobDefinitionsT&& value) { m_trainingJobDefinitionsHasBeenSet = true; m_trainingJobDefinitions.emplace_back(std::forward<TrainingJobDefinitionsT>(value)); return *this; }
112
114
117 inline HyperParameterTuningJobStatus GetHyperParameterTuningJobStatus() const { return m_hyperParameterTuningJobStatus; }
118 inline bool HyperParameterTuningJobStatusHasBeenSet() const { return m_hyperParameterTuningJobStatusHasBeenSet; }
119 inline void SetHyperParameterTuningJobStatus(HyperParameterTuningJobStatus value) { m_hyperParameterTuningJobStatusHasBeenSet = true; m_hyperParameterTuningJobStatus = value; }
122
124
127 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
128 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
129 template<typename CreationTimeT = Aws::Utils::DateTime>
130 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
131 template<typename CreationTimeT = Aws::Utils::DateTime>
132 HyperParameterTuningJobSearchEntity& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetHyperParameterTuningEndTime() const { return m_hyperParameterTuningEndTime; }
140 inline bool HyperParameterTuningEndTimeHasBeenSet() const { return m_hyperParameterTuningEndTimeHasBeenSet; }
141 template<typename HyperParameterTuningEndTimeT = Aws::Utils::DateTime>
142 void SetHyperParameterTuningEndTime(HyperParameterTuningEndTimeT&& value) { m_hyperParameterTuningEndTimeHasBeenSet = true; m_hyperParameterTuningEndTime = std::forward<HyperParameterTuningEndTimeT>(value); }
143 template<typename HyperParameterTuningEndTimeT = Aws::Utils::DateTime>
144 HyperParameterTuningJobSearchEntity& WithHyperParameterTuningEndTime(HyperParameterTuningEndTimeT&& value) { SetHyperParameterTuningEndTime(std::forward<HyperParameterTuningEndTimeT>(value)); return *this;}
146
148
151 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
152 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
153 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
154 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
155 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
156 HyperParameterTuningJobSearchEntity& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
158
160
161 inline const TrainingJobStatusCounters& GetTrainingJobStatusCounters() const { return m_trainingJobStatusCounters; }
162 inline bool TrainingJobStatusCountersHasBeenSet() const { return m_trainingJobStatusCountersHasBeenSet; }
163 template<typename TrainingJobStatusCountersT = TrainingJobStatusCounters>
164 void SetTrainingJobStatusCounters(TrainingJobStatusCountersT&& value) { m_trainingJobStatusCountersHasBeenSet = true; m_trainingJobStatusCounters = std::forward<TrainingJobStatusCountersT>(value); }
165 template<typename TrainingJobStatusCountersT = TrainingJobStatusCounters>
166 HyperParameterTuningJobSearchEntity& WithTrainingJobStatusCounters(TrainingJobStatusCountersT&& value) { SetTrainingJobStatusCounters(std::forward<TrainingJobStatusCountersT>(value)); return *this;}
168
170
171 inline const ObjectiveStatusCounters& GetObjectiveStatusCounters() const { return m_objectiveStatusCounters; }
172 inline bool ObjectiveStatusCountersHasBeenSet() const { return m_objectiveStatusCountersHasBeenSet; }
173 template<typename ObjectiveStatusCountersT = ObjectiveStatusCounters>
174 void SetObjectiveStatusCounters(ObjectiveStatusCountersT&& value) { m_objectiveStatusCountersHasBeenSet = true; m_objectiveStatusCounters = std::forward<ObjectiveStatusCountersT>(value); }
175 template<typename ObjectiveStatusCountersT = ObjectiveStatusCounters>
176 HyperParameterTuningJobSearchEntity& WithObjectiveStatusCounters(ObjectiveStatusCountersT&& value) { SetObjectiveStatusCounters(std::forward<ObjectiveStatusCountersT>(value)); return *this;}
178
180
181 inline const HyperParameterTrainingJobSummary& GetBestTrainingJob() const { return m_bestTrainingJob; }
182 inline bool BestTrainingJobHasBeenSet() const { return m_bestTrainingJobHasBeenSet; }
183 template<typename BestTrainingJobT = HyperParameterTrainingJobSummary>
184 void SetBestTrainingJob(BestTrainingJobT&& value) { m_bestTrainingJobHasBeenSet = true; m_bestTrainingJob = std::forward<BestTrainingJobT>(value); }
185 template<typename BestTrainingJobT = HyperParameterTrainingJobSummary>
186 HyperParameterTuningJobSearchEntity& WithBestTrainingJob(BestTrainingJobT&& value) { SetBestTrainingJob(std::forward<BestTrainingJobT>(value)); return *this;}
188
190
191 inline const HyperParameterTrainingJobSummary& GetOverallBestTrainingJob() const { return m_overallBestTrainingJob; }
192 inline bool OverallBestTrainingJobHasBeenSet() const { return m_overallBestTrainingJobHasBeenSet; }
193 template<typename OverallBestTrainingJobT = HyperParameterTrainingJobSummary>
194 void SetOverallBestTrainingJob(OverallBestTrainingJobT&& value) { m_overallBestTrainingJobHasBeenSet = true; m_overallBestTrainingJob = std::forward<OverallBestTrainingJobT>(value); }
195 template<typename OverallBestTrainingJobT = HyperParameterTrainingJobSummary>
196 HyperParameterTuningJobSearchEntity& WithOverallBestTrainingJob(OverallBestTrainingJobT&& value) { SetOverallBestTrainingJob(std::forward<OverallBestTrainingJobT>(value)); return *this;}
198
200
201 inline const HyperParameterTuningJobWarmStartConfig& GetWarmStartConfig() const { return m_warmStartConfig; }
202 inline bool WarmStartConfigHasBeenSet() const { return m_warmStartConfigHasBeenSet; }
203 template<typename WarmStartConfigT = HyperParameterTuningJobWarmStartConfig>
204 void SetWarmStartConfig(WarmStartConfigT&& value) { m_warmStartConfigHasBeenSet = true; m_warmStartConfig = std::forward<WarmStartConfigT>(value); }
205 template<typename WarmStartConfigT = HyperParameterTuningJobWarmStartConfig>
206 HyperParameterTuningJobSearchEntity& WithWarmStartConfig(WarmStartConfigT&& value) { SetWarmStartConfig(std::forward<WarmStartConfigT>(value)); return *this;}
208
210
213 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
214 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
215 template<typename FailureReasonT = Aws::String>
216 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
217 template<typename FailureReasonT = Aws::String>
218 HyperParameterTuningJobSearchEntity& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
220
222
226 inline const HyperParameterTuningJobCompletionDetails& GetTuningJobCompletionDetails() const { return m_tuningJobCompletionDetails; }
227 inline bool TuningJobCompletionDetailsHasBeenSet() const { return m_tuningJobCompletionDetailsHasBeenSet; }
228 template<typename TuningJobCompletionDetailsT = HyperParameterTuningJobCompletionDetails>
229 void SetTuningJobCompletionDetails(TuningJobCompletionDetailsT&& value) { m_tuningJobCompletionDetailsHasBeenSet = true; m_tuningJobCompletionDetails = std::forward<TuningJobCompletionDetailsT>(value); }
230 template<typename TuningJobCompletionDetailsT = HyperParameterTuningJobCompletionDetails>
231 HyperParameterTuningJobSearchEntity& WithTuningJobCompletionDetails(TuningJobCompletionDetailsT&& value) { SetTuningJobCompletionDetails(std::forward<TuningJobCompletionDetailsT>(value)); return *this;}
233
235
238 inline const HyperParameterTuningJobConsumedResources& GetConsumedResources() const { return m_consumedResources; }
239 inline bool ConsumedResourcesHasBeenSet() const { return m_consumedResourcesHasBeenSet; }
240 template<typename ConsumedResourcesT = HyperParameterTuningJobConsumedResources>
241 void SetConsumedResources(ConsumedResourcesT&& value) { m_consumedResourcesHasBeenSet = true; m_consumedResources = std::forward<ConsumedResourcesT>(value); }
242 template<typename ConsumedResourcesT = HyperParameterTuningJobConsumedResources>
243 HyperParameterTuningJobSearchEntity& WithConsumedResources(ConsumedResourcesT&& value) { SetConsumedResources(std::forward<ConsumedResourcesT>(value)); return *this;}
245
247
253 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
254 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
255 template<typename TagsT = Aws::Vector<Tag>>
256 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
257 template<typename TagsT = Aws::Vector<Tag>>
258 HyperParameterTuningJobSearchEntity& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
259 template<typename TagsT = Tag>
260 HyperParameterTuningJobSearchEntity& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
262 private:
263
264 Aws::String m_hyperParameterTuningJobName;
265 bool m_hyperParameterTuningJobNameHasBeenSet = false;
266
267 Aws::String m_hyperParameterTuningJobArn;
268 bool m_hyperParameterTuningJobArnHasBeenSet = false;
269
270 HyperParameterTuningJobConfig m_hyperParameterTuningJobConfig;
271 bool m_hyperParameterTuningJobConfigHasBeenSet = false;
272
273 HyperParameterTrainingJobDefinition m_trainingJobDefinition;
274 bool m_trainingJobDefinitionHasBeenSet = false;
275
277 bool m_trainingJobDefinitionsHasBeenSet = false;
278
280 bool m_hyperParameterTuningJobStatusHasBeenSet = false;
281
282 Aws::Utils::DateTime m_creationTime{};
283 bool m_creationTimeHasBeenSet = false;
284
285 Aws::Utils::DateTime m_hyperParameterTuningEndTime{};
286 bool m_hyperParameterTuningEndTimeHasBeenSet = false;
287
288 Aws::Utils::DateTime m_lastModifiedTime{};
289 bool m_lastModifiedTimeHasBeenSet = false;
290
291 TrainingJobStatusCounters m_trainingJobStatusCounters;
292 bool m_trainingJobStatusCountersHasBeenSet = false;
293
294 ObjectiveStatusCounters m_objectiveStatusCounters;
295 bool m_objectiveStatusCountersHasBeenSet = false;
296
297 HyperParameterTrainingJobSummary m_bestTrainingJob;
298 bool m_bestTrainingJobHasBeenSet = false;
299
300 HyperParameterTrainingJobSummary m_overallBestTrainingJob;
301 bool m_overallBestTrainingJobHasBeenSet = false;
302
303 HyperParameterTuningJobWarmStartConfig m_warmStartConfig;
304 bool m_warmStartConfigHasBeenSet = false;
305
306 Aws::String m_failureReason;
307 bool m_failureReasonHasBeenSet = false;
308
309 HyperParameterTuningJobCompletionDetails m_tuningJobCompletionDetails;
310 bool m_tuningJobCompletionDetailsHasBeenSet = false;
311
312 HyperParameterTuningJobConsumedResources m_consumedResources;
313 bool m_consumedResourcesHasBeenSet = false;
314
315 Aws::Vector<Tag> m_tags;
316 bool m_tagsHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace SageMaker
321} // namespace Aws
const HyperParameterTuningJobConfig & GetHyperParameterTuningJobConfig() const
const HyperParameterTrainingJobDefinition & GetTrainingJobDefinition() const
HyperParameterTuningJobSearchEntity & WithWarmStartConfig(WarmStartConfigT &&value)
HyperParameterTuningJobSearchEntity & WithHyperParameterTuningJobConfig(HyperParameterTuningJobConfigT &&value)
HyperParameterTuningJobSearchEntity & WithHyperParameterTuningEndTime(HyperParameterTuningEndTimeT &&value)
HyperParameterTuningJobSearchEntity & WithConsumedResources(ConsumedResourcesT &&value)
HyperParameterTuningJobSearchEntity & WithBestTrainingJob(BestTrainingJobT &&value)
const HyperParameterTuningJobWarmStartConfig & GetWarmStartConfig() const
HyperParameterTuningJobSearchEntity & WithTuningJobCompletionDetails(TuningJobCompletionDetailsT &&value)
HyperParameterTuningJobSearchEntity & WithHyperParameterTuningJobStatus(HyperParameterTuningJobStatus value)
HyperParameterTuningJobSearchEntity & WithTrainingJobDefinitions(TrainingJobDefinitionsT &&value)
HyperParameterTuningJobSearchEntity & WithCreationTime(CreationTimeT &&value)
HyperParameterTuningJobSearchEntity & WithTrainingJobStatusCounters(TrainingJobStatusCountersT &&value)
const Aws::Vector< HyperParameterTrainingJobDefinition > & GetTrainingJobDefinitions() const
HyperParameterTuningJobSearchEntity & WithObjectiveStatusCounters(ObjectiveStatusCountersT &&value)
AWS_SAGEMAKER_API HyperParameterTuningJobSearchEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobSearchEntity & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_SAGEMAKER_API HyperParameterTuningJobSearchEntity(Aws::Utils::Json::JsonView jsonValue)
HyperParameterTuningJobSearchEntity & AddTrainingJobDefinitions(TrainingJobDefinitionsT &&value)
const HyperParameterTrainingJobSummary & GetOverallBestTrainingJob() const
HyperParameterTuningJobSearchEntity & WithFailureReason(FailureReasonT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
HyperParameterTuningJobSearchEntity & WithHyperParameterTuningJobArn(HyperParameterTuningJobArnT &&value)
const HyperParameterTuningJobCompletionDetails & GetTuningJobCompletionDetails() const
HyperParameterTuningJobSearchEntity & WithHyperParameterTuningJobName(HyperParameterTuningJobNameT &&value)
const HyperParameterTuningJobConsumedResources & GetConsumedResources() const
HyperParameterTuningJobSearchEntity & WithTrainingJobDefinition(TrainingJobDefinitionT &&value)
HyperParameterTuningJobSearchEntity & WithOverallBestTrainingJob(OverallBestTrainingJobT &&value)
void SetHyperParameterTuningJobConfig(HyperParameterTuningJobConfigT &&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