AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Experiment.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/ExperimentSource.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <aws/sagemaker/model/UserContext.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
37 public:
38 AWS_SAGEMAKER_API Experiment() = default;
39 AWS_SAGEMAKER_API Experiment(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Experiment& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetExperimentName() const { return m_experimentName; }
48 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
49 template <typename ExperimentNameT = Aws::String>
50 void SetExperimentName(ExperimentNameT&& value) {
51 m_experimentNameHasBeenSet = true;
52 m_experimentName = std::forward<ExperimentNameT>(value);
53 }
54 template <typename ExperimentNameT = Aws::String>
55 Experiment& WithExperimentName(ExperimentNameT&& value) {
56 SetExperimentName(std::forward<ExperimentNameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetExperimentArn() const { return m_experimentArn; }
66 inline bool ExperimentArnHasBeenSet() const { return m_experimentArnHasBeenSet; }
67 template <typename ExperimentArnT = Aws::String>
68 void SetExperimentArn(ExperimentArnT&& value) {
69 m_experimentArnHasBeenSet = true;
70 m_experimentArn = std::forward<ExperimentArnT>(value);
71 }
72 template <typename ExperimentArnT = Aws::String>
73 Experiment& WithExperimentArn(ExperimentArnT&& value) {
74 SetExperimentArn(std::forward<ExperimentArnT>(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 Experiment& WithDisplayName(DisplayNameT&& value) {
93 SetDisplayName(std::forward<DisplayNameT>(value));
94 return *this;
95 }
97
99
100 inline const ExperimentSource& GetSource() const { return m_source; }
101 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
102 template <typename SourceT = ExperimentSource>
103 void SetSource(SourceT&& value) {
104 m_sourceHasBeenSet = true;
105 m_source = std::forward<SourceT>(value);
106 }
107 template <typename SourceT = ExperimentSource>
108 Experiment& WithSource(SourceT&& value) {
109 SetSource(std::forward<SourceT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template <typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) {
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
126 Experiment& WithDescription(DescriptionT&& value) {
127 SetDescription(std::forward<DescriptionT>(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 Experiment& 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 Experiment& 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 Experiment& 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 Experiment& WithLastModifiedBy(LastModifiedByT&& value) {
197 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
198 return *this;
199 }
201
203
208 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
209 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
210 template <typename TagsT = Aws::Vector<Tag>>
211 void SetTags(TagsT&& value) {
212 m_tagsHasBeenSet = true;
213 m_tags = std::forward<TagsT>(value);
214 }
215 template <typename TagsT = Aws::Vector<Tag>>
216 Experiment& WithTags(TagsT&& value) {
217 SetTags(std::forward<TagsT>(value));
218 return *this;
219 }
220 template <typename TagsT = Tag>
221 Experiment& AddTags(TagsT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags.emplace_back(std::forward<TagsT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_experimentName;
229
230 Aws::String m_experimentArn;
231
232 Aws::String m_displayName;
233
234 ExperimentSource m_source;
235
236 Aws::String m_description;
237
238 Aws::Utils::DateTime m_creationTime{};
239
240 UserContext m_createdBy;
241
242 Aws::Utils::DateTime m_lastModifiedTime{};
243
244 UserContext m_lastModifiedBy;
245
246 Aws::Vector<Tag> m_tags;
247 bool m_experimentNameHasBeenSet = false;
248 bool m_experimentArnHasBeenSet = false;
249 bool m_displayNameHasBeenSet = false;
250 bool m_sourceHasBeenSet = false;
251 bool m_descriptionHasBeenSet = false;
252 bool m_creationTimeHasBeenSet = false;
253 bool m_createdByHasBeenSet = false;
254 bool m_lastModifiedTimeHasBeenSet = false;
255 bool m_lastModifiedByHasBeenSet = false;
256 bool m_tagsHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace SageMaker
261} // namespace Aws
Experiment & WithTags(TagsT &&value)
Definition Experiment.h:216
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Experiment.h:175
Experiment & WithLastModifiedBy(LastModifiedByT &&value)
Definition Experiment.h:196
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Experiment.h:191
void SetCreationTime(CreationTimeT &&value)
Definition Experiment.h:139
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Experiment.h:172
const Aws::String & GetExperimentArn() const
Definition Experiment.h:65
void SetExperimentName(ExperimentNameT &&value)
Definition Experiment.h:50
Experiment & WithDescription(DescriptionT &&value)
Definition Experiment.h:126
AWS_SAGEMAKER_API Experiment(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Experiment()=default
const Aws::String & GetExperimentName() const
Definition Experiment.h:47
Experiment & WithCreatedBy(CreatedByT &&value)
Definition Experiment.h:162
const Aws::String & GetDescription() const
Definition Experiment.h:118
Experiment & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Experiment.h:180
AWS_SAGEMAKER_API Experiment & operator=(Aws::Utils::Json::JsonView jsonValue)
Experiment & WithExperimentArn(ExperimentArnT &&value)
Definition Experiment.h:73
const ExperimentSource & GetSource() const
Definition Experiment.h:100
const UserContext & GetLastModifiedBy() const
Definition Experiment.h:188
Experiment & WithSource(SourceT &&value)
Definition Experiment.h:108
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Experiment & WithDisplayName(DisplayNameT &&value)
Definition Experiment.h:92
void SetDisplayName(DisplayNameT &&value)
Definition Experiment.h:87
void SetExperimentArn(ExperimentArnT &&value)
Definition Experiment.h:68
const Aws::String & GetDisplayName() const
Definition Experiment.h:84
Experiment & AddTags(TagsT &&value)
Definition Experiment.h:221
Experiment & WithCreationTime(CreationTimeT &&value)
Definition Experiment.h:144
Experiment & WithExperimentName(ExperimentNameT &&value)
Definition Experiment.h:55
void SetSource(SourceT &&value)
Definition Experiment.h:103
const Aws::Vector< Tag > & GetTags() const
Definition Experiment.h:208
void SetCreatedBy(CreatedByT &&value)
Definition Experiment.h:157
const UserContext & GetCreatedBy() const
Definition Experiment.h:154
void SetDescription(DescriptionT &&value)
Definition Experiment.h:121
const Aws::Utils::DateTime & GetCreationTime() const
Definition Experiment.h:136
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue