AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ModelPackage.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/SageMaker_EXPORTS.h>
12#include <aws/sagemaker/model/AdditionalInferenceSpecificationDefinition.h>
13#include <aws/sagemaker/model/DriftCheckBaselines.h>
14#include <aws/sagemaker/model/InferenceSpecification.h>
15#include <aws/sagemaker/model/MetadataProperties.h>
16#include <aws/sagemaker/model/ModelApprovalStatus.h>
17#include <aws/sagemaker/model/ModelLifeCycle.h>
18#include <aws/sagemaker/model/ModelMetrics.h>
19#include <aws/sagemaker/model/ModelPackageModelCard.h>
20#include <aws/sagemaker/model/ModelPackageRegistrationType.h>
21#include <aws/sagemaker/model/ModelPackageSecurityConfig.h>
22#include <aws/sagemaker/model/ModelPackageStatus.h>
23#include <aws/sagemaker/model/ModelPackageStatusDetails.h>
24#include <aws/sagemaker/model/ModelPackageValidationSpecification.h>
25#include <aws/sagemaker/model/SkipModelValidation.h>
26#include <aws/sagemaker/model/SourceAlgorithmSpecification.h>
27#include <aws/sagemaker/model/Tag.h>
28#include <aws/sagemaker/model/UserContext.h>
29
30#include <utility>
31
32namespace Aws {
33namespace Utils {
34namespace Json {
35class JsonValue;
36class JsonView;
37} // namespace Json
38} // namespace Utils
39namespace SageMaker {
40namespace Model {
41
55 public:
56 AWS_SAGEMAKER_API ModelPackage() = default;
57 AWS_SAGEMAKER_API ModelPackage(Aws::Utils::Json::JsonView jsonValue);
58 AWS_SAGEMAKER_API ModelPackage& operator=(Aws::Utils::Json::JsonView jsonValue);
59 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
60
62
69 inline const Aws::String& GetModelPackageName() const { return m_modelPackageName; }
70 inline bool ModelPackageNameHasBeenSet() const { return m_modelPackageNameHasBeenSet; }
71 template <typename ModelPackageNameT = Aws::String>
72 void SetModelPackageName(ModelPackageNameT&& value) {
73 m_modelPackageNameHasBeenSet = true;
74 m_modelPackageName = std::forward<ModelPackageNameT>(value);
75 }
76 template <typename ModelPackageNameT = Aws::String>
77 ModelPackage& WithModelPackageName(ModelPackageNameT&& value) {
78 SetModelPackageName(std::forward<ModelPackageNameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetModelPackageGroupName() const { return m_modelPackageGroupName; }
88 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
89 template <typename ModelPackageGroupNameT = Aws::String>
90 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) {
91 m_modelPackageGroupNameHasBeenSet = true;
92 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
93 }
94 template <typename ModelPackageGroupNameT = Aws::String>
95 ModelPackage& WithModelPackageGroupName(ModelPackageGroupNameT&& value) {
96 SetModelPackageGroupName(std::forward<ModelPackageGroupNameT>(value));
97 return *this;
98 }
100
102
105 inline int GetModelPackageVersion() const { return m_modelPackageVersion; }
106 inline bool ModelPackageVersionHasBeenSet() const { return m_modelPackageVersionHasBeenSet; }
107 inline void SetModelPackageVersion(int value) {
108 m_modelPackageVersionHasBeenSet = true;
109 m_modelPackageVersion = value;
110 }
113 return *this;
114 }
116
118
121 inline ModelPackageRegistrationType GetModelPackageRegistrationType() const { return m_modelPackageRegistrationType; }
122 inline bool ModelPackageRegistrationTypeHasBeenSet() const { return m_modelPackageRegistrationTypeHasBeenSet; }
124 m_modelPackageRegistrationTypeHasBeenSet = true;
125 m_modelPackageRegistrationType = value;
126 }
129 return *this;
130 }
132
134
137 inline const Aws::String& GetModelPackageArn() const { return m_modelPackageArn; }
138 inline bool ModelPackageArnHasBeenSet() const { return m_modelPackageArnHasBeenSet; }
139 template <typename ModelPackageArnT = Aws::String>
140 void SetModelPackageArn(ModelPackageArnT&& value) {
141 m_modelPackageArnHasBeenSet = true;
142 m_modelPackageArn = std::forward<ModelPackageArnT>(value);
143 }
144 template <typename ModelPackageArnT = Aws::String>
145 ModelPackage& WithModelPackageArn(ModelPackageArnT&& value) {
146 SetModelPackageArn(std::forward<ModelPackageArnT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetModelPackageDescription() const { return m_modelPackageDescription; }
156 inline bool ModelPackageDescriptionHasBeenSet() const { return m_modelPackageDescriptionHasBeenSet; }
157 template <typename ModelPackageDescriptionT = Aws::String>
158 void SetModelPackageDescription(ModelPackageDescriptionT&& value) {
159 m_modelPackageDescriptionHasBeenSet = true;
160 m_modelPackageDescription = std::forward<ModelPackageDescriptionT>(value);
161 }
162 template <typename ModelPackageDescriptionT = Aws::String>
163 ModelPackage& WithModelPackageDescription(ModelPackageDescriptionT&& value) {
164 SetModelPackageDescription(std::forward<ModelPackageDescriptionT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
174 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
175 template <typename CreationTimeT = Aws::Utils::DateTime>
176 void SetCreationTime(CreationTimeT&& value) {
177 m_creationTimeHasBeenSet = true;
178 m_creationTime = std::forward<CreationTimeT>(value);
179 }
180 template <typename CreationTimeT = Aws::Utils::DateTime>
181 ModelPackage& WithCreationTime(CreationTimeT&& value) {
182 SetCreationTime(std::forward<CreationTimeT>(value));
183 return *this;
184 }
186
188
191 inline const InferenceSpecification& GetInferenceSpecification() const { return m_inferenceSpecification; }
192 inline bool InferenceSpecificationHasBeenSet() const { return m_inferenceSpecificationHasBeenSet; }
193 template <typename InferenceSpecificationT = InferenceSpecification>
194 void SetInferenceSpecification(InferenceSpecificationT&& value) {
195 m_inferenceSpecificationHasBeenSet = true;
196 m_inferenceSpecification = std::forward<InferenceSpecificationT>(value);
197 }
198 template <typename InferenceSpecificationT = InferenceSpecification>
199 ModelPackage& WithInferenceSpecification(InferenceSpecificationT&& value) {
200 SetInferenceSpecification(std::forward<InferenceSpecificationT>(value));
201 return *this;
202 }
204
206
209 inline const SourceAlgorithmSpecification& GetSourceAlgorithmSpecification() const { return m_sourceAlgorithmSpecification; }
210 inline bool SourceAlgorithmSpecificationHasBeenSet() const { return m_sourceAlgorithmSpecificationHasBeenSet; }
211 template <typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
212 void SetSourceAlgorithmSpecification(SourceAlgorithmSpecificationT&& value) {
213 m_sourceAlgorithmSpecificationHasBeenSet = true;
214 m_sourceAlgorithmSpecification = std::forward<SourceAlgorithmSpecificationT>(value);
215 }
216 template <typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
217 ModelPackage& WithSourceAlgorithmSpecification(SourceAlgorithmSpecificationT&& value) {
218 SetSourceAlgorithmSpecification(std::forward<SourceAlgorithmSpecificationT>(value));
219 return *this;
220 }
222
224
228 inline const ModelPackageValidationSpecification& GetValidationSpecification() const { return m_validationSpecification; }
229 inline bool ValidationSpecificationHasBeenSet() const { return m_validationSpecificationHasBeenSet; }
230 template <typename ValidationSpecificationT = ModelPackageValidationSpecification>
231 void SetValidationSpecification(ValidationSpecificationT&& value) {
232 m_validationSpecificationHasBeenSet = true;
233 m_validationSpecification = std::forward<ValidationSpecificationT>(value);
234 }
235 template <typename ValidationSpecificationT = ModelPackageValidationSpecification>
236 ModelPackage& WithValidationSpecification(ValidationSpecificationT&& value) {
237 SetValidationSpecification(std::forward<ValidationSpecificationT>(value));
238 return *this;
239 }
241
243
252 inline ModelPackageStatus GetModelPackageStatus() const { return m_modelPackageStatus; }
253 inline bool ModelPackageStatusHasBeenSet() const { return m_modelPackageStatusHasBeenSet; }
255 m_modelPackageStatusHasBeenSet = true;
256 m_modelPackageStatus = value;
257 }
260 return *this;
261 }
263
265
268 inline const ModelPackageStatusDetails& GetModelPackageStatusDetails() const { return m_modelPackageStatusDetails; }
269 inline bool ModelPackageStatusDetailsHasBeenSet() const { return m_modelPackageStatusDetailsHasBeenSet; }
270 template <typename ModelPackageStatusDetailsT = ModelPackageStatusDetails>
271 void SetModelPackageStatusDetails(ModelPackageStatusDetailsT&& value) {
272 m_modelPackageStatusDetailsHasBeenSet = true;
273 m_modelPackageStatusDetails = std::forward<ModelPackageStatusDetailsT>(value);
274 }
275 template <typename ModelPackageStatusDetailsT = ModelPackageStatusDetails>
276 ModelPackage& WithModelPackageStatusDetails(ModelPackageStatusDetailsT&& value) {
277 SetModelPackageStatusDetails(std::forward<ModelPackageStatusDetailsT>(value));
278 return *this;
279 }
281
283
290 inline bool GetCertifyForMarketplace() const { return m_certifyForMarketplace; }
291 inline bool CertifyForMarketplaceHasBeenSet() const { return m_certifyForMarketplaceHasBeenSet; }
292 inline void SetCertifyForMarketplace(bool value) {
293 m_certifyForMarketplaceHasBeenSet = true;
294 m_certifyForMarketplace = value;
295 }
298 return *this;
299 }
301
303
310 inline ModelApprovalStatus GetModelApprovalStatus() const { return m_modelApprovalStatus; }
311 inline bool ModelApprovalStatusHasBeenSet() const { return m_modelApprovalStatusHasBeenSet; }
313 m_modelApprovalStatusHasBeenSet = true;
314 m_modelApprovalStatus = value;
315 }
318 return *this;
319 }
321
323
327 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
328 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
329 template <typename CreatedByT = UserContext>
330 void SetCreatedBy(CreatedByT&& value) {
331 m_createdByHasBeenSet = true;
332 m_createdBy = std::forward<CreatedByT>(value);
333 }
334 template <typename CreatedByT = UserContext>
335 ModelPackage& WithCreatedBy(CreatedByT&& value) {
336 SetCreatedBy(std::forward<CreatedByT>(value));
337 return *this;
338 }
340
342
345 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
346 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
347 template <typename MetadataPropertiesT = MetadataProperties>
348 void SetMetadataProperties(MetadataPropertiesT&& value) {
349 m_metadataPropertiesHasBeenSet = true;
350 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
351 }
352 template <typename MetadataPropertiesT = MetadataProperties>
353 ModelPackage& WithMetadataProperties(MetadataPropertiesT&& value) {
354 SetMetadataProperties(std::forward<MetadataPropertiesT>(value));
355 return *this;
356 }
358
360
363 inline const ModelMetrics& GetModelMetrics() const { return m_modelMetrics; }
364 inline bool ModelMetricsHasBeenSet() const { return m_modelMetricsHasBeenSet; }
365 template <typename ModelMetricsT = ModelMetrics>
366 void SetModelMetrics(ModelMetricsT&& value) {
367 m_modelMetricsHasBeenSet = true;
368 m_modelMetrics = std::forward<ModelMetricsT>(value);
369 }
370 template <typename ModelMetricsT = ModelMetrics>
371 ModelPackage& WithModelMetrics(ModelMetricsT&& value) {
372 SetModelMetrics(std::forward<ModelMetricsT>(value));
373 return *this;
374 }
376
378
381 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
382 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
383 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
384 void SetLastModifiedTime(LastModifiedTimeT&& value) {
385 m_lastModifiedTimeHasBeenSet = true;
386 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
387 }
388 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
389 ModelPackage& WithLastModifiedTime(LastModifiedTimeT&& value) {
390 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
391 return *this;
392 }
394
396
400 inline const UserContext& GetLastModifiedBy() const { return m_lastModifiedBy; }
401 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
402 template <typename LastModifiedByT = UserContext>
403 void SetLastModifiedBy(LastModifiedByT&& value) {
404 m_lastModifiedByHasBeenSet = true;
405 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
406 }
407 template <typename LastModifiedByT = UserContext>
408 ModelPackage& WithLastModifiedBy(LastModifiedByT&& value) {
409 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
410 return *this;
411 }
413
415
418 inline const Aws::String& GetApprovalDescription() const { return m_approvalDescription; }
419 inline bool ApprovalDescriptionHasBeenSet() const { return m_approvalDescriptionHasBeenSet; }
420 template <typename ApprovalDescriptionT = Aws::String>
421 void SetApprovalDescription(ApprovalDescriptionT&& value) {
422 m_approvalDescriptionHasBeenSet = true;
423 m_approvalDescription = std::forward<ApprovalDescriptionT>(value);
424 }
425 template <typename ApprovalDescriptionT = Aws::String>
426 ModelPackage& WithApprovalDescription(ApprovalDescriptionT&& value) {
427 SetApprovalDescription(std::forward<ApprovalDescriptionT>(value));
428 return *this;
429 }
431
433
438 inline const Aws::String& GetDomain() const { return m_domain; }
439 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
440 template <typename DomainT = Aws::String>
441 void SetDomain(DomainT&& value) {
442 m_domainHasBeenSet = true;
443 m_domain = std::forward<DomainT>(value);
444 }
445 template <typename DomainT = Aws::String>
446 ModelPackage& WithDomain(DomainT&& value) {
447 SetDomain(std::forward<DomainT>(value));
448 return *this;
449 }
451
453
457 inline const Aws::String& GetTask() const { return m_task; }
458 inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; }
459 template <typename TaskT = Aws::String>
460 void SetTask(TaskT&& value) {
461 m_taskHasBeenSet = true;
462 m_task = std::forward<TaskT>(value);
463 }
464 template <typename TaskT = Aws::String>
465 ModelPackage& WithTask(TaskT&& value) {
466 SetTask(std::forward<TaskT>(value));
467 return *this;
468 }
470
472
477 inline const Aws::String& GetSamplePayloadUrl() const { return m_samplePayloadUrl; }
478 inline bool SamplePayloadUrlHasBeenSet() const { return m_samplePayloadUrlHasBeenSet; }
479 template <typename SamplePayloadUrlT = Aws::String>
480 void SetSamplePayloadUrl(SamplePayloadUrlT&& value) {
481 m_samplePayloadUrlHasBeenSet = true;
482 m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value);
483 }
484 template <typename SamplePayloadUrlT = Aws::String>
485 ModelPackage& WithSamplePayloadUrl(SamplePayloadUrlT&& value) {
486 SetSamplePayloadUrl(std::forward<SamplePayloadUrlT>(value));
487 return *this;
488 }
490
492
496 return m_additionalInferenceSpecifications;
497 }
498 inline bool AdditionalInferenceSpecificationsHasBeenSet() const { return m_additionalInferenceSpecificationsHasBeenSet; }
499 template <typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
500 void SetAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT&& value) {
501 m_additionalInferenceSpecificationsHasBeenSet = true;
502 m_additionalInferenceSpecifications = std::forward<AdditionalInferenceSpecificationsT>(value);
503 }
504 template <typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
505 ModelPackage& WithAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT&& value) {
506 SetAdditionalInferenceSpecifications(std::forward<AdditionalInferenceSpecificationsT>(value));
507 return *this;
508 }
509 template <typename AdditionalInferenceSpecificationsT = AdditionalInferenceSpecificationDefinition>
510 ModelPackage& AddAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT&& value) {
511 m_additionalInferenceSpecificationsHasBeenSet = true;
512 m_additionalInferenceSpecifications.emplace_back(std::forward<AdditionalInferenceSpecificationsT>(value));
513 return *this;
514 }
516
518
521 inline const Aws::String& GetSourceUri() const { return m_sourceUri; }
522 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
523 template <typename SourceUriT = Aws::String>
524 void SetSourceUri(SourceUriT&& value) {
525 m_sourceUriHasBeenSet = true;
526 m_sourceUri = std::forward<SourceUriT>(value);
527 }
528 template <typename SourceUriT = Aws::String>
529 ModelPackage& WithSourceUri(SourceUriT&& value) {
530 SetSourceUri(std::forward<SourceUriT>(value));
531 return *this;
532 }
534
536
537 inline const ModelPackageSecurityConfig& GetSecurityConfig() const { return m_securityConfig; }
538 inline bool SecurityConfigHasBeenSet() const { return m_securityConfigHasBeenSet; }
539 template <typename SecurityConfigT = ModelPackageSecurityConfig>
540 void SetSecurityConfig(SecurityConfigT&& value) {
541 m_securityConfigHasBeenSet = true;
542 m_securityConfig = std::forward<SecurityConfigT>(value);
543 }
544 template <typename SecurityConfigT = ModelPackageSecurityConfig>
545 ModelPackage& WithSecurityConfig(SecurityConfigT&& value) {
546 SetSecurityConfig(std::forward<SecurityConfigT>(value));
547 return *this;
548 }
550
552
553 inline const ModelPackageModelCard& GetModelCard() const { return m_modelCard; }
554 inline bool ModelCardHasBeenSet() const { return m_modelCardHasBeenSet; }
555 template <typename ModelCardT = ModelPackageModelCard>
556 void SetModelCard(ModelCardT&& value) {
557 m_modelCardHasBeenSet = true;
558 m_modelCard = std::forward<ModelCardT>(value);
559 }
560 template <typename ModelCardT = ModelPackageModelCard>
561 ModelPackage& WithModelCard(ModelCardT&& value) {
562 SetModelCard(std::forward<ModelCardT>(value));
563 return *this;
564 }
566
568
572 inline const ModelLifeCycle& GetModelLifeCycle() const { return m_modelLifeCycle; }
573 inline bool ModelLifeCycleHasBeenSet() const { return m_modelLifeCycleHasBeenSet; }
574 template <typename ModelLifeCycleT = ModelLifeCycle>
575 void SetModelLifeCycle(ModelLifeCycleT&& value) {
576 m_modelLifeCycleHasBeenSet = true;
577 m_modelLifeCycle = std::forward<ModelLifeCycleT>(value);
578 }
579 template <typename ModelLifeCycleT = ModelLifeCycle>
580 ModelPackage& WithModelLifeCycle(ModelLifeCycleT&& value) {
581 SetModelLifeCycle(std::forward<ModelLifeCycleT>(value));
582 return *this;
583 }
585
587
594 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
595 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
596 template <typename TagsT = Aws::Vector<Tag>>
597 void SetTags(TagsT&& value) {
598 m_tagsHasBeenSet = true;
599 m_tags = std::forward<TagsT>(value);
600 }
601 template <typename TagsT = Aws::Vector<Tag>>
602 ModelPackage& WithTags(TagsT&& value) {
603 SetTags(std::forward<TagsT>(value));
604 return *this;
605 }
606 template <typename TagsT = Tag>
607 ModelPackage& AddTags(TagsT&& value) {
608 m_tagsHasBeenSet = true;
609 m_tags.emplace_back(std::forward<TagsT>(value));
610 return *this;
611 }
613
615
618 inline const Aws::Map<Aws::String, Aws::String>& GetCustomerMetadataProperties() const { return m_customerMetadataProperties; }
619 inline bool CustomerMetadataPropertiesHasBeenSet() const { return m_customerMetadataPropertiesHasBeenSet; }
620 template <typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
621 void SetCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) {
622 m_customerMetadataPropertiesHasBeenSet = true;
623 m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value);
624 }
625 template <typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
626 ModelPackage& WithCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) {
627 SetCustomerMetadataProperties(std::forward<CustomerMetadataPropertiesT>(value));
628 return *this;
629 }
630 template <typename CustomerMetadataPropertiesKeyT = Aws::String, typename CustomerMetadataPropertiesValueT = Aws::String>
631 ModelPackage& AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT&& key, CustomerMetadataPropertiesValueT&& value) {
632 m_customerMetadataPropertiesHasBeenSet = true;
633 m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key),
634 std::forward<CustomerMetadataPropertiesValueT>(value));
635 return *this;
636 }
638
640
644 inline const DriftCheckBaselines& GetDriftCheckBaselines() const { return m_driftCheckBaselines; }
645 inline bool DriftCheckBaselinesHasBeenSet() const { return m_driftCheckBaselinesHasBeenSet; }
646 template <typename DriftCheckBaselinesT = DriftCheckBaselines>
647 void SetDriftCheckBaselines(DriftCheckBaselinesT&& value) {
648 m_driftCheckBaselinesHasBeenSet = true;
649 m_driftCheckBaselines = std::forward<DriftCheckBaselinesT>(value);
650 }
651 template <typename DriftCheckBaselinesT = DriftCheckBaselines>
652 ModelPackage& WithDriftCheckBaselines(DriftCheckBaselinesT&& value) {
653 SetDriftCheckBaselines(std::forward<DriftCheckBaselinesT>(value));
654 return *this;
655 }
657
659
662 inline SkipModelValidation GetSkipModelValidation() const { return m_skipModelValidation; }
663 inline bool SkipModelValidationHasBeenSet() const { return m_skipModelValidationHasBeenSet; }
665 m_skipModelValidationHasBeenSet = true;
666 m_skipModelValidation = value;
667 }
670 return *this;
671 }
673 private:
674 Aws::String m_modelPackageName;
675
676 Aws::String m_modelPackageGroupName;
677
678 int m_modelPackageVersion{0};
679
681
682 Aws::String m_modelPackageArn;
683
684 Aws::String m_modelPackageDescription;
685
686 Aws::Utils::DateTime m_creationTime{};
687
688 InferenceSpecification m_inferenceSpecification;
689
690 SourceAlgorithmSpecification m_sourceAlgorithmSpecification;
691
692 ModelPackageValidationSpecification m_validationSpecification;
693
695
696 ModelPackageStatusDetails m_modelPackageStatusDetails;
697
698 bool m_certifyForMarketplace{false};
699
701
702 UserContext m_createdBy;
703
704 MetadataProperties m_metadataProperties;
705
706 ModelMetrics m_modelMetrics;
707
708 Aws::Utils::DateTime m_lastModifiedTime{};
709
710 UserContext m_lastModifiedBy;
711
712 Aws::String m_approvalDescription;
713
714 Aws::String m_domain;
715
716 Aws::String m_task;
717
718 Aws::String m_samplePayloadUrl;
719
720 Aws::Vector<AdditionalInferenceSpecificationDefinition> m_additionalInferenceSpecifications;
721
722 Aws::String m_sourceUri;
723
724 ModelPackageSecurityConfig m_securityConfig;
725
726 ModelPackageModelCard m_modelCard;
727
728 ModelLifeCycle m_modelLifeCycle;
729
730 Aws::Vector<Tag> m_tags;
731
732 Aws::Map<Aws::String, Aws::String> m_customerMetadataProperties;
733
734 DriftCheckBaselines m_driftCheckBaselines;
735
737 bool m_modelPackageNameHasBeenSet = false;
738 bool m_modelPackageGroupNameHasBeenSet = false;
739 bool m_modelPackageVersionHasBeenSet = false;
740 bool m_modelPackageRegistrationTypeHasBeenSet = false;
741 bool m_modelPackageArnHasBeenSet = false;
742 bool m_modelPackageDescriptionHasBeenSet = false;
743 bool m_creationTimeHasBeenSet = false;
744 bool m_inferenceSpecificationHasBeenSet = false;
745 bool m_sourceAlgorithmSpecificationHasBeenSet = false;
746 bool m_validationSpecificationHasBeenSet = false;
747 bool m_modelPackageStatusHasBeenSet = false;
748 bool m_modelPackageStatusDetailsHasBeenSet = false;
749 bool m_certifyForMarketplaceHasBeenSet = false;
750 bool m_modelApprovalStatusHasBeenSet = false;
751 bool m_createdByHasBeenSet = false;
752 bool m_metadataPropertiesHasBeenSet = false;
753 bool m_modelMetricsHasBeenSet = false;
754 bool m_lastModifiedTimeHasBeenSet = false;
755 bool m_lastModifiedByHasBeenSet = false;
756 bool m_approvalDescriptionHasBeenSet = false;
757 bool m_domainHasBeenSet = false;
758 bool m_taskHasBeenSet = false;
759 bool m_samplePayloadUrlHasBeenSet = false;
760 bool m_additionalInferenceSpecificationsHasBeenSet = false;
761 bool m_sourceUriHasBeenSet = false;
762 bool m_securityConfigHasBeenSet = false;
763 bool m_modelCardHasBeenSet = false;
764 bool m_modelLifeCycleHasBeenSet = false;
765 bool m_tagsHasBeenSet = false;
766 bool m_customerMetadataPropertiesHasBeenSet = false;
767 bool m_driftCheckBaselinesHasBeenSet = false;
768 bool m_skipModelValidationHasBeenSet = false;
769};
770
771} // namespace Model
772} // namespace SageMaker
773} // namespace Aws
const Aws::Vector< AdditionalInferenceSpecificationDefinition > & GetAdditionalInferenceSpecifications() const
const Aws::String & GetSamplePayloadUrl() const
const UserContext & GetCreatedBy() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::String & GetDomain() const
ModelPackage & WithCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
const ModelPackageModelCard & GetModelCard() const
void SetSecurityConfig(SecurityConfigT &&value)
void SetAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
void SetCreationTime(CreationTimeT &&value)
ModelPackage & WithLastModifiedTime(LastModifiedTimeT &&value)
const UserContext & GetLastModifiedBy() const
ModelPackage & WithModelPackageVersion(int value)
const Aws::String & GetModelPackageName() const
ModelPackage & WithMetadataProperties(MetadataPropertiesT &&value)
void SetModelMetrics(ModelMetricsT &&value)
ModelPackageRegistrationType GetModelPackageRegistrationType() const
const Aws::String & GetModelPackageGroupName() const
ModelPackage & WithSamplePayloadUrl(SamplePayloadUrlT &&value)
AWS_SAGEMAKER_API ModelPackage & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetModelPackageName(ModelPackageNameT &&value)
void SetCreatedBy(CreatedByT &&value)
ModelPackage & WithModelPackageArn(ModelPackageArnT &&value)
void SetModelPackageStatus(ModelPackageStatus value)
const ModelPackageValidationSpecification & GetValidationSpecification() const
bool AdditionalInferenceSpecificationsHasBeenSet() const
const SourceAlgorithmSpecification & GetSourceAlgorithmSpecification() const
ModelPackage & WithModelPackageName(ModelPackageNameT &&value)
const MetadataProperties & GetMetadataProperties() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
ModelPackage & WithDriftCheckBaselines(DriftCheckBaselinesT &&value)
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
SkipModelValidation GetSkipModelValidation() const
void SetCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
const ModelPackageStatusDetails & GetModelPackageStatusDetails() const
const Aws::String & GetApprovalDescription() const
ModelPackage & WithModelPackageDescription(ModelPackageDescriptionT &&value)
ModelPackage & WithDomain(DomainT &&value)
void SetDriftCheckBaselines(DriftCheckBaselinesT &&value)
const InferenceSpecification & GetInferenceSpecification() const
ModelPackage & WithModelMetrics(ModelMetricsT &&value)
void SetModelPackageDescription(ModelPackageDescriptionT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
ModelPackage & AddAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
void SetSamplePayloadUrl(SamplePayloadUrlT &&value)
ModelPackage & AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT &&key, CustomerMetadataPropertiesValueT &&value)
const Aws::String & GetTask() const
void SetModelPackageArn(ModelPackageArnT &&value)
ModelPackage & WithValidationSpecification(ValidationSpecificationT &&value)
ModelPackage & WithCreatedBy(CreatedByT &&value)
void SetMetadataProperties(MetadataPropertiesT &&value)
const Aws::String & GetSourceUri() const
ModelPackage & WithSourceUri(SourceUriT &&value)
void SetModelCard(ModelCardT &&value)
ModelPackage & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomerMetadataProperties() const
ModelPackage & WithModelPackageStatus(ModelPackageStatus value)
void SetValidationSpecification(ValidationSpecificationT &&value)
bool ModelPackageRegistrationTypeHasBeenSet() const
ModelPackageStatus GetModelPackageStatus() const
ModelPackage & WithSecurityConfig(SecurityConfigT &&value)
void SetApprovalDescription(ApprovalDescriptionT &&value)
ModelPackage & WithModelApprovalStatus(ModelApprovalStatus value)
ModelPackage & WithAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
ModelPackage & WithModelPackageStatusDetails(ModelPackageStatusDetailsT &&value)
void SetModelApprovalStatus(ModelApprovalStatus value)
const ModelPackageSecurityConfig & GetSecurityConfig() const
void SetSkipModelValidation(SkipModelValidation value)
ModelPackage & WithModelPackageRegistrationType(ModelPackageRegistrationType value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_SAGEMAKER_API ModelPackage(Aws::Utils::Json::JsonView jsonValue)
const ModelLifeCycle & GetModelLifeCycle() const
void SetSourceUri(SourceUriT &&value)
void SetModelPackageStatusDetails(ModelPackageStatusDetailsT &&value)
ModelPackage & AddTags(TagsT &&value)
void SetInferenceSpecification(InferenceSpecificationT &&value)
ModelPackage & WithSkipModelValidation(SkipModelValidation value)
const ModelMetrics & GetModelMetrics() const
ModelPackage & WithInferenceSpecification(InferenceSpecificationT &&value)
void SetModelPackageRegistrationType(ModelPackageRegistrationType value)
bool SourceAlgorithmSpecificationHasBeenSet() const
const Aws::Vector< Tag > & GetTags() const
ModelPackage & WithTask(TaskT &&value)
ModelPackage & WithModelCard(ModelCardT &&value)
ModelPackage & WithCreationTime(CreationTimeT &&value)
ModelPackage & WithTags(TagsT &&value)
ModelPackage & WithCertifyForMarketplace(bool value)
const Aws::String & GetModelPackageDescription() const
ModelApprovalStatus GetModelApprovalStatus() const
const Aws::String & GetModelPackageArn() const
ModelPackage & WithLastModifiedBy(LastModifiedByT &&value)
ModelPackage & WithApprovalDescription(ApprovalDescriptionT &&value)
void SetSourceAlgorithmSpecification(SourceAlgorithmSpecificationT &&value)
AWS_SAGEMAKER_API ModelPackage()=default
const DriftCheckBaselines & GetDriftCheckBaselines() const
ModelPackage & WithSourceAlgorithmSpecification(SourceAlgorithmSpecificationT &&value)
ModelPackage & WithModelLifeCycle(ModelLifeCycleT &&value)
void SetModelLifeCycle(ModelLifeCycleT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue