AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModelCard.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/ModelCardStatus.h>
10#include <aws/sagemaker/model/ModelCardSecurityConfig.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/sagemaker/model/UserContext.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SageMaker
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_SAGEMAKER_API ModelCard();
41 AWS_SAGEMAKER_API ModelCard(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SAGEMAKER_API ModelCard& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetModelCardArn() const{ return m_modelCardArn; }
51 inline bool ModelCardArnHasBeenSet() const { return m_modelCardArnHasBeenSet; }
52 inline void SetModelCardArn(const Aws::String& value) { m_modelCardArnHasBeenSet = true; m_modelCardArn = value; }
53 inline void SetModelCardArn(Aws::String&& value) { m_modelCardArnHasBeenSet = true; m_modelCardArn = std::move(value); }
54 inline void SetModelCardArn(const char* value) { m_modelCardArnHasBeenSet = true; m_modelCardArn.assign(value); }
55 inline ModelCard& WithModelCardArn(const Aws::String& value) { SetModelCardArn(value); return *this;}
56 inline ModelCard& WithModelCardArn(Aws::String&& value) { SetModelCardArn(std::move(value)); return *this;}
57 inline ModelCard& WithModelCardArn(const char* value) { SetModelCardArn(value); return *this;}
59
61
64 inline const Aws::String& GetModelCardName() const{ return m_modelCardName; }
65 inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
66 inline void SetModelCardName(const Aws::String& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = value; }
67 inline void SetModelCardName(Aws::String&& value) { m_modelCardNameHasBeenSet = true; m_modelCardName = std::move(value); }
68 inline void SetModelCardName(const char* value) { m_modelCardNameHasBeenSet = true; m_modelCardName.assign(value); }
69 inline ModelCard& WithModelCardName(const Aws::String& value) { SetModelCardName(value); return *this;}
70 inline ModelCard& WithModelCardName(Aws::String&& value) { SetModelCardName(std::move(value)); return *this;}
71 inline ModelCard& WithModelCardName(const char* value) { SetModelCardName(value); return *this;}
73
75
78 inline int GetModelCardVersion() const{ return m_modelCardVersion; }
79 inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; }
80 inline void SetModelCardVersion(int value) { m_modelCardVersionHasBeenSet = true; m_modelCardVersion = value; }
81 inline ModelCard& WithModelCardVersion(int value) { SetModelCardVersion(value); return *this;}
83
85
90 inline const Aws::String& GetContent() const{ return m_content; }
91 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
92 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
93 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
94 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
95 inline ModelCard& WithContent(const Aws::String& value) { SetContent(value); return *this;}
96 inline ModelCard& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
97 inline ModelCard& WithContent(const char* value) { SetContent(value); return *this;}
99
101
111 inline const ModelCardStatus& GetModelCardStatus() const{ return m_modelCardStatus; }
112 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
113 inline void SetModelCardStatus(const ModelCardStatus& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = value; }
114 inline void SetModelCardStatus(ModelCardStatus&& value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = std::move(value); }
115 inline ModelCard& WithModelCardStatus(const ModelCardStatus& value) { SetModelCardStatus(value); return *this;}
116 inline ModelCard& WithModelCardStatus(ModelCardStatus&& value) { SetModelCardStatus(std::move(value)); return *this;}
118
120
123 inline const ModelCardSecurityConfig& GetSecurityConfig() const{ return m_securityConfig; }
124 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
125 inline void SetSecurityConfig(const ModelCardSecurityConfig& value) { m_securityConfigHasBeenSet = true; m_securityConfig = value; }
126 inline void SetSecurityConfig(ModelCardSecurityConfig&& value) { m_securityConfigHasBeenSet = true; m_securityConfig = std::move(value); }
127 inline ModelCard& WithSecurityConfig(const ModelCardSecurityConfig& value) { SetSecurityConfig(value); return *this;}
128 inline ModelCard& WithSecurityConfig(ModelCardSecurityConfig&& value) { SetSecurityConfig(std::move(value)); return *this;}
130
132
135 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
136 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
137 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
138 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
139 inline ModelCard& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
140 inline ModelCard& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
142
144
145 inline const UserContext& GetCreatedBy() const{ return m_createdBy; }
146 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
147 inline void SetCreatedBy(const UserContext& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
148 inline void SetCreatedBy(UserContext&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
149 inline ModelCard& WithCreatedBy(const UserContext& value) { SetCreatedBy(value); return *this;}
150 inline ModelCard& WithCreatedBy(UserContext&& value) { SetCreatedBy(std::move(value)); return *this;}
152
154
157 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
158 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
159 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
160 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
161 inline ModelCard& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
162 inline ModelCard& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
164
166
167 inline const UserContext& GetLastModifiedBy() const{ return m_lastModifiedBy; }
168 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
169 inline void SetLastModifiedBy(const UserContext& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
170 inline void SetLastModifiedBy(UserContext&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
171 inline ModelCard& WithLastModifiedBy(const UserContext& value) { SetLastModifiedBy(value); return *this;}
172 inline ModelCard& WithLastModifiedBy(UserContext&& value) { SetLastModifiedBy(std::move(value)); return *this;}
174
176
179 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
183 inline ModelCard& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
184 inline ModelCard& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
185 inline ModelCard& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
186 inline ModelCard& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
188
190
193 inline const Aws::String& GetModelId() const{ return m_modelId; }
194 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
195 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
196 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
197 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
198 inline ModelCard& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
199 inline ModelCard& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
200 inline ModelCard& WithModelId(const char* value) { SetModelId(value); return *this;}
202
204
210 inline const Aws::String& GetRiskRating() const{ return m_riskRating; }
211 inline bool RiskRatingHasBeenSet() const { return m_riskRatingHasBeenSet; }
212 inline void SetRiskRating(const Aws::String& value) { m_riskRatingHasBeenSet = true; m_riskRating = value; }
213 inline void SetRiskRating(Aws::String&& value) { m_riskRatingHasBeenSet = true; m_riskRating = std::move(value); }
214 inline void SetRiskRating(const char* value) { m_riskRatingHasBeenSet = true; m_riskRating.assign(value); }
215 inline ModelCard& WithRiskRating(const Aws::String& value) { SetRiskRating(value); return *this;}
216 inline ModelCard& WithRiskRating(Aws::String&& value) { SetRiskRating(std::move(value)); return *this;}
217 inline ModelCard& WithRiskRating(const char* value) { SetRiskRating(value); return *this;}
219
221
226 inline const Aws::String& GetModelPackageGroupName() const{ return m_modelPackageGroupName; }
227 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
228 inline void SetModelPackageGroupName(const Aws::String& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = value; }
229 inline void SetModelPackageGroupName(Aws::String&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::move(value); }
230 inline void SetModelPackageGroupName(const char* value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName.assign(value); }
231 inline ModelCard& WithModelPackageGroupName(const Aws::String& value) { SetModelPackageGroupName(value); return *this;}
232 inline ModelCard& WithModelPackageGroupName(Aws::String&& value) { SetModelPackageGroupName(std::move(value)); return *this;}
233 inline ModelCard& WithModelPackageGroupName(const char* value) { SetModelPackageGroupName(value); return *this;}
235 private:
236
237 Aws::String m_modelCardArn;
238 bool m_modelCardArnHasBeenSet = false;
239
240 Aws::String m_modelCardName;
241 bool m_modelCardNameHasBeenSet = false;
242
243 int m_modelCardVersion;
244 bool m_modelCardVersionHasBeenSet = false;
245
246 Aws::String m_content;
247 bool m_contentHasBeenSet = false;
248
249 ModelCardStatus m_modelCardStatus;
250 bool m_modelCardStatusHasBeenSet = false;
251
252 ModelCardSecurityConfig m_securityConfig;
253 bool m_securityConfigHasBeenSet = false;
254
255 Aws::Utils::DateTime m_creationTime;
256 bool m_creationTimeHasBeenSet = false;
257
258 UserContext m_createdBy;
259 bool m_createdByHasBeenSet = false;
260
261 Aws::Utils::DateTime m_lastModifiedTime;
262 bool m_lastModifiedTimeHasBeenSet = false;
263
264 UserContext m_lastModifiedBy;
265 bool m_lastModifiedByHasBeenSet = false;
266
267 Aws::Vector<Tag> m_tags;
268 bool m_tagsHasBeenSet = false;
269
270 Aws::String m_modelId;
271 bool m_modelIdHasBeenSet = false;
272
273 Aws::String m_riskRating;
274 bool m_riskRatingHasBeenSet = false;
275
276 Aws::String m_modelPackageGroupName;
277 bool m_modelPackageGroupNameHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace SageMaker
282} // namespace Aws
void SetModelCardStatus(const ModelCardStatus &value)
Definition ModelCard.h:113
AWS_SAGEMAKER_API ModelCard & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRiskRating() const
Definition ModelCard.h:210
ModelCard & AddTags(Tag &&value)
Definition ModelCard.h:186
void SetModelCardArn(Aws::String &&value)
Definition ModelCard.h:53
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition ModelCard.h:137
ModelCard & WithCreatedBy(UserContext &&value)
Definition ModelCard.h:150
ModelCard & WithModelCardArn(Aws::String &&value)
Definition ModelCard.h:56
void SetModelCardArn(const char *value)
Definition ModelCard.h:54
void SetRiskRating(const char *value)
Definition ModelCard.h:214
ModelCard & AddTags(const Tag &value)
Definition ModelCard.h:185
const ModelCardSecurityConfig & GetSecurityConfig() const
Definition ModelCard.h:123
ModelCard & WithModelPackageGroupName(const Aws::String &value)
Definition ModelCard.h:231
ModelCard & WithTags(Aws::Vector< Tag > &&value)
Definition ModelCard.h:184
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition ModelCard.h:138
const Aws::String & GetContent() const
Definition ModelCard.h:90
bool ModelPackageGroupNameHasBeenSet() const
Definition ModelCard.h:227
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelCard & WithContent(const Aws::String &value)
Definition ModelCard.h:95
const Aws::String & GetModelId() const
Definition ModelCard.h:193
ModelCard & WithModelPackageGroupName(Aws::String &&value)
Definition ModelCard.h:232
const Aws::Vector< Tag > & GetTags() const
Definition ModelCard.h:179
const Aws::String & GetModelCardName() const
Definition ModelCard.h:64
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition ModelCard.h:157
ModelCard & WithModelPackageGroupName(const char *value)
Definition ModelCard.h:233
bool ModelCardVersionHasBeenSet() const
Definition ModelCard.h:79
ModelCard & WithLastModifiedBy(const UserContext &value)
Definition ModelCard.h:171
const Aws::String & GetModelCardArn() const
Definition ModelCard.h:50
ModelCard & WithModelCardName(const char *value)
Definition ModelCard.h:71
ModelCard & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition ModelCard.h:162
ModelCard & WithModelCardArn(const Aws::String &value)
Definition ModelCard.h:55
void SetTags(Aws::Vector< Tag > &&value)
Definition ModelCard.h:182
ModelCard & WithRiskRating(Aws::String &&value)
Definition ModelCard.h:216
ModelCard & WithModelId(const Aws::String &value)
Definition ModelCard.h:198
const UserContext & GetCreatedBy() const
Definition ModelCard.h:145
ModelCard & WithContent(const char *value)
Definition ModelCard.h:97
void SetSecurityConfig(ModelCardSecurityConfig &&value)
Definition ModelCard.h:126
ModelCard & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition ModelCard.h:161
ModelCard & WithModelCardVersion(int value)
Definition ModelCard.h:81
const Aws::Utils::DateTime & GetCreationTime() const
Definition ModelCard.h:135
void SetModelCardVersion(int value)
Definition ModelCard.h:80
ModelCard & WithModelCardName(const Aws::String &value)
Definition ModelCard.h:69
ModelCard & WithCreationTime(Aws::Utils::DateTime &&value)
Definition ModelCard.h:140
ModelCard & WithContent(Aws::String &&value)
Definition ModelCard.h:96
AWS_SAGEMAKER_API ModelCard(Aws::Utils::Json::JsonView jsonValue)
ModelCard & WithModelCardName(Aws::String &&value)
Definition ModelCard.h:70
void SetModelCardName(Aws::String &&value)
Definition ModelCard.h:67
void SetModelCardStatus(ModelCardStatus &&value)
Definition ModelCard.h:114
ModelCard & WithRiskRating(const Aws::String &value)
Definition ModelCard.h:215
AWS_SAGEMAKER_API ModelCard()
ModelCard & WithTags(const Aws::Vector< Tag > &value)
Definition ModelCard.h:183
void SetModelId(const char *value)
Definition ModelCard.h:197
void SetContent(const Aws::String &value)
Definition ModelCard.h:92
void SetCreatedBy(UserContext &&value)
Definition ModelCard.h:148
void SetContent(Aws::String &&value)
Definition ModelCard.h:93
const ModelCardStatus & GetModelCardStatus() const
Definition ModelCard.h:111
void SetModelId(const Aws::String &value)
Definition ModelCard.h:195
const Aws::String & GetModelPackageGroupName() const
Definition ModelCard.h:226
const UserContext & GetLastModifiedBy() const
Definition ModelCard.h:167
ModelCard & WithLastModifiedBy(UserContext &&value)
Definition ModelCard.h:172
void SetTags(const Aws::Vector< Tag > &value)
Definition ModelCard.h:181
ModelCard & WithCreatedBy(const UserContext &value)
Definition ModelCard.h:149
void SetModelId(Aws::String &&value)
Definition ModelCard.h:196
void SetRiskRating(Aws::String &&value)
Definition ModelCard.h:213
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition ModelCard.h:160
ModelCard & WithCreationTime(const Aws::Utils::DateTime &value)
Definition ModelCard.h:139
void SetModelCardArn(const Aws::String &value)
Definition ModelCard.h:52
ModelCard & WithSecurityConfig(const ModelCardSecurityConfig &value)
Definition ModelCard.h:127
void SetContent(const char *value)
Definition ModelCard.h:94
ModelCard & WithSecurityConfig(ModelCardSecurityConfig &&value)
Definition ModelCard.h:128
ModelCard & WithModelId(Aws::String &&value)
Definition ModelCard.h:199
void SetModelPackageGroupName(Aws::String &&value)
Definition ModelCard.h:229
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition ModelCard.h:159
ModelCard & WithModelCardStatus(ModelCardStatus &&value)
Definition ModelCard.h:116
void SetSecurityConfig(const ModelCardSecurityConfig &value)
Definition ModelCard.h:125
void SetModelCardName(const char *value)
Definition ModelCard.h:68
bool LastModifiedTimeHasBeenSet() const
Definition ModelCard.h:158
ModelCard & WithModelCardArn(const char *value)
Definition ModelCard.h:57
void SetLastModifiedBy(UserContext &&value)
Definition ModelCard.h:170
void SetLastModifiedBy(const UserContext &value)
Definition ModelCard.h:169
void SetCreatedBy(const UserContext &value)
Definition ModelCard.h:147
ModelCard & WithRiskRating(const char *value)
Definition ModelCard.h:217
ModelCard & WithModelId(const char *value)
Definition ModelCard.h:200
ModelCard & WithModelCardStatus(const ModelCardStatus &value)
Definition ModelCard.h:115
void SetRiskRating(const Aws::String &value)
Definition ModelCard.h:212
void SetModelPackageGroupName(const char *value)
Definition ModelCard.h:230
void SetModelPackageGroupName(const Aws::String &value)
Definition ModelCard.h:228
void SetModelCardName(const Aws::String &value)
Definition ModelCard.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue