AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Trial.h
1
6#pragma once
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/MetadataProperties.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <aws/sagemaker/model/TrialComponentSimpleSummary.h>
14#include <aws/sagemaker/model/TrialSource.h>
15#include <aws/sagemaker/model/UserContext.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
28
36class Trial {
37 public:
38 AWS_SAGEMAKER_API Trial() = default;
39 AWS_SAGEMAKER_API Trial(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Trial& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetTrialName() const { return m_trialName; }
48 inline bool TrialNameHasBeenSet() const { return m_trialNameHasBeenSet; }
49 template <typename TrialNameT = Aws::String>
50 void SetTrialName(TrialNameT&& value) {
51 m_trialNameHasBeenSet = true;
52 m_trialName = std::forward<TrialNameT>(value);
53 }
54 template <typename TrialNameT = Aws::String>
55 Trial& WithTrialName(TrialNameT&& value) {
56 SetTrialName(std::forward<TrialNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetTrialArn() const { return m_trialArn; }
66 inline bool TrialArnHasBeenSet() const { return m_trialArnHasBeenSet; }
67 template <typename TrialArnT = Aws::String>
68 void SetTrialArn(TrialArnT&& value) {
69 m_trialArnHasBeenSet = true;
70 m_trialArn = std::forward<TrialArnT>(value);
71 }
72 template <typename TrialArnT = Aws::String>
73 Trial& WithTrialArn(TrialArnT&& value) {
74 SetTrialArn(std::forward<TrialArnT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetDisplayName() const { return m_displayName; }
85 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
86 template <typename DisplayNameT = Aws::String>
87 void SetDisplayName(DisplayNameT&& value) {
88 m_displayNameHasBeenSet = true;
89 m_displayName = std::forward<DisplayNameT>(value);
90 }
91 template <typename DisplayNameT = Aws::String>
92 Trial& WithDisplayName(DisplayNameT&& value) {
93 SetDisplayName(std::forward<DisplayNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetExperimentName() const { return m_experimentName; }
103 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
104 template <typename ExperimentNameT = Aws::String>
105 void SetExperimentName(ExperimentNameT&& value) {
106 m_experimentNameHasBeenSet = true;
107 m_experimentName = std::forward<ExperimentNameT>(value);
108 }
109 template <typename ExperimentNameT = Aws::String>
110 Trial& WithExperimentName(ExperimentNameT&& value) {
111 SetExperimentName(std::forward<ExperimentNameT>(value));
112 return *this;
113 }
115
117
118 inline const TrialSource& GetSource() const { return m_source; }
119 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
120 template <typename SourceT = TrialSource>
121 void SetSource(SourceT&& value) {
122 m_sourceHasBeenSet = true;
123 m_source = std::forward<SourceT>(value);
124 }
125 template <typename SourceT = TrialSource>
126 Trial& WithSource(SourceT&& value) {
127 SetSource(std::forward<SourceT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
137 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
138 template <typename CreationTimeT = Aws::Utils::DateTime>
139 void SetCreationTime(CreationTimeT&& value) {
140 m_creationTimeHasBeenSet = true;
141 m_creationTime = std::forward<CreationTimeT>(value);
142 }
143 template <typename CreationTimeT = Aws::Utils::DateTime>
144 Trial& WithCreationTime(CreationTimeT&& value) {
145 SetCreationTime(std::forward<CreationTimeT>(value));
146 return *this;
147 }
149
151
154 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
155 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
156 template <typename CreatedByT = UserContext>
157 void SetCreatedBy(CreatedByT&& value) {
158 m_createdByHasBeenSet = true;
159 m_createdBy = std::forward<CreatedByT>(value);
160 }
161 template <typename CreatedByT = UserContext>
162 Trial& WithCreatedBy(CreatedByT&& value) {
163 SetCreatedBy(std::forward<CreatedByT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
173 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
174 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
175 void SetLastModifiedTime(LastModifiedTimeT&& value) {
176 m_lastModifiedTimeHasBeenSet = true;
177 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
178 }
179 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
180 Trial& WithLastModifiedTime(LastModifiedTimeT&& value) {
181 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
182 return *this;
183 }
185
187
188 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
189 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
190 template <typename LastModifiedByT = UserContext>
191 void SetLastModifiedBy(LastModifiedByT&& value) {
192 m_lastModifiedByHasBeenSet = true;
193 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
194 }
195 template <typename LastModifiedByT = UserContext>
196 Trial& WithLastModifiedBy(LastModifiedByT&& value) {
197 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
198 return *this;
199 }
201
203
204 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
205 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
206 template <typename MetadataPropertiesT = MetadataProperties>
207 void SetMetadataProperties(MetadataPropertiesT&& value) {
208 m_metadataPropertiesHasBeenSet = true;
209 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
210 }
211 template <typename MetadataPropertiesT = MetadataProperties>
212 Trial& WithMetadataProperties(MetadataPropertiesT&& value) {
213 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
214 return *this;
215 }
217
219
224 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 template <typename TagsT = Aws::Vector<Tag>>
227 void SetTags(TagsT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags = std::forward<TagsT>(value);
230 }
231 template <typename TagsT = Aws::Vector<Tag>>
232 Trial& WithTags(TagsT&& value) {
233 SetTags(std::forward<TagsT>(value));
234 return *this;
235 }
236 template <typename TagsT = Tag>
237 Trial& AddTags(TagsT&& value) {
238 m_tagsHasBeenSet = true;
239 m_tags.emplace_back(std::forward<TagsT>(value));
240 return *this;
241 }
243
245
249 inline const Aws::Vector<TrialComponentSimpleSummary>& GetTrialComponentSummaries() const { return m_trialComponentSummaries; }
250 inline bool TrialComponentSummariesHasBeenSet() const { return m_trialComponentSummariesHasBeenSet; }
251 template <typename TrialComponentSummariesT = Aws::Vector<TrialComponentSimpleSummary>>
252 void SetTrialComponentSummaries(TrialComponentSummariesT&& value) {
253 m_trialComponentSummariesHasBeenSet = true;
254 m_trialComponentSummaries = std::forward<TrialComponentSummariesT>(value);
255 }
256 template <typename TrialComponentSummariesT = Aws::Vector<TrialComponentSimpleSummary>>
257 Trial& WithTrialComponentSummaries(TrialComponentSummariesT&& value) {
258 SetTrialComponentSummaries(std::forward<TrialComponentSummariesT>(value));
259 return *this;
260 }
261 template <typename TrialComponentSummariesT = TrialComponentSimpleSummary>
262 Trial& AddTrialComponentSummaries(TrialComponentSummariesT&& value) {
263 m_trialComponentSummariesHasBeenSet = true;
264 m_trialComponentSummaries.emplace_back(std::forward<TrialComponentSummariesT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_trialName;
270
271 Aws::String m_trialArn;
272
273 Aws::String m_displayName;
274
275 Aws::String m_experimentName;
276
277 TrialSource m_source;
278
279 Aws::Utils::DateTime m_creationTime{};
280
281 UserContext m_createdBy;
282
283 Aws::Utils::DateTime m_lastModifiedTime{};
284
285 UserContext m_lastModifiedBy;
286
287 MetadataProperties m_metadataProperties;
288
289 Aws::Vector<Tag> m_tags;
290
291 Aws::Vector<TrialComponentSimpleSummary> m_trialComponentSummaries;
292 bool m_trialNameHasBeenSet = false;
293 bool m_trialArnHasBeenSet = false;
294 bool m_displayNameHasBeenSet = false;
295 bool m_experimentNameHasBeenSet = false;
296 bool m_sourceHasBeenSet = false;
297 bool m_creationTimeHasBeenSet = false;
298 bool m_createdByHasBeenSet = false;
299 bool m_lastModifiedTimeHasBeenSet = false;
300 bool m_lastModifiedByHasBeenSet = false;
301 bool m_metadataPropertiesHasBeenSet = false;
302 bool m_tagsHasBeenSet = false;
303 bool m_trialComponentSummariesHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace SageMaker
308} // namespace Aws
Trial & WithTrialArn(TrialArnT &&value)
Definition Trial.h:73
const Aws::String & GetExperimentName() const
Definition Trial.h:102
void SetTrialComponentSummaries(TrialComponentSummariesT &&value)
Definition Trial.h:252
const Aws::Vector< TrialComponentSimpleSummary > & GetTrialComponentSummaries() const
Definition Trial.h:249
Trial & WithSource(SourceT &&value)
Definition Trial.h:126
bool CreationTimeHasBeenSet() const
Definition Trial.h:137
bool DisplayNameHasBeenSet() const
Definition Trial.h:85
bool LastModifiedTimeHasBeenSet() const
Definition Trial.h:173
Trial & WithTags(TagsT &&value)
Definition Trial.h:232
const Aws::String & GetDisplayName() const
Definition Trial.h:84
void SetTrialArn(TrialArnT &&value)
Definition Trial.h:68
const Aws::String & GetTrialName() const
Definition Trial.h:47
Trial & WithDisplayName(DisplayNameT &&value)
Definition Trial.h:92
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Trial.h:191
void SetCreatedBy(CreatedByT &&value)
Definition Trial.h:157
Trial & WithTrialComponentSummaries(TrialComponentSummariesT &&value)
Definition Trial.h:257
const UserContext & GetCreatedBy() const
Definition Trial.h:154
Trial & WithCreatedBy(CreatedByT &&value)
Definition Trial.h:162
const TrialSource & GetSource() const
Definition Trial.h:118
void SetTrialName(TrialNameT &&value)
Definition Trial.h:50
bool TrialNameHasBeenSet() const
Definition Trial.h:48
bool LastModifiedByHasBeenSet() const
Definition Trial.h:189
AWS_SAGEMAKER_API Trial()=default
const Aws::String & GetTrialArn() const
Definition Trial.h:65
const Aws::Vector< Tag > & GetTags() const
Definition Trial.h:224
Trial & WithExperimentName(ExperimentNameT &&value)
Definition Trial.h:110
bool ExperimentNameHasBeenSet() const
Definition Trial.h:103
Trial & AddTrialComponentSummaries(TrialComponentSummariesT &&value)
Definition Trial.h:262
AWS_SAGEMAKER_API Trial(Aws::Utils::Json::JsonView jsonValue)
Trial & WithCreationTime(CreationTimeT &&value)
Definition Trial.h:144
bool TagsHasBeenSet() const
Definition Trial.h:225
Trial & WithMetadataProperties(MetadataPropertiesT &&value)
Definition Trial.h:212
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Trial.h:172
void SetDisplayName(DisplayNameT &&value)
Definition Trial.h:87
bool TrialComponentSummariesHasBeenSet() const
Definition Trial.h:250
void SetCreationTime(CreationTimeT &&value)
Definition Trial.h:139
Trial & WithTrialName(TrialNameT &&value)
Definition Trial.h:55
void SetTags(TagsT &&value)
Definition Trial.h:227
Trial & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Trial.h:180
const Aws::Utils::DateTime & GetCreationTime() const
Definition Trial.h:136
Trial & AddTags(TagsT &&value)
Definition Trial.h:237
const UserContext & GetLastModifiedBy() const
Definition Trial.h:188
void SetMetadataProperties(MetadataPropertiesT &&value)
Definition Trial.h:207
void SetSource(SourceT &&value)
Definition Trial.h:121
bool CreatedByHasBeenSet() const
Definition Trial.h:155
bool TrialArnHasBeenSet() const
Definition Trial.h:66
const MetadataProperties & GetMetadataProperties() const
Definition Trial.h:204
void SetExperimentName(ExperimentNameT &&value)
Definition Trial.h:105
Trial & WithLastModifiedBy(LastModifiedByT &&value)
Definition Trial.h:196
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Trial.h:175
bool MetadataPropertiesHasBeenSet() const
Definition Trial.h:205
bool SourceHasBeenSet() const
Definition Trial.h:119
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API Trial & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue