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>
71 template <
typename ModelPackageNameT = Aws::String>
73 m_modelPackageNameHasBeenSet =
true;
74 m_modelPackageName = std::forward<ModelPackageNameT>(value);
76 template <
typename ModelPackageNameT = Aws::String>
89 template <
typename ModelPackageGroupNameT = Aws::String>
91 m_modelPackageGroupNameHasBeenSet =
true;
92 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
94 template <
typename ModelPackageGroupNameT = Aws::String>
108 m_modelPackageVersionHasBeenSet =
true;
109 m_modelPackageVersion = value;
124 m_modelPackageRegistrationTypeHasBeenSet =
true;
125 m_modelPackageRegistrationType = value;
139 template <
typename ModelPackageArnT = Aws::String>
141 m_modelPackageArnHasBeenSet =
true;
142 m_modelPackageArn = std::forward<ModelPackageArnT>(value);
144 template <
typename ModelPackageArnT = Aws::String>
157 template <
typename ModelPackageDescriptionT = Aws::String>
159 m_modelPackageDescriptionHasBeenSet =
true;
160 m_modelPackageDescription = std::forward<ModelPackageDescriptionT>(value);
162 template <
typename ModelPackageDescriptionT = Aws::String>
175 template <
typename CreationTimeT = Aws::Utils::DateTime>
177 m_creationTimeHasBeenSet =
true;
178 m_creationTime = std::forward<CreationTimeT>(value);
180 template <
typename CreationTimeT = Aws::Utils::DateTime>
193 template <
typename InferenceSpecificationT = InferenceSpecification>
195 m_inferenceSpecificationHasBeenSet =
true;
196 m_inferenceSpecification = std::forward<InferenceSpecificationT>(value);
198 template <
typename InferenceSpecificationT = InferenceSpecification>
211 template <
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
213 m_sourceAlgorithmSpecificationHasBeenSet =
true;
214 m_sourceAlgorithmSpecification = std::forward<SourceAlgorithmSpecificationT>(value);
216 template <
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
230 template <
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
232 m_validationSpecificationHasBeenSet =
true;
233 m_validationSpecification = std::forward<ValidationSpecificationT>(value);
235 template <
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
255 m_modelPackageStatusHasBeenSet =
true;
256 m_modelPackageStatus = value;
270 template <
typename ModelPackageStatusDetailsT = ModelPackageStatusDetails>
272 m_modelPackageStatusDetailsHasBeenSet =
true;
273 m_modelPackageStatusDetails = std::forward<ModelPackageStatusDetailsT>(value);
275 template <
typename ModelPackageStatusDetailsT = ModelPackageStatusDetails>
293 m_certifyForMarketplaceHasBeenSet =
true;
294 m_certifyForMarketplace = value;
313 m_modelApprovalStatusHasBeenSet =
true;
314 m_modelApprovalStatus = value;
329 template <
typename CreatedByT = UserContext>
331 m_createdByHasBeenSet =
true;
332 m_createdBy = std::forward<CreatedByT>(value);
334 template <
typename CreatedByT = UserContext>
347 template <
typename MetadataPropertiesT = MetadataProperties>
349 m_metadataPropertiesHasBeenSet =
true;
350 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
352 template <
typename MetadataPropertiesT = MetadataProperties>
365 template <
typename ModelMetricsT = ModelMetrics>
367 m_modelMetricsHasBeenSet =
true;
368 m_modelMetrics = std::forward<ModelMetricsT>(value);
370 template <
typename ModelMetricsT = ModelMetrics>
383 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
385 m_lastModifiedTimeHasBeenSet =
true;
386 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
388 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
402 template <
typename LastModifiedByT = UserContext>
404 m_lastModifiedByHasBeenSet =
true;
405 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
407 template <
typename LastModifiedByT = UserContext>
420 template <
typename ApprovalDescriptionT = Aws::String>
422 m_approvalDescriptionHasBeenSet =
true;
423 m_approvalDescription = std::forward<ApprovalDescriptionT>(value);
425 template <
typename ApprovalDescriptionT = Aws::String>
440 template <
typename DomainT = Aws::String>
442 m_domainHasBeenSet =
true;
443 m_domain = std::forward<DomainT>(value);
445 template <
typename DomainT = Aws::String>
459 template <
typename TaskT = Aws::String>
461 m_taskHasBeenSet =
true;
462 m_task = std::forward<TaskT>(value);
464 template <
typename TaskT = Aws::String>
466 SetTask(std::forward<TaskT>(value));
479 template <
typename SamplePayloadUrlT = Aws::String>
481 m_samplePayloadUrlHasBeenSet =
true;
482 m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value);
484 template <
typename SamplePayloadUrlT = Aws::String>
496 return m_additionalInferenceSpecifications;
499 template <
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
501 m_additionalInferenceSpecificationsHasBeenSet =
true;
502 m_additionalInferenceSpecifications = std::forward<AdditionalInferenceSpecificationsT>(value);
504 template <
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
509 template <
typename AdditionalInferenceSpecificationsT = AdditionalInferenceSpecificationDefinition>
511 m_additionalInferenceSpecificationsHasBeenSet =
true;
512 m_additionalInferenceSpecifications.emplace_back(std::forward<AdditionalInferenceSpecificationsT>(value));
523 template <
typename SourceUriT = Aws::String>
525 m_sourceUriHasBeenSet =
true;
526 m_sourceUri = std::forward<SourceUriT>(value);
528 template <
typename SourceUriT = Aws::String>
539 template <
typename SecurityConfigT = ModelPackageSecurityConfig>
541 m_securityConfigHasBeenSet =
true;
542 m_securityConfig = std::forward<SecurityConfigT>(value);
544 template <
typename SecurityConfigT = ModelPackageSecurityConfig>
555 template <
typename ModelCardT = ModelPackageModelCard>
557 m_modelCardHasBeenSet =
true;
558 m_modelCard = std::forward<ModelCardT>(value);
560 template <
typename ModelCardT = ModelPackageModelCard>
574 template <
typename ModelLifeCycleT = ModelLifeCycle>
576 m_modelLifeCycleHasBeenSet =
true;
577 m_modelLifeCycle = std::forward<ModelLifeCycleT>(value);
579 template <
typename ModelLifeCycleT = ModelLifeCycle>
596 template <
typename TagsT = Aws::Vector<Tag>>
598 m_tagsHasBeenSet =
true;
599 m_tags = std::forward<TagsT>(value);
601 template <
typename TagsT = Aws::Vector<Tag>>
603 SetTags(std::forward<TagsT>(value));
606 template <
typename TagsT = Tag>
608 m_tagsHasBeenSet =
true;
609 m_tags.emplace_back(std::forward<TagsT>(value));
620 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
622 m_customerMetadataPropertiesHasBeenSet =
true;
623 m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value);
625 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
630 template <
typename CustomerMetadataPropertiesKeyT = Aws::String,
typename CustomerMetadataPropertiesValueT = Aws::String>
632 m_customerMetadataPropertiesHasBeenSet =
true;
633 m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key),
634 std::forward<CustomerMetadataPropertiesValueT>(value));
646 template <
typename DriftCheckBaselinesT = DriftCheckBaselines>
648 m_driftCheckBaselinesHasBeenSet =
true;
649 m_driftCheckBaselines = std::forward<DriftCheckBaselinesT>(value);
651 template <
typename DriftCheckBaselinesT = DriftCheckBaselines>
665 m_skipModelValidationHasBeenSet =
true;
666 m_skipModelValidation = value;
678 int m_modelPackageVersion{0};
688 InferenceSpecification m_inferenceSpecification;
690 SourceAlgorithmSpecification m_sourceAlgorithmSpecification;
692 ModelPackageValidationSpecification m_validationSpecification;
696 ModelPackageStatusDetails m_modelPackageStatusDetails;
698 bool m_certifyForMarketplace{
false};
702 UserContext m_createdBy;
704 MetadataProperties m_metadataProperties;
706 ModelMetrics m_modelMetrics;
710 UserContext m_lastModifiedBy;
724 ModelPackageSecurityConfig m_securityConfig;
726 ModelPackageModelCard m_modelCard;
728 ModelLifeCycle m_modelLifeCycle;
734 DriftCheckBaselines m_driftCheckBaselines;
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;
bool TaskHasBeenSet() const
const Aws::Vector< AdditionalInferenceSpecificationDefinition > & GetAdditionalInferenceSpecifications() const
const Aws::String & GetSamplePayloadUrl() const
bool SamplePayloadUrlHasBeenSet() const
const UserContext & GetCreatedBy() const
bool LastModifiedByHasBeenSet() const
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
bool CustomerMetadataPropertiesHasBeenSet() const
const Aws::String & GetDomain() const
ModelPackage & WithCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
const ModelPackageModelCard & GetModelCard() const
void SetSecurityConfig(SecurityConfigT &&value)
void SetAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
void SetModelPackageVersion(int value)
bool ModelPackageStatusHasBeenSet() const
void SetCreationTime(CreationTimeT &&value)
bool ModelApprovalStatusHasBeenSet() const
ModelPackage & WithLastModifiedTime(LastModifiedTimeT &&value)
bool ModelPackageGroupNameHasBeenSet() const
const UserContext & GetLastModifiedBy() const
bool ModelLifeCycleHasBeenSet() 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)
int GetModelPackageVersion() const
void SetModelPackageStatus(ModelPackageStatus value)
const ModelPackageValidationSpecification & GetValidationSpecification() const
bool AdditionalInferenceSpecificationsHasBeenSet() const
bool InferenceSpecificationHasBeenSet() const
bool ModelMetricsHasBeenSet() const
const SourceAlgorithmSpecification & GetSourceAlgorithmSpecification() const
bool ModelPackageDescriptionHasBeenSet() const
ModelPackage & WithModelPackageName(ModelPackageNameT &&value)
const MetadataProperties & GetMetadataProperties() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
ModelPackage & WithDriftCheckBaselines(DriftCheckBaselinesT &&value)
bool ModelPackageStatusDetailsHasBeenSet() const
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
SkipModelValidation GetSkipModelValidation() const
void SetCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
bool ModelPackageArnHasBeenSet() const
const ModelPackageStatusDetails & GetModelPackageStatusDetails() const
const Aws::String & GetApprovalDescription() const
ModelPackage & WithModelPackageDescription(ModelPackageDescriptionT &&value)
ModelPackage & WithDomain(DomainT &&value)
bool LastModifiedTimeHasBeenSet() const
void SetDriftCheckBaselines(DriftCheckBaselinesT &&value)
const InferenceSpecification & GetInferenceSpecification() const
ModelPackage & WithModelMetrics(ModelMetricsT &&value)
void SetModelPackageDescription(ModelPackageDescriptionT &&value)
void SetLastModifiedBy(LastModifiedByT &&value)
void SetTags(TagsT &&value)
ModelPackage & AddAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
void SetSamplePayloadUrl(SamplePayloadUrlT &&value)
ModelPackage & AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT &&key, CustomerMetadataPropertiesValueT &&value)
bool SecurityConfigHasBeenSet() const
const Aws::String & GetTask() const
void SetModelPackageArn(ModelPackageArnT &&value)
ModelPackage & WithValidationSpecification(ValidationSpecificationT &&value)
bool SourceUriHasBeenSet() const
ModelPackage & WithCreatedBy(CreatedByT &&value)
void SetMetadataProperties(MetadataPropertiesT &&value)
const Aws::String & GetSourceUri() const
ModelPackage & WithSourceUri(SourceUriT &&value)
bool ModelPackageNameHasBeenSet() const
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)
void SetTask(TaskT &&value)
bool GetCertifyForMarketplace() const
bool MetadataPropertiesHasBeenSet() const
ModelPackage & WithAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
ModelPackage & WithModelPackageStatusDetails(ModelPackageStatusDetailsT &&value)
bool CertifyForMarketplaceHasBeenSet() const
void SetCertifyForMarketplace(bool 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
bool CreatedByHasBeenSet() const
void SetSourceUri(SourceUriT &&value)
void SetModelPackageStatusDetails(ModelPackageStatusDetailsT &&value)
ModelPackage & AddTags(TagsT &&value)
void SetInferenceSpecification(InferenceSpecificationT &&value)
void SetDomain(DomainT &&value)
ModelPackage & WithSkipModelValidation(SkipModelValidation value)
const ModelMetrics & GetModelMetrics() const
bool ValidationSpecificationHasBeenSet() const
ModelPackage & WithInferenceSpecification(InferenceSpecificationT &&value)
bool TagsHasBeenSet() const
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)
bool SkipModelValidationHasBeenSet() const
bool ModelCardHasBeenSet() const
ModelPackage & WithCertifyForMarketplace(bool value)
const Aws::String & GetModelPackageDescription() const
ModelApprovalStatus GetModelApprovalStatus() const
const Aws::String & GetModelPackageArn() const
bool ApprovalDescriptionHasBeenSet() const
ModelPackage & WithLastModifiedBy(LastModifiedByT &&value)
bool DriftCheckBaselinesHasBeenSet() const
bool ModelPackageVersionHasBeenSet() const
bool DomainHasBeenSet() const
ModelPackage & WithApprovalDescription(ApprovalDescriptionT &&value)
void SetSourceAlgorithmSpecification(SourceAlgorithmSpecificationT &&value)
AWS_SAGEMAKER_API ModelPackage()=default
const DriftCheckBaselines & GetDriftCheckBaselines() const
ModelPackage & WithSourceAlgorithmSpecification(SourceAlgorithmSpecificationT &&value)
bool CreationTimeHasBeenSet() const
ModelPackage & WithModelLifeCycle(ModelLifeCycleT &&value)
void SetModelLifeCycle(ModelLifeCycleT &&value)
ModelPackageRegistrationType
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