AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Experiment.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/ExperimentSource.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/sagemaker/model/UserContext.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker
27{
28namespace Model
29{
30
41 {
42 public:
43 AWS_SAGEMAKER_API Experiment() = default;
44 AWS_SAGEMAKER_API Experiment(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SAGEMAKER_API Experiment& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetExperimentName() const { return m_experimentName; }
54 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
55 template<typename ExperimentNameT = Aws::String>
56 void SetExperimentName(ExperimentNameT&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::forward<ExperimentNameT>(value); }
57 template<typename ExperimentNameT = Aws::String>
58 Experiment& WithExperimentName(ExperimentNameT&& value) { SetExperimentName(std::forward<ExperimentNameT>(value)); return *this;}
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) { m_experimentArnHasBeenSet = true; m_experimentArn = std::forward<ExperimentArnT>(value); }
69 template<typename ExperimentArnT = Aws::String>
70 Experiment& WithExperimentArn(ExperimentArnT&& value) { SetExperimentArn(std::forward<ExperimentArnT>(value)); return *this;}
72
74
78 inline const Aws::String& GetDisplayName() const { return m_displayName; }
79 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
80 template<typename DisplayNameT = Aws::String>
81 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
82 template<typename DisplayNameT = Aws::String>
83 Experiment& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
85
87
88 inline const ExperimentSource& GetSource() const { return m_source; }
89 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
90 template<typename SourceT = ExperimentSource>
91 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
92 template<typename SourceT = ExperimentSource>
93 Experiment& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 Experiment& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
113 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
114 template<typename CreationTimeT = Aws::Utils::DateTime>
115 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
116 template<typename CreationTimeT = Aws::Utils::DateTime>
117 Experiment& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
119
121
124 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
125 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
126 template<typename CreatedByT = UserContext>
127 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
128 template<typename CreatedByT = UserContext>
129 Experiment& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
137 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
138 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
139 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
140 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
141 Experiment& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
143
145
146 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
147 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
148 template<typename LastModifiedByT = UserContext>
149 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
150 template<typename LastModifiedByT = UserContext>
151 Experiment& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
153
155
160 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
161 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
162 template<typename TagsT = Aws::Vector<Tag>>
163 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
164 template<typename TagsT = Aws::Vector<Tag>>
165 Experiment& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
166 template<typename TagsT = Tag>
167 Experiment& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
169 private:
170
171 Aws::String m_experimentName;
172 bool m_experimentNameHasBeenSet = false;
173
174 Aws::String m_experimentArn;
175 bool m_experimentArnHasBeenSet = false;
176
177 Aws::String m_displayName;
178 bool m_displayNameHasBeenSet = false;
179
180 ExperimentSource m_source;
181 bool m_sourceHasBeenSet = false;
182
183 Aws::String m_description;
184 bool m_descriptionHasBeenSet = false;
185
186 Aws::Utils::DateTime m_creationTime{};
187 bool m_creationTimeHasBeenSet = false;
188
189 UserContext m_createdBy;
190 bool m_createdByHasBeenSet = false;
191
192 Aws::Utils::DateTime m_lastModifiedTime{};
193 bool m_lastModifiedTimeHasBeenSet = false;
194
195 UserContext m_lastModifiedBy;
196 bool m_lastModifiedByHasBeenSet = false;
197
198 Aws::Vector<Tag> m_tags;
199 bool m_tagsHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace SageMaker
204} // namespace Aws
Experiment & WithTags(TagsT &&value)
Definition Experiment.h:165
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Experiment.h:139
Experiment & WithLastModifiedBy(LastModifiedByT &&value)
Definition Experiment.h:151
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Experiment.h:149
void SetCreationTime(CreationTimeT &&value)
Definition Experiment.h:115
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Experiment.h:136
const Aws::String & GetExperimentArn() const
Definition Experiment.h:65
void SetExperimentName(ExperimentNameT &&value)
Definition Experiment.h:56
Experiment & WithDescription(DescriptionT &&value)
Definition Experiment.h:105
AWS_SAGEMAKER_API Experiment(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Experiment()=default
const Aws::String & GetExperimentName() const
Definition Experiment.h:53
Experiment & WithCreatedBy(CreatedByT &&value)
Definition Experiment.h:129
const Aws::String & GetDescription() const
Definition Experiment.h:100
Experiment & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Experiment.h:141
AWS_SAGEMAKER_API Experiment & operator=(Aws::Utils::Json::JsonView jsonValue)
Experiment & WithExperimentArn(ExperimentArnT &&value)
Definition Experiment.h:70
const ExperimentSource & GetSource() const
Definition Experiment.h:88
const UserContext & GetLastModifiedBy() const
Definition Experiment.h:146
Experiment & WithSource(SourceT &&value)
Definition Experiment.h:93
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Experiment & WithDisplayName(DisplayNameT &&value)
Definition Experiment.h:83
void SetDisplayName(DisplayNameT &&value)
Definition Experiment.h:81
void SetExperimentArn(ExperimentArnT &&value)
Definition Experiment.h:68
const Aws::String & GetDisplayName() const
Definition Experiment.h:78
Experiment & AddTags(TagsT &&value)
Definition Experiment.h:167
Experiment & WithCreationTime(CreationTimeT &&value)
Definition Experiment.h:117
Experiment & WithExperimentName(ExperimentNameT &&value)
Definition Experiment.h:58
void SetSource(SourceT &&value)
Definition Experiment.h:91
const Aws::Vector< Tag > & GetTags() const
Definition Experiment.h:160
void SetCreatedBy(CreatedByT &&value)
Definition Experiment.h:127
const UserContext & GetCreatedBy() const
Definition Experiment.h:124
void SetDescription(DescriptionT &&value)
Definition Experiment.h:103
const Aws::Utils::DateTime & GetCreationTime() const
Definition Experiment.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue