AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
88 inline const Aws::String& GetContent() const { return m_content; }
89 template <typename ContentT = Aws::String>
90 void SetContent(ContentT&& value) {
91 m_contentHasBeenSet = true;
92 m_content = std::forward<ContentT>(value);
93 }
94 template <typename ContentT = Aws::String>
96 SetContent(std::forward<ContentT>(value));
97 return *this;
98 }
100
102
112 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
114 m_modelCardStatusHasBeenSet = true;
115 m_modelCardStatus = value;
116 }
118 SetModelCardStatus(value);
119 return *this;
120 }
122
124
127 inline const ModelCardSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
128 template <typename SecurityConfigT = ModelCardSecurityConfig>
129 void SetSecurityConfig(SecurityConfigT&& value) {
130 m_securityConfigHasBeenSet = true;
131 m_securityConfig = std::forward<SecurityConfigT>(value);
132 }
133 template <typename SecurityConfigT = ModelCardSecurityConfig>
134 DescribeModelCardResult& WithSecurityConfig(SecurityConfigT&& value) {
135 SetSecurityConfig(std::forward<SecurityConfigT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
145 template <typename CreationTimeT = Aws::Utils::DateTime>
146 void SetCreationTime(CreationTimeT&& value) {
147 m_creationTimeHasBeenSet = true;
148 m_creationTime = std::forward<CreationTimeT>(value);
149 }
150 template <typename CreationTimeT = Aws::Utils::DateTime>
152 SetCreationTime(std::forward<CreationTimeT>(value));
153 return *this;
154 }
156
158
159 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
160 template <typename CreatedByT = UserContext>
161 void SetCreatedBy(CreatedByT&& value) {
162 m_createdByHasBeenSet = true;
163 m_createdBy = std::forward<CreatedByT>(value);
164 }
165 template <typename CreatedByT = UserContext>
167 SetCreatedBy(std::forward<CreatedByT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
177 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
178 void SetLastModifiedTime(LastModifiedTimeT&& value) {
179 m_lastModifiedTimeHasBeenSet = true;
180 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
181 }
182 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
183 DescribeModelCardResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
184 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
185 return *this;
186 }
188
190
191 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
192 template <typename LastModifiedByT = UserContext>
193 void SetLastModifiedBy(LastModifiedByT&& value) {
194 m_lastModifiedByHasBeenSet = true;
195 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
196 }
197 template <typename LastModifiedByT = UserContext>
198 DescribeModelCardResult& WithLastModifiedBy(LastModifiedByT&& value) {
199 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
200 return *this;
201 }
203
205
217 inline ModelCardProcessingStatus GetModelCardProcessingStatus() const { return m_modelCardProcessingStatus; }
219 m_modelCardProcessingStatusHasBeenSet = true;
220 m_modelCardProcessingStatus = value;
221 }
224 return *this;
225 }
227
229
230 inline const Aws::String& GetRequestId() const { return m_requestId; }
231 template <typename RequestIdT = Aws::String>
232 void SetRequestId(RequestIdT&& value) {
233 m_requestIdHasBeenSet = true;
234 m_requestId = std::forward<RequestIdT>(value);
235 }
236 template <typename RequestIdT = Aws::String>
238 SetRequestId(std::forward<RequestIdT>(value));
239 return *this;
240 }
242 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
243
244 private:
245 Aws::String m_modelCardArn;
246
247 Aws::String m_modelCardName;
248
249 int m_modelCardVersion{0};
250
251 Aws::String m_content;
252
253 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
254
255 ModelCardSecurityConfig m_securityConfig;
256
257 Aws::Utils::DateTime m_creationTime{};
258
259 UserContext m_createdBy;
260
261 Aws::Utils::DateTime m_lastModifiedTime{};
262
263 UserContext m_lastModifiedBy;
264
266
267 Aws::String m_requestId;
268 Aws::Http::HttpResponseCode m_HttpResponseCode;
269 bool m_modelCardArnHasBeenSet = false;
270 bool m_modelCardNameHasBeenSet = false;
271 bool m_modelCardVersionHasBeenSet = false;
272 bool m_contentHasBeenSet = false;
273 bool m_modelCardStatusHasBeenSet = false;
274 bool m_securityConfigHasBeenSet = false;
275 bool m_creationTimeHasBeenSet = false;
276 bool m_createdByHasBeenSet = false;
277 bool m_lastModifiedTimeHasBeenSet = false;
278 bool m_lastModifiedByHasBeenSet = false;
279 bool m_modelCardProcessingStatusHasBeenSet = false;
280 bool m_requestIdHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace SageMaker
285} // 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