AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ModelCardArnT = Aws::String>
53 void SetModelCardArn(ModelCardArnT&& value) { m_modelCardArnHasBeenSet = true; m_modelCardArn = std::forward<ModelCardArnT>(value); }
54 template<typename ModelCardArnT = Aws::String>
55 ModelCard& WithModelCardArn(ModelCardArnT&& value) { SetModelCardArn(std::forward<ModelCardArnT>(value)); return *this;}
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) { m_modelCardNameHasBeenSet = true; m_modelCardName = std::forward<ModelCardNameT>(value); }
66 template<typename ModelCardNameT = Aws::String>
67 ModelCard& WithModelCardName(ModelCardNameT&& value) { SetModelCardName(std::forward<ModelCardNameT>(value)); return *this;}
69
71
74 inline int GetModelCardVersion() const { return m_modelCardVersion; }
75 inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; }
76 inline void SetModelCardVersion(int value) { m_modelCardVersionHasBeenSet = true; m_modelCardVersion = value; }
77 inline ModelCard& WithModelCardVersion(int value) { SetModelCardVersion(value); return *this;}
79
81
86 inline const Aws::String& GetContent() const { return m_content; }
87 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
88 template<typename ContentT = Aws::String>
89 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
90 template<typename ContentT = Aws::String>
91 ModelCard& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
93
95
105 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
106 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
107 inline void SetModelCardStatus(ModelCardStatus value) { m_modelCardStatusHasBeenSet = true; m_modelCardStatus = value; }
108 inline ModelCard& WithModelCardStatus(ModelCardStatus value) { SetModelCardStatus(value); return *this;}
110
112
115 inline const ModelCardSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
116 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
117 template<typename SecurityConfigT = ModelCardSecurityConfig>
118 void SetSecurityConfig(SecurityConfigT&& value) { m_securityConfigHasBeenSet = true; m_securityConfig = std::forward<SecurityConfigT>(value); }
119 template<typename SecurityConfigT = ModelCardSecurityConfig>
120 ModelCard& WithSecurityConfig(SecurityConfigT&& value) { SetSecurityConfig(std::forward<SecurityConfigT>(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
128 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
129 template<typename CreationTimeT = Aws::Utils::DateTime>
130 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
131 template<typename CreationTimeT = Aws::Utils::DateTime>
132 ModelCard& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
134
136
137 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
138 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
139 template<typename CreatedByT = UserContext>
140 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
141 template<typename CreatedByT = UserContext>
142 ModelCard& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
144
146
149 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
150 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
151 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
152 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
153 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
154 ModelCard& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
156
158
159 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
160 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
161 template<typename LastModifiedByT = UserContext>
162 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
163 template<typename LastModifiedByT = UserContext>
164 ModelCard& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
166
168
171 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
172 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 template<typename TagsT = Aws::Vector<Tag>>
174 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
175 template<typename TagsT = Aws::Vector<Tag>>
176 ModelCard& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
177 template<typename TagsT = Tag>
178 ModelCard& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
180
182
185 inline const Aws::String& GetModelId() const { return m_modelId; }
186 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
187 template<typename ModelIdT = Aws::String>
188 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
189 template<typename ModelIdT = Aws::String>
190 ModelCard& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
192
194
200 inline const Aws::String& GetRiskRating() const { return m_riskRating; }
201 inline bool RiskRatingHasBeenSet() const { return m_riskRatingHasBeenSet; }
202 template<typename RiskRatingT = Aws::String>
203 void SetRiskRating(RiskRatingT&& value) { m_riskRatingHasBeenSet = true; m_riskRating = std::forward<RiskRatingT>(value); }
204 template<typename RiskRatingT = Aws::String>
205 ModelCard& WithRiskRating(RiskRatingT&& value) { SetRiskRating(std::forward<RiskRatingT>(value)); return *this;}
207
209
214 inline const Aws::String& GetModelPackageGroupName() const { return m_modelPackageGroupName; }
215 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
216 template<typename ModelPackageGroupNameT = Aws::String>
217 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) { m_modelPackageGroupNameHasBeenSet = true; m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value); }
218 template<typename ModelPackageGroupNameT = Aws::String>
219 ModelCard& WithModelPackageGroupName(ModelPackageGroupNameT&& value) { SetModelPackageGroupName(std::forward<ModelPackageGroupNameT>(value)); return *this;}
221 private:
222
223 Aws::String m_modelCardArn;
224 bool m_modelCardArnHasBeenSet = false;
225
226 Aws::String m_modelCardName;
227 bool m_modelCardNameHasBeenSet = false;
228
229 int m_modelCardVersion{0};
230 bool m_modelCardVersionHasBeenSet = false;
231
232 Aws::String m_content;
233 bool m_contentHasBeenSet = false;
234
235 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
236 bool m_modelCardStatusHasBeenSet = false;
237
238 ModelCardSecurityConfig m_securityConfig;
239 bool m_securityConfigHasBeenSet = false;
240
241 Aws::Utils::DateTime m_creationTime{};
242 bool m_creationTimeHasBeenSet = false;
243
244 UserContext m_createdBy;
245 bool m_createdByHasBeenSet = false;
246
247 Aws::Utils::DateTime m_lastModifiedTime{};
248 bool m_lastModifiedTimeHasBeenSet = false;
249
250 UserContext m_lastModifiedBy;
251 bool m_lastModifiedByHasBeenSet = false;
252
253 Aws::Vector<Tag> m_tags;
254 bool m_tagsHasBeenSet = false;
255
256 Aws::String m_modelId;
257 bool m_modelIdHasBeenSet = false;
258
259 Aws::String m_riskRating;
260 bool m_riskRatingHasBeenSet = false;
261
262 Aws::String m_modelPackageGroupName;
263 bool m_modelPackageGroupNameHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace SageMaker
268} // namespace Aws
AWS_SAGEMAKER_API ModelCard & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRiskRating() const
Definition ModelCard.h:200
void SetLastModifiedBy(LastModifiedByT &&value)
Definition ModelCard.h:162
void SetTags(TagsT &&value)
Definition ModelCard.h:174
const ModelCardSecurityConfig & GetSecurityConfig() const
Definition ModelCard.h:115
void SetCreationTime(CreationTimeT &&value)
Definition ModelCard.h:130
const Aws::String & GetContent() const
Definition ModelCard.h:86
bool ModelPackageGroupNameHasBeenSet() const
Definition ModelCard.h:215
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetModelId() const
Definition ModelCard.h:185
void SetSecurityConfig(SecurityConfigT &&value)
Definition ModelCard.h:118
void SetRiskRating(RiskRatingT &&value)
Definition ModelCard.h:203
const Aws::Vector< Tag > & GetTags() const
Definition ModelCard.h:171
const Aws::String & GetModelCardName() const
Definition ModelCard.h:62
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition ModelCard.h:149
bool ModelCardVersionHasBeenSet() const
Definition ModelCard.h:75
ModelCard & WithModelCardArn(ModelCardArnT &&value)
Definition ModelCard.h:55
const Aws::String & GetModelCardArn() const
Definition ModelCard.h:50
const UserContext & GetCreatedBy() const
Definition ModelCard.h:137
void SetModelId(ModelIdT &&value)
Definition ModelCard.h:188
ModelCardStatus GetModelCardStatus() const
Definition ModelCard.h:105
ModelCard & WithModelCardVersion(int value)
Definition ModelCard.h:77
const Aws::Utils::DateTime & GetCreationTime() const
Definition ModelCard.h:127
void SetModelCardVersion(int value)
Definition ModelCard.h:76
ModelCard & WithContent(ContentT &&value)
Definition ModelCard.h:91
AWS_SAGEMAKER_API ModelCard(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedBy(CreatedByT &&value)
Definition ModelCard.h:140
const Aws::String & GetModelPackageGroupName() const
Definition ModelCard.h:214
const UserContext & GetLastModifiedBy() const
Definition ModelCard.h:159
ModelCard & WithCreationTime(CreationTimeT &&value)
Definition ModelCard.h:132
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition ModelCard.h:152
ModelCard & WithLastModifiedBy(LastModifiedByT &&value)
Definition ModelCard.h:164
ModelCard & AddTags(TagsT &&value)
Definition ModelCard.h:178
void SetContent(ContentT &&value)
Definition ModelCard.h:89
void SetModelCardArn(ModelCardArnT &&value)
Definition ModelCard.h:53
ModelCard & WithModelCardStatus(ModelCardStatus value)
Definition ModelCard.h:108
ModelCard & WithModelId(ModelIdT &&value)
Definition ModelCard.h:190
ModelCard & WithModelCardName(ModelCardNameT &&value)
Definition ModelCard.h:67
ModelCard & WithRiskRating(RiskRatingT &&value)
Definition ModelCard.h:205
ModelCard & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
Definition ModelCard.h:219
ModelCard & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition ModelCard.h:154
ModelCard & WithCreatedBy(CreatedByT &&value)
Definition ModelCard.h:142
bool LastModifiedTimeHasBeenSet() const
Definition ModelCard.h:150
ModelCard & WithSecurityConfig(SecurityConfigT &&value)
Definition ModelCard.h:120
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
Definition ModelCard.h:217
ModelCard & WithTags(TagsT &&value)
Definition ModelCard.h:176
void SetModelCardStatus(ModelCardStatus value)
Definition ModelCard.h:107
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