AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelCard.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/ModelCardSecurityConfig.h>
12#include <aws/sagemaker/model/ModelCardStatus.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <aws/sagemaker/model/UserContext.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
27
33class ModelCard {
34 public:
35 AWS_SAGEMAKER_API ModelCard() = default;
36 AWS_SAGEMAKER_API ModelCard(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SAGEMAKER_API ModelCard& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetModelCardArn() const { return m_modelCardArn; }
45 inline bool ModelCardArnHasBeenSet() const { return m_modelCardArnHasBeenSet; }
46 template <typename ModelCardArnT = Aws::String>
47 void SetModelCardArn(ModelCardArnT&& value) {
48 m_modelCardArnHasBeenSet = true;
49 m_modelCardArn = std::forward<ModelCardArnT>(value);
50 }
51 template <typename ModelCardArnT = Aws::String>
52 ModelCard& WithModelCardArn(ModelCardArnT&& value) {
53 SetModelCardArn(std::forward<ModelCardArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetModelCardName() const { return m_modelCardName; }
63 inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
64 template <typename ModelCardNameT = Aws::String>
65 void SetModelCardName(ModelCardNameT&& value) {
66 m_modelCardNameHasBeenSet = true;
67 m_modelCardName = std::forward<ModelCardNameT>(value);
68 }
69 template <typename ModelCardNameT = Aws::String>
70 ModelCard& WithModelCardName(ModelCardNameT&& value) {
71 SetModelCardName(std::forward<ModelCardNameT>(value));
72 return *this;
73 }
75
77
80 inline int GetModelCardVersion() const { return m_modelCardVersion; }
81 inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; }
82 inline void SetModelCardVersion(int value) {
83 m_modelCardVersionHasBeenSet = true;
84 m_modelCardVersion = value;
85 }
86 inline ModelCard& WithModelCardVersion(int value) {
88 return *this;
89 }
91
93
98 inline const Aws::String& GetContent() const { return m_content; }
99 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
100 template <typename ContentT = Aws::String>
101 void SetContent(ContentT&& value) {
102 m_contentHasBeenSet = true;
103 m_content = std::forward<ContentT>(value);
104 }
105 template <typename ContentT = Aws::String>
106 ModelCard& WithContent(ContentT&& value) {
107 SetContent(std::forward<ContentT>(value));
108 return *this;
109 }
111
113
123 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
124 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
126 m_modelCardStatusHasBeenSet = true;
127 m_modelCardStatus = value;
128 }
130 SetModelCardStatus(value);
131 return *this;
132 }
134
136
139 inline const ModelCardSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
140 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
141 template <typename SecurityConfigT = ModelCardSecurityConfig>
142 void SetSecurityConfig(SecurityConfigT&& value) {
143 m_securityConfigHasBeenSet = true;
144 m_securityConfig = std::forward<SecurityConfigT>(value);
145 }
146 template <typename SecurityConfigT = ModelCardSecurityConfig>
147 ModelCard& WithSecurityConfig(SecurityConfigT&& value) {
148 SetSecurityConfig(std::forward<SecurityConfigT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
158 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
159 template <typename CreationTimeT = Aws::Utils::DateTime>
160 void SetCreationTime(CreationTimeT&& value) {
161 m_creationTimeHasBeenSet = true;
162 m_creationTime = std::forward<CreationTimeT>(value);
163 }
164 template <typename CreationTimeT = Aws::Utils::DateTime>
165 ModelCard& WithCreationTime(CreationTimeT&& value) {
166 SetCreationTime(std::forward<CreationTimeT>(value));
167 return *this;
168 }
170
172
173 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
174 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
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>
181 ModelCard& WithCreatedBy(CreatedByT&& value) {
182 SetCreatedBy(std::forward<CreatedByT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
192 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
193 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
194 void SetLastModifiedTime(LastModifiedTimeT&& value) {
195 m_lastModifiedTimeHasBeenSet = true;
196 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
197 }
198 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
199 ModelCard& WithLastModifiedTime(LastModifiedTimeT&& value) {
200 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
201 return *this;
202 }
204
206
207 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
208 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
209 template <typename LastModifiedByT = UserContext>
210 void SetLastModifiedBy(LastModifiedByT&& value) {
211 m_lastModifiedByHasBeenSet = true;
212 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
213 }
214 template <typename LastModifiedByT = UserContext>
215 ModelCard& WithLastModifiedBy(LastModifiedByT&& value) {
216 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
226 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
227 template <typename TagsT = Aws::Vector<Tag>>
228 void SetTags(TagsT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags = std::forward<TagsT>(value);
231 }
232 template <typename TagsT = Aws::Vector<Tag>>
233 ModelCard& WithTags(TagsT&& value) {
234 SetTags(std::forward<TagsT>(value));
235 return *this;
236 }
237 template <typename TagsT = Tag>
238 ModelCard& AddTags(TagsT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags.emplace_back(std::forward<TagsT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetModelId() const { return m_modelId; }
250 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
251 template <typename ModelIdT = Aws::String>
252 void SetModelId(ModelIdT&& value) {
253 m_modelIdHasBeenSet = true;
254 m_modelId = std::forward<ModelIdT>(value);
255 }
256 template <typename ModelIdT = Aws::String>
257 ModelCard& WithModelId(ModelIdT&& value) {
258 SetModelId(std::forward<ModelIdT>(value));
259 return *this;
260 }
262
264
270 inline const Aws::String& GetRiskRating() const { return m_riskRating; }
271 inline bool RiskRatingHasBeenSet() const { return m_riskRatingHasBeenSet; }
272 template <typename RiskRatingT = Aws::String>
273 void SetRiskRating(RiskRatingT&& value) {
274 m_riskRatingHasBeenSet = true;
275 m_riskRating = std::forward<RiskRatingT>(value);
276 }
277 template <typename RiskRatingT = Aws::String>
278 ModelCard& WithRiskRating(RiskRatingT&& value) {
279 SetRiskRating(std::forward<RiskRatingT>(value));
280 return *this;
281 }
283
285
290 inline const Aws::String& GetModelPackageGroupName() const { return m_modelPackageGroupName; }
291 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
292 template <typename ModelPackageGroupNameT = Aws::String>
293 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) {
294 m_modelPackageGroupNameHasBeenSet = true;
295 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
296 }
297 template <typename ModelPackageGroupNameT = Aws::String>
298 ModelCard& WithModelPackageGroupName(ModelPackageGroupNameT&& value) {
299 SetModelPackageGroupName(std::forward<ModelPackageGroupNameT>(value));
300 return *this;
301 }
303 private:
304 Aws::String m_modelCardArn;
305
306 Aws::String m_modelCardName;
307
308 int m_modelCardVersion{0};
309
310 Aws::String m_content;
311
312 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
313
314 ModelCardSecurityConfig m_securityConfig;
315
316 Aws::Utils::DateTime m_creationTime{};
317
318 UserContext m_createdBy;
319
320 Aws::Utils::DateTime m_lastModifiedTime{};
321
322 UserContext m_lastModifiedBy;
323
324 Aws::Vector<Tag> m_tags;
325
326 Aws::String m_modelId;
327
328 Aws::String m_riskRating;
329
330 Aws::String m_modelPackageGroupName;
331 bool m_modelCardArnHasBeenSet = false;
332 bool m_modelCardNameHasBeenSet = false;
333 bool m_modelCardVersionHasBeenSet = false;
334 bool m_contentHasBeenSet = false;
335 bool m_modelCardStatusHasBeenSet = false;
336 bool m_securityConfigHasBeenSet = false;
337 bool m_creationTimeHasBeenSet = false;
338 bool m_createdByHasBeenSet = false;
339 bool m_lastModifiedTimeHasBeenSet = false;
340 bool m_lastModifiedByHasBeenSet = false;
341 bool m_tagsHasBeenSet = false;
342 bool m_modelIdHasBeenSet = false;
343 bool m_riskRatingHasBeenSet = false;
344 bool m_modelPackageGroupNameHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace SageMaker
349} // namespace Aws
AWS_SAGEMAKER_API ModelCard & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRiskRating() const
Definition ModelCard.h:270
void SetLastModifiedBy(LastModifiedByT &&value)
Definition ModelCard.h:210
void SetTags(TagsT &&value)
Definition ModelCard.h:228
const ModelCardSecurityConfig & GetSecurityConfig() const
Definition ModelCard.h:139
void SetCreationTime(CreationTimeT &&value)
Definition ModelCard.h:160
const Aws::String & GetContent() const
Definition ModelCard.h:98
bool ModelPackageGroupNameHasBeenSet() const
Definition ModelCard.h:291
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetModelId() const
Definition ModelCard.h:249
void SetSecurityConfig(SecurityConfigT &&value)
Definition ModelCard.h:142
void SetRiskRating(RiskRatingT &&value)
Definition ModelCard.h:273
const Aws::Vector< Tag > & GetTags() const
Definition ModelCard.h:225
const Aws::String & GetModelCardName() const
Definition ModelCard.h:62
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition ModelCard.h:191
bool ModelCardVersionHasBeenSet() const
Definition ModelCard.h:81
ModelCard & WithModelCardArn(ModelCardArnT &&value)
Definition ModelCard.h:52
const Aws::String & GetModelCardArn() const
Definition ModelCard.h:44
const UserContext & GetCreatedBy() const
Definition ModelCard.h:173
void SetModelId(ModelIdT &&value)
Definition ModelCard.h:252
ModelCardStatus GetModelCardStatus() const
Definition ModelCard.h:123
ModelCard & WithModelCardVersion(int value)
Definition ModelCard.h:86
const Aws::Utils::DateTime & GetCreationTime() const
Definition ModelCard.h:157
void SetModelCardVersion(int value)
Definition ModelCard.h:82
ModelCard & WithContent(ContentT &&value)
Definition ModelCard.h:106
AWS_SAGEMAKER_API ModelCard(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedBy(CreatedByT &&value)
Definition ModelCard.h:176
const Aws::String & GetModelPackageGroupName() const
Definition ModelCard.h:290
const UserContext & GetLastModifiedBy() const
Definition ModelCard.h:207
ModelCard & WithCreationTime(CreationTimeT &&value)
Definition ModelCard.h:165
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition ModelCard.h:194
ModelCard & WithLastModifiedBy(LastModifiedByT &&value)
Definition ModelCard.h:215
ModelCard & AddTags(TagsT &&value)
Definition ModelCard.h:238
void SetContent(ContentT &&value)
Definition ModelCard.h:101
void SetModelCardArn(ModelCardArnT &&value)
Definition ModelCard.h:47
ModelCard & WithModelCardStatus(ModelCardStatus value)
Definition ModelCard.h:129
ModelCard & WithModelId(ModelIdT &&value)
Definition ModelCard.h:257
ModelCard & WithModelCardName(ModelCardNameT &&value)
Definition ModelCard.h:70
ModelCard & WithRiskRating(RiskRatingT &&value)
Definition ModelCard.h:278
ModelCard & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
Definition ModelCard.h:298
ModelCard & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition ModelCard.h:199
ModelCard & WithCreatedBy(CreatedByT &&value)
Definition ModelCard.h:181
bool LastModifiedTimeHasBeenSet() const
Definition ModelCard.h:192
ModelCard & WithSecurityConfig(SecurityConfigT &&value)
Definition ModelCard.h:147
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
Definition ModelCard.h:293
ModelCard & WithTags(TagsT &&value)
Definition ModelCard.h:233
void SetModelCardStatus(ModelCardStatus value)
Definition ModelCard.h:125
AWS_SAGEMAKER_API ModelCard()=default
void SetModelCardName(ModelCardNameT &&value)
Definition ModelCard.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue