AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Trial.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/TrialSource.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/UserContext.h>
12#include <aws/sagemaker/model/MetadataProperties.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/TrialComponentSimpleSummary.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SageMaker
29{
30namespace Model
31{
32
40 class Trial
41 {
42 public:
43 AWS_SAGEMAKER_API Trial();
44 AWS_SAGEMAKER_API Trial(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Trial& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetTrialName() const{ return m_trialName; }
54 inline bool TrialNameHasBeenSet() const { return m_trialNameHasBeenSet; }
55 inline void SetTrialName(const Aws::String& value) { m_trialNameHasBeenSet = true; m_trialName = value; }
56 inline void SetTrialName(Aws::String&& value) { m_trialNameHasBeenSet = true; m_trialName = std::move(value); }
57 inline void SetTrialName(const char* value) { m_trialNameHasBeenSet = true; m_trialName.assign(value); }
58 inline Trial& WithTrialName(const Aws::String& value) { SetTrialName(value); return *this;}
59 inline Trial& WithTrialName(Aws::String&& value) { SetTrialName(std::move(value)); return *this;}
60 inline Trial& WithTrialName(const char* value) { SetTrialName(value); return *this;}
62
64
67 inline const Aws::String& GetTrialArn() const{ return m_trialArn; }
68 inline bool TrialArnHasBeenSet() const { return m_trialArnHasBeenSet; }
69 inline void SetTrialArn(const Aws::String& value) { m_trialArnHasBeenSet = true; m_trialArn = value; }
70 inline void SetTrialArn(Aws::String&& value) { m_trialArnHasBeenSet = true; m_trialArn = std::move(value); }
71 inline void SetTrialArn(const char* value) { m_trialArnHasBeenSet = true; m_trialArn.assign(value); }
72 inline Trial& WithTrialArn(const Aws::String& value) { SetTrialArn(value); return *this;}
73 inline Trial& WithTrialArn(Aws::String&& value) { SetTrialArn(std::move(value)); return *this;}
74 inline Trial& WithTrialArn(const char* value) { SetTrialArn(value); return *this;}
76
78
82 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
83 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
84 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
85 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
86 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
87 inline Trial& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
88 inline Trial& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
89 inline Trial& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
91
93
96 inline const Aws::String& GetExperimentName() const{ return m_experimentName; }
97 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
98 inline void SetExperimentName(const Aws::String& value) { m_experimentNameHasBeenSet = true; m_experimentName = value; }
99 inline void SetExperimentName(Aws::String&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::move(value); }
100 inline void SetExperimentName(const char* value) { m_experimentNameHasBeenSet = true; m_experimentName.assign(value); }
101 inline Trial& WithExperimentName(const Aws::String& value) { SetExperimentName(value); return *this;}
102 inline Trial& WithExperimentName(Aws::String&& value) { SetExperimentName(std::move(value)); return *this;}
103 inline Trial& WithExperimentName(const char* value) { SetExperimentName(value); return *this;}
105
107
108 inline const TrialSource& GetSource() const{ return m_source; }
109 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
110 inline void SetSource(const TrialSource& value) { m_sourceHasBeenSet = true; m_source = value; }
111 inline void SetSource(TrialSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
112 inline Trial& WithSource(const TrialSource& value) { SetSource(value); return *this;}
113 inline Trial& WithSource(TrialSource&& value) { SetSource(std::move(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
121 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
122 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
123 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
124 inline Trial& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
125 inline Trial& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
127
129
132 inline const UserContext& GetCreatedBy() const{ return m_createdBy; }
133 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
134 inline void SetCreatedBy(const UserContext& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
135 inline void SetCreatedBy(UserContext&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
136 inline Trial& WithCreatedBy(const UserContext& value) { SetCreatedBy(value); return *this;}
137 inline Trial& WithCreatedBy(UserContext&& value) { SetCreatedBy(std::move(value)); return *this;}
139
141
144 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
145 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
146 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
147 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
148 inline Trial& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
149 inline Trial& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
151
153
154 inline const UserContext& GetLastModifiedBy() const{ return m_lastModifiedBy; }
155 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
156 inline void SetLastModifiedBy(const UserContext& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
157 inline void SetLastModifiedBy(UserContext&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
158 inline Trial& WithLastModifiedBy(const UserContext& value) { SetLastModifiedBy(value); return *this;}
159 inline Trial& WithLastModifiedBy(UserContext&& value) { SetLastModifiedBy(std::move(value)); return *this;}
161
163
164 inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; }
165 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
166 inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; }
167 inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); }
168 inline Trial& WithMetadataProperties(const MetadataProperties& value) { SetMetadataProperties(value); return *this;}
169 inline Trial& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;}
171
173
178 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
181 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
182 inline Trial& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
183 inline Trial& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
184 inline Trial& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
185 inline Trial& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
187
189
193 inline const Aws::Vector<TrialComponentSimpleSummary>& GetTrialComponentSummaries() const{ return m_trialComponentSummaries; }
194 inline bool TrialComponentSummariesHasBeenSet() const { return m_trialComponentSummariesHasBeenSet; }
195 inline void SetTrialComponentSummaries(const Aws::Vector<TrialComponentSimpleSummary>& value) { m_trialComponentSummariesHasBeenSet = true; m_trialComponentSummaries = value; }
196 inline void SetTrialComponentSummaries(Aws::Vector<TrialComponentSimpleSummary>&& value) { m_trialComponentSummariesHasBeenSet = true; m_trialComponentSummaries = std::move(value); }
199 inline Trial& AddTrialComponentSummaries(const TrialComponentSimpleSummary& value) { m_trialComponentSummariesHasBeenSet = true; m_trialComponentSummaries.push_back(value); return *this; }
200 inline Trial& AddTrialComponentSummaries(TrialComponentSimpleSummary&& value) { m_trialComponentSummariesHasBeenSet = true; m_trialComponentSummaries.push_back(std::move(value)); return *this; }
202 private:
203
204 Aws::String m_trialName;
205 bool m_trialNameHasBeenSet = false;
206
207 Aws::String m_trialArn;
208 bool m_trialArnHasBeenSet = false;
209
210 Aws::String m_displayName;
211 bool m_displayNameHasBeenSet = false;
212
213 Aws::String m_experimentName;
214 bool m_experimentNameHasBeenSet = false;
215
216 TrialSource m_source;
217 bool m_sourceHasBeenSet = false;
218
219 Aws::Utils::DateTime m_creationTime;
220 bool m_creationTimeHasBeenSet = false;
221
222 UserContext m_createdBy;
223 bool m_createdByHasBeenSet = false;
224
225 Aws::Utils::DateTime m_lastModifiedTime;
226 bool m_lastModifiedTimeHasBeenSet = false;
227
228 UserContext m_lastModifiedBy;
229 bool m_lastModifiedByHasBeenSet = false;
230
231 MetadataProperties m_metadataProperties;
232 bool m_metadataPropertiesHasBeenSet = false;
233
234 Aws::Vector<Tag> m_tags;
235 bool m_tagsHasBeenSet = false;
236
237 Aws::Vector<TrialComponentSimpleSummary> m_trialComponentSummaries;
238 bool m_trialComponentSummariesHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace SageMaker
243} // namespace Aws
const Aws::String & GetExperimentName() const
Definition Trial.h:96
const Aws::Vector< TrialComponentSimpleSummary > & GetTrialComponentSummaries() const
Definition Trial.h:193
Trial & AddTrialComponentSummaries(const TrialComponentSimpleSummary &value)
Definition Trial.h:199
Trial & WithTrialArn(Aws::String &&value)
Definition Trial.h:73
bool CreationTimeHasBeenSet() const
Definition Trial.h:121
Trial & WithDisplayName(Aws::String &&value)
Definition Trial.h:88
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Trial.h:147
bool DisplayNameHasBeenSet() const
Definition Trial.h:83
bool LastModifiedTimeHasBeenSet() const
Definition Trial.h:145
Trial & WithMetadataProperties(MetadataProperties &&value)
Definition Trial.h:169
Trial & WithExperimentName(const char *value)
Definition Trial.h:103
const Aws::String & GetDisplayName() const
Definition Trial.h:82
void SetDisplayName(const Aws::String &value)
Definition Trial.h:84
Trial & WithExperimentName(Aws::String &&value)
Definition Trial.h:102
void SetCreatedBy(const UserContext &value)
Definition Trial.h:134
const Aws::String & GetTrialName() const
Definition Trial.h:53
void SetTrialName(const char *value)
Definition Trial.h:57
void SetTrialComponentSummaries(const Aws::Vector< TrialComponentSimpleSummary > &value)
Definition Trial.h:195
AWS_SAGEMAKER_API Trial()
Trial & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition Trial.h:149
Trial & AddTrialComponentSummaries(TrialComponentSimpleSummary &&value)
Definition Trial.h:200
Trial & WithTags(Aws::Vector< Tag > &&value)
Definition Trial.h:183
Trial & AddTags(Tag &&value)
Definition Trial.h:185
void SetLastModifiedBy(const UserContext &value)
Definition Trial.h:156
void SetMetadataProperties(MetadataProperties &&value)
Definition Trial.h:167
void SetTrialArn(const Aws::String &value)
Definition Trial.h:69
const UserContext & GetCreatedBy() const
Definition Trial.h:132
void SetExperimentName(const char *value)
Definition Trial.h:100
const TrialSource & GetSource() const
Definition Trial.h:108
Trial & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Trial.h:148
void SetTrialArn(const char *value)
Definition Trial.h:71
void SetTrialArn(Aws::String &&value)
Definition Trial.h:70
bool TrialNameHasBeenSet() const
Definition Trial.h:54
bool LastModifiedByHasBeenSet() const
Definition Trial.h:155
Trial & WithCreatedBy(const UserContext &value)
Definition Trial.h:136
const Aws::String & GetTrialArn() const
Definition Trial.h:67
const Aws::Vector< Tag > & GetTags() const
Definition Trial.h:178
Trial & WithDisplayName(const Aws::String &value)
Definition Trial.h:87
void SetCreatedBy(UserContext &&value)
Definition Trial.h:135
Trial & WithTrialComponentSummaries(const Aws::Vector< TrialComponentSimpleSummary > &value)
Definition Trial.h:197
Trial & WithTrialArn(const char *value)
Definition Trial.h:74
bool ExperimentNameHasBeenSet() const
Definition Trial.h:97
Trial & WithTrialComponentSummaries(Aws::Vector< TrialComponentSimpleSummary > &&value)
Definition Trial.h:198
Trial & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Trial.h:125
AWS_SAGEMAKER_API Trial(Aws::Utils::Json::JsonView jsonValue)
Trial & WithSource(const TrialSource &value)
Definition Trial.h:112
Trial & WithCreatedBy(UserContext &&value)
Definition Trial.h:137
bool TagsHasBeenSet() const
Definition Trial.h:179
Trial & WithDisplayName(const char *value)
Definition Trial.h:89
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Trial.h:144
void SetExperimentName(const Aws::String &value)
Definition Trial.h:98
void SetExperimentName(Aws::String &&value)
Definition Trial.h:99
bool TrialComponentSummariesHasBeenSet() const
Definition Trial.h:194
Trial & WithExperimentName(const Aws::String &value)
Definition Trial.h:101
Trial & WithTrialName(const char *value)
Definition Trial.h:60
void SetTags(const Aws::Vector< Tag > &value)
Definition Trial.h:180
const Aws::Utils::DateTime & GetCreationTime() const
Definition Trial.h:120
void SetTrialName(Aws::String &&value)
Definition Trial.h:56
const UserContext & GetLastModifiedBy() const
Definition Trial.h:154
void SetTrialName(const Aws::String &value)
Definition Trial.h:55
Trial & WithTags(const Aws::Vector< Tag > &value)
Definition Trial.h:182
void SetTags(Aws::Vector< Tag > &&value)
Definition Trial.h:181
Trial & WithTrialArn(const Aws::String &value)
Definition Trial.h:72
Trial & WithSource(TrialSource &&value)
Definition Trial.h:113
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Trial.h:122
Trial & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Trial.h:124
bool CreatedByHasBeenSet() const
Definition Trial.h:133
void SetDisplayName(Aws::String &&value)
Definition Trial.h:85
void SetSource(TrialSource &&value)
Definition Trial.h:111
void SetTrialComponentSummaries(Aws::Vector< TrialComponentSimpleSummary > &&value)
Definition Trial.h:196
bool TrialArnHasBeenSet() const
Definition Trial.h:68
void SetMetadataProperties(const MetadataProperties &value)
Definition Trial.h:166
Trial & WithTrialName(const Aws::String &value)
Definition Trial.h:58
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Trial.h:123
const MetadataProperties & GetMetadataProperties() const
Definition Trial.h:164
Trial & WithTrialName(Aws::String &&value)
Definition Trial.h:59
void SetLastModifiedBy(UserContext &&value)
Definition Trial.h:157
void SetDisplayName(const char *value)
Definition Trial.h:86
bool MetadataPropertiesHasBeenSet() const
Definition Trial.h:165
Trial & WithMetadataProperties(const MetadataProperties &value)
Definition Trial.h:168
Trial & WithLastModifiedBy(UserContext &&value)
Definition Trial.h:159
void SetSource(const TrialSource &value)
Definition Trial.h:110
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition Trial.h:146
Trial & WithLastModifiedBy(const UserContext &value)
Definition Trial.h:158
Trial & AddTags(const Tag &value)
Definition Trial.h:184
bool SourceHasBeenSet() const
Definition Trial.h:109
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