AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
DescribeModelCardResult.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/ModelCardProcessingStatus.h>
12#include <aws/sagemaker/model/ModelCardSecurityConfig.h>
13#include <aws/sagemaker/model/ModelCardStatus.h>
14#include <aws/sagemaker/model/UserContext.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker {
28namespace Model {
30 public:
31 AWS_SAGEMAKER_API DescribeModelCardResult() = default;
34
36
39 inline const Aws::String& GetModelCardArn() const { return m_modelCardArn; }
40 template <typename ModelCardArnT = Aws::String>
41 void SetModelCardArn(ModelCardArnT&& value) {
42 m_modelCardArnHasBeenSet = true;
43 m_modelCardArn = std::forward<ModelCardArnT>(value);
44 }
45 template <typename ModelCardArnT = Aws::String>
46 DescribeModelCardResult& WithModelCardArn(ModelCardArnT&& value) {
47 SetModelCardArn(std::forward<ModelCardArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetModelCardName() const { return m_modelCardName; }
57 template <typename ModelCardNameT = Aws::String>
58 void SetModelCardName(ModelCardNameT&& value) {
59 m_modelCardNameHasBeenSet = true;
60 m_modelCardName = std::forward<ModelCardNameT>(value);
61 }
62 template <typename ModelCardNameT = Aws::String>
63 DescribeModelCardResult& WithModelCardName(ModelCardNameT&& value) {
64 SetModelCardName(std::forward<ModelCardNameT>(value));
65 return *this;
66 }
68
70
73 inline int GetModelCardVersion() const { return m_modelCardVersion; }
74 inline void SetModelCardVersion(int value) {
75 m_modelCardVersionHasBeenSet = true;
76 m_modelCardVersion = value;
77 }
80 return *this;
81 }
83
85
103 inline const Aws::String& GetContent() const { return m_content; }
104 template <typename ContentT = Aws::String>
105 void SetContent(ContentT&& value) {
106 m_contentHasBeenSet = true;
107 m_content = std::forward<ContentT>(value);
108 }
109 template <typename ContentT = Aws::String>
111 SetContent(std::forward<ContentT>(value));
112 return *this;
113 }
115
117
127 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
129 m_modelCardStatusHasBeenSet = true;
130 m_modelCardStatus = value;
131 }
133 SetModelCardStatus(value);
134 return *this;
135 }
137
139
142 inline const ModelCardSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
143 template <typename SecurityConfigT = ModelCardSecurityConfig>
144 void SetSecurityConfig(SecurityConfigT&& value) {
145 m_securityConfigHasBeenSet = true;
146 m_securityConfig = std::forward<SecurityConfigT>(value);
147 }
148 template <typename SecurityConfigT = ModelCardSecurityConfig>
149 DescribeModelCardResult& WithSecurityConfig(SecurityConfigT&& value) {
150 SetSecurityConfig(std::forward<SecurityConfigT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
160 template <typename CreationTimeT = Aws::Utils::DateTime>
161 void SetCreationTime(CreationTimeT&& value) {
162 m_creationTimeHasBeenSet = true;
163 m_creationTime = std::forward<CreationTimeT>(value);
164 }
165 template <typename CreationTimeT = Aws::Utils::DateTime>
167 SetCreationTime(std::forward<CreationTimeT>(value));
168 return *this;
169 }
171
173
174 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
175 template <typename CreatedByT = UserContext>
176 void SetCreatedBy(CreatedByT&& value) {
177 m_createdByHasBeenSet = true;
178 m_createdBy = std::forward<CreatedByT>(value);
179 }
180 template <typename CreatedByT = UserContext>
182 SetCreatedBy(std::forward<CreatedByT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
192 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
193 void SetLastModifiedTime(LastModifiedTimeT&& value) {
194 m_lastModifiedTimeHasBeenSet = true;
195 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
196 }
197 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
198 DescribeModelCardResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
199 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
200 return *this;
201 }
203
205
206 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
207 template <typename LastModifiedByT = UserContext>
208 void SetLastModifiedBy(LastModifiedByT&& value) {
209 m_lastModifiedByHasBeenSet = true;
210 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
211 }
212 template <typename LastModifiedByT = UserContext>
213 DescribeModelCardResult& WithLastModifiedBy(LastModifiedByT&& value) {
214 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
215 return *this;
216 }
218
220
232 inline ModelCardProcessingStatus GetModelCardProcessingStatus() const { return m_modelCardProcessingStatus; }
234 m_modelCardProcessingStatusHasBeenSet = true;
235 m_modelCardProcessingStatus = value;
236 }
239 return *this;
240 }
242
244
245 inline const Aws::String& GetRequestId() const { return m_requestId; }
246 template <typename RequestIdT = Aws::String>
247 void SetRequestId(RequestIdT&& value) {
248 m_requestIdHasBeenSet = true;
249 m_requestId = std::forward<RequestIdT>(value);
250 }
251 template <typename RequestIdT = Aws::String>
253 SetRequestId(std::forward<RequestIdT>(value));
254 return *this;
255 }
257 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
258
259 private:
260 Aws::String m_modelCardArn;
261
262 Aws::String m_modelCardName;
263
264 int m_modelCardVersion{0};
265
266 Aws::String m_content;
267
268 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
269
270 ModelCardSecurityConfig m_securityConfig;
271
272 Aws::Utils::DateTime m_creationTime{};
273
274 UserContext m_createdBy;
275
276 Aws::Utils::DateTime m_lastModifiedTime{};
277
278 UserContext m_lastModifiedBy;
279
281
282 Aws::String m_requestId;
283 Aws::Http::HttpResponseCode m_HttpResponseCode;
284 bool m_modelCardArnHasBeenSet = false;
285 bool m_modelCardNameHasBeenSet = false;
286 bool m_modelCardVersionHasBeenSet = false;
287 bool m_contentHasBeenSet = false;
288 bool m_modelCardStatusHasBeenSet = false;
289 bool m_securityConfigHasBeenSet = false;
290 bool m_creationTimeHasBeenSet = false;
291 bool m_createdByHasBeenSet = false;
292 bool m_lastModifiedTimeHasBeenSet = false;
293 bool m_lastModifiedByHasBeenSet = false;
294 bool m_modelCardProcessingStatusHasBeenSet = false;
295 bool m_requestIdHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace SageMaker
300} // namespace Aws
DescribeModelCardResult & WithLastModifiedTime(LastModifiedTimeT &&value)
DescribeModelCardResult & WithModelCardStatus(ModelCardStatus value)
DescribeModelCardResult & WithModelCardArn(ModelCardArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_SAGEMAKER_API DescribeModelCardResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeModelCardResult & WithSecurityConfig(SecurityConfigT &&value)
DescribeModelCardResult & WithContent(ContentT &&value)
DescribeModelCardResult & WithCreationTime(CreationTimeT &&value)
void SetModelCardProcessingStatus(ModelCardProcessingStatus value)
AWS_SAGEMAKER_API DescribeModelCardResult()=default
AWS_SAGEMAKER_API DescribeModelCardResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreationTime() const
DescribeModelCardResult & WithModelCardVersion(int value)
DescribeModelCardResult & WithCreatedBy(CreatedByT &&value)
DescribeModelCardResult & WithLastModifiedBy(LastModifiedByT &&value)
ModelCardProcessingStatus GetModelCardProcessingStatus() const
DescribeModelCardResult & WithModelCardProcessingStatus(ModelCardProcessingStatus value)
const ModelCardSecurityConfig & GetSecurityConfig() const
DescribeModelCardResult & WithModelCardName(ModelCardNameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeModelCardResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue