AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelDashboardModelCard.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
35 public:
36 AWS_SAGEMAKER_API ModelDashboardModelCard() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetModelCardArn() const { return m_modelCardArn; }
46 inline bool ModelCardArnHasBeenSet() const { return m_modelCardArnHasBeenSet; }
47 template <typename ModelCardArnT = Aws::String>
48 void SetModelCardArn(ModelCardArnT&& value) {
49 m_modelCardArnHasBeenSet = true;
50 m_modelCardArn = std::forward<ModelCardArnT>(value);
51 }
52 template <typename ModelCardArnT = Aws::String>
53 ModelDashboardModelCard& WithModelCardArn(ModelCardArnT&& value) {
54 SetModelCardArn(std::forward<ModelCardArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetModelCardName() const { return m_modelCardName; }
64 inline bool ModelCardNameHasBeenSet() const { return m_modelCardNameHasBeenSet; }
65 template <typename ModelCardNameT = Aws::String>
66 void SetModelCardName(ModelCardNameT&& value) {
67 m_modelCardNameHasBeenSet = true;
68 m_modelCardName = std::forward<ModelCardNameT>(value);
69 }
70 template <typename ModelCardNameT = Aws::String>
71 ModelDashboardModelCard& WithModelCardName(ModelCardNameT&& value) {
72 SetModelCardName(std::forward<ModelCardNameT>(value));
73 return *this;
74 }
76
78
81 inline int GetModelCardVersion() const { return m_modelCardVersion; }
82 inline bool ModelCardVersionHasBeenSet() const { return m_modelCardVersionHasBeenSet; }
83 inline void SetModelCardVersion(int value) {
84 m_modelCardVersionHasBeenSet = true;
85 m_modelCardVersion = value;
86 }
89 return *this;
90 }
92
94
97 inline ModelCardStatus GetModelCardStatus() const { return m_modelCardStatus; }
98 inline bool ModelCardStatusHasBeenSet() const { return m_modelCardStatusHasBeenSet; }
100 m_modelCardStatusHasBeenSet = true;
101 m_modelCardStatus = value;
102 }
104 SetModelCardStatus(value);
105 return *this;
106 }
108
110
114 inline const ModelCardSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
115 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
116 template <typename SecurityConfigT = ModelCardSecurityConfig>
117 void SetSecurityConfig(SecurityConfigT&& value) {
118 m_securityConfigHasBeenSet = true;
119 m_securityConfig = std::forward<SecurityConfigT>(value);
120 }
121 template <typename SecurityConfigT = ModelCardSecurityConfig>
122 ModelDashboardModelCard& WithSecurityConfig(SecurityConfigT&& value) {
123 SetSecurityConfig(std::forward<SecurityConfigT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
133 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
134 template <typename CreationTimeT = Aws::Utils::DateTime>
135 void SetCreationTime(CreationTimeT&& value) {
136 m_creationTimeHasBeenSet = true;
137 m_creationTime = std::forward<CreationTimeT>(value);
138 }
139 template <typename CreationTimeT = Aws::Utils::DateTime>
141 SetCreationTime(std::forward<CreationTimeT>(value));
142 return *this;
143 }
145
147
148 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
149 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
150 template <typename CreatedByT = UserContext>
151 void SetCreatedBy(CreatedByT&& value) {
152 m_createdByHasBeenSet = true;
153 m_createdBy = std::forward<CreatedByT>(value);
154 }
155 template <typename CreatedByT = UserContext>
157 SetCreatedBy(std::forward<CreatedByT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
167 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
168 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
169 void SetLastModifiedTime(LastModifiedTimeT&& value) {
170 m_lastModifiedTimeHasBeenSet = true;
171 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
172 }
173 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
174 ModelDashboardModelCard& WithLastModifiedTime(LastModifiedTimeT&& value) {
175 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
176 return *this;
177 }
179
181
182 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
183 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
184 template <typename LastModifiedByT = UserContext>
185 void SetLastModifiedBy(LastModifiedByT&& value) {
186 m_lastModifiedByHasBeenSet = true;
187 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
188 }
189 template <typename LastModifiedByT = UserContext>
190 ModelDashboardModelCard& WithLastModifiedBy(LastModifiedByT&& value) {
191 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template <typename TagsT = Aws::Vector<Tag>>
203 void SetTags(TagsT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags = std::forward<TagsT>(value);
206 }
207 template <typename TagsT = Aws::Vector<Tag>>
209 SetTags(std::forward<TagsT>(value));
210 return *this;
211 }
212 template <typename TagsT = Tag>
214 m_tagsHasBeenSet = true;
215 m_tags.emplace_back(std::forward<TagsT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetModelId() const { return m_modelId; }
226 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
227 template <typename ModelIdT = Aws::String>
228 void SetModelId(ModelIdT&& value) {
229 m_modelIdHasBeenSet = true;
230 m_modelId = std::forward<ModelIdT>(value);
231 }
232 template <typename ModelIdT = Aws::String>
234 SetModelId(std::forward<ModelIdT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetRiskRating() const { return m_riskRating; }
244 inline bool RiskRatingHasBeenSet() const { return m_riskRatingHasBeenSet; }
245 template <typename RiskRatingT = Aws::String>
246 void SetRiskRating(RiskRatingT&& value) {
247 m_riskRatingHasBeenSet = true;
248 m_riskRating = std::forward<RiskRatingT>(value);
249 }
250 template <typename RiskRatingT = Aws::String>
252 SetRiskRating(std::forward<RiskRatingT>(value));
253 return *this;
254 }
256 private:
257 Aws::String m_modelCardArn;
258
259 Aws::String m_modelCardName;
260
261 int m_modelCardVersion{0};
262
263 ModelCardStatus m_modelCardStatus{ModelCardStatus::NOT_SET};
264
265 ModelCardSecurityConfig m_securityConfig;
266
267 Aws::Utils::DateTime m_creationTime{};
268
269 UserContext m_createdBy;
270
271 Aws::Utils::DateTime m_lastModifiedTime{};
272
273 UserContext m_lastModifiedBy;
274
275 Aws::Vector<Tag> m_tags;
276
277 Aws::String m_modelId;
278
279 Aws::String m_riskRating;
280 bool m_modelCardArnHasBeenSet = false;
281 bool m_modelCardNameHasBeenSet = false;
282 bool m_modelCardVersionHasBeenSet = false;
283 bool m_modelCardStatusHasBeenSet = false;
284 bool m_securityConfigHasBeenSet = false;
285 bool m_creationTimeHasBeenSet = false;
286 bool m_createdByHasBeenSet = false;
287 bool m_lastModifiedTimeHasBeenSet = false;
288 bool m_lastModifiedByHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290 bool m_modelIdHasBeenSet = false;
291 bool m_riskRatingHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace SageMaker
296} // namespace Aws
ModelDashboardModelCard & AddTags(TagsT &&value)
ModelDashboardModelCard & WithSecurityConfig(SecurityConfigT &&value)
ModelDashboardModelCard & WithTags(TagsT &&value)
const ModelCardSecurityConfig & GetSecurityConfig() const
AWS_SAGEMAKER_API ModelDashboardModelCard()=default
ModelDashboardModelCard & WithLastModifiedBy(LastModifiedByT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
ModelDashboardModelCard & WithModelCardArn(ModelCardArnT &&value)
ModelDashboardModelCard & WithModelCardStatus(ModelCardStatus value)
const Aws::Utils::DateTime & GetCreationTime() const
ModelDashboardModelCard & WithRiskRating(RiskRatingT &&value)
ModelDashboardModelCard & WithLastModifiedTime(LastModifiedTimeT &&value)
ModelDashboardModelCard & WithCreationTime(CreationTimeT &&value)
ModelDashboardModelCard & WithModelCardVersion(int value)
AWS_SAGEMAKER_API ModelDashboardModelCard & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelDashboardModelCard & WithModelId(ModelIdT &&value)
AWS_SAGEMAKER_API ModelDashboardModelCard(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ModelDashboardModelCard & WithCreatedBy(CreatedByT &&value)
ModelDashboardModelCard & WithModelCardName(ModelCardNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue