AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeTrialResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/MetadataProperties.h>
12#include <aws/sagemaker/model/TrialSource.h>
13#include <aws/sagemaker/model/UserContext.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace SageMaker {
27namespace Model {
29 public:
30 AWS_SAGEMAKER_API DescribeTrialResult() = default;
33
35
38 inline const Aws::String& GetTrialName() const { return m_trialName; }
39 template <typename TrialNameT = Aws::String>
40 void SetTrialName(TrialNameT&& value) {
41 m_trialNameHasBeenSet = true;
42 m_trialName = std::forward<TrialNameT>(value);
43 }
44 template <typename TrialNameT = Aws::String>
45 DescribeTrialResult& WithTrialName(TrialNameT&& value) {
46 SetTrialName(std::forward<TrialNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetTrialArn() const { return m_trialArn; }
56 template <typename TrialArnT = Aws::String>
57 void SetTrialArn(TrialArnT&& value) {
58 m_trialArnHasBeenSet = true;
59 m_trialArn = std::forward<TrialArnT>(value);
60 }
61 template <typename TrialArnT = Aws::String>
62 DescribeTrialResult& WithTrialArn(TrialArnT&& value) {
63 SetTrialArn(std::forward<TrialArnT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 template <typename DisplayNameT = Aws::String>
75 void SetDisplayName(DisplayNameT&& value) {
76 m_displayNameHasBeenSet = true;
77 m_displayName = std::forward<DisplayNameT>(value);
78 }
79 template <typename DisplayNameT = Aws::String>
80 DescribeTrialResult& WithDisplayName(DisplayNameT&& value) {
81 SetDisplayName(std::forward<DisplayNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetExperimentName() const { return m_experimentName; }
91 template <typename ExperimentNameT = Aws::String>
92 void SetExperimentName(ExperimentNameT&& value) {
93 m_experimentNameHasBeenSet = true;
94 m_experimentName = std::forward<ExperimentNameT>(value);
95 }
96 template <typename ExperimentNameT = Aws::String>
97 DescribeTrialResult& WithExperimentName(ExperimentNameT&& value) {
98 SetExperimentName(std::forward<ExperimentNameT>(value));
99 return *this;
100 }
102
104
108 inline const TrialSource& GetSource() const { return m_source; }
109 template <typename SourceT = TrialSource>
110 void SetSource(SourceT&& value) {
111 m_sourceHasBeenSet = true;
112 m_source = std::forward<SourceT>(value);
113 }
114 template <typename SourceT = TrialSource>
115 DescribeTrialResult& WithSource(SourceT&& value) {
116 SetSource(std::forward<SourceT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
126 template <typename CreationTimeT = Aws::Utils::DateTime>
127 void SetCreationTime(CreationTimeT&& value) {
128 m_creationTimeHasBeenSet = true;
129 m_creationTime = std::forward<CreationTimeT>(value);
130 }
131 template <typename CreationTimeT = Aws::Utils::DateTime>
132 DescribeTrialResult& WithCreationTime(CreationTimeT&& value) {
133 SetCreationTime(std::forward<CreationTimeT>(value));
134 return *this;
135 }
137
139
142 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
143 template <typename CreatedByT = UserContext>
144 void SetCreatedBy(CreatedByT&& value) {
145 m_createdByHasBeenSet = true;
146 m_createdBy = std::forward<CreatedByT>(value);
147 }
148 template <typename CreatedByT = UserContext>
149 DescribeTrialResult& WithCreatedBy(CreatedByT&& value) {
150 SetCreatedBy(std::forward<CreatedByT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
160 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
161 void SetLastModifiedTime(LastModifiedTimeT&& value) {
162 m_lastModifiedTimeHasBeenSet = true;
163 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
164 }
165 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
166 DescribeTrialResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
167 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
168 return *this;
169 }
171
173
176 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
177 template <typename LastModifiedByT = UserContext>
178 void SetLastModifiedBy(LastModifiedByT&& value) {
179 m_lastModifiedByHasBeenSet = true;
180 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
181 }
182 template <typename LastModifiedByT = UserContext>
183 DescribeTrialResult& WithLastModifiedBy(LastModifiedByT&& value) {
184 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
185 return *this;
186 }
188
190
191 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
192 template <typename MetadataPropertiesT = MetadataProperties>
193 void SetMetadataProperties(MetadataPropertiesT&& value) {
194 m_metadataPropertiesHasBeenSet = true;
195 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
196 }
197 template <typename MetadataPropertiesT = MetadataProperties>
198 DescribeTrialResult& WithMetadataProperties(MetadataPropertiesT&& value) {
199 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
200 return *this;
201 }
203
205
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 template <typename RequestIdT = Aws::String>
208 void SetRequestId(RequestIdT&& value) {
209 m_requestIdHasBeenSet = true;
210 m_requestId = std::forward<RequestIdT>(value);
211 }
212 template <typename RequestIdT = Aws::String>
213 DescribeTrialResult& WithRequestId(RequestIdT&& value) {
214 SetRequestId(std::forward<RequestIdT>(value));
215 return *this;
216 }
218 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
219
220 private:
221 Aws::String m_trialName;
222
223 Aws::String m_trialArn;
224
225 Aws::String m_displayName;
226
227 Aws::String m_experimentName;
228
229 TrialSource m_source;
230
231 Aws::Utils::DateTime m_creationTime{};
232
233 UserContext m_createdBy;
234
235 Aws::Utils::DateTime m_lastModifiedTime{};
236
237 UserContext m_lastModifiedBy;
238
239 MetadataProperties m_metadataProperties;
240
241 Aws::String m_requestId;
242 Aws::Http::HttpResponseCode m_HttpResponseCode;
243 bool m_trialNameHasBeenSet = false;
244 bool m_trialArnHasBeenSet = false;
245 bool m_displayNameHasBeenSet = false;
246 bool m_experimentNameHasBeenSet = false;
247 bool m_sourceHasBeenSet = false;
248 bool m_creationTimeHasBeenSet = false;
249 bool m_createdByHasBeenSet = false;
250 bool m_lastModifiedTimeHasBeenSet = false;
251 bool m_lastModifiedByHasBeenSet = false;
252 bool m_metadataPropertiesHasBeenSet = false;
253 bool m_requestIdHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace SageMaker
258} // namespace Aws
void SetLastModifiedBy(LastModifiedByT &&value)
DescribeTrialResult & WithLastModifiedBy(LastModifiedByT &&value)
DescribeTrialResult & WithRequestId(RequestIdT &&value)
AWS_SAGEMAKER_API DescribeTrialResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
DescribeTrialResult & WithCreationTime(CreationTimeT &&value)
DescribeTrialResult & WithMetadataProperties(MetadataPropertiesT &&value)
const MetadataProperties & GetMetadataProperties() const
DescribeTrialResult & WithExperimentName(ExperimentNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SAGEMAKER_API DescribeTrialResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SAGEMAKER_API DescribeTrialResult()=default
void SetExperimentName(ExperimentNameT &&value)
DescribeTrialResult & WithDisplayName(DisplayNameT &&value)
DescribeTrialResult & WithTrialArn(TrialArnT &&value)
DescribeTrialResult & WithTrialName(TrialNameT &&value)
DescribeTrialResult & WithCreatedBy(CreatedByT &&value)
DescribeTrialResult & WithLastModifiedTime(LastModifiedTimeT &&value)
void SetMetadataProperties(MetadataPropertiesT &&value)
DescribeTrialResult & WithSource(SourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue