7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/sagemaker/model/InferenceSpecification.h>
11#include <aws/sagemaker/model/SourceAlgorithmSpecification.h>
12#include <aws/sagemaker/model/ModelPackageValidationSpecification.h>
13#include <aws/sagemaker/model/ModelPackageStatus.h>
14#include <aws/sagemaker/model/ModelPackageStatusDetails.h>
15#include <aws/sagemaker/model/ModelApprovalStatus.h>
16#include <aws/sagemaker/model/UserContext.h>
17#include <aws/sagemaker/model/MetadataProperties.h>
18#include <aws/sagemaker/model/ModelMetrics.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20#include <aws/sagemaker/model/ModelPackageSecurityConfig.h>
21#include <aws/sagemaker/model/ModelPackageModelCard.h>
22#include <aws/sagemaker/model/ModelLifeCycle.h>
23#include <aws/core/utils/memory/stl/AWSMap.h>
24#include <aws/sagemaker/model/DriftCheckBaselines.h>
25#include <aws/sagemaker/model/SkipModelValidation.h>
26#include <aws/sagemaker/model/AdditionalInferenceSpecificationDefinition.h>
27#include <aws/sagemaker/model/Tag.h>
76 template<
typename ModelPackageNameT = Aws::String>
77 void SetModelPackageName(ModelPackageNameT&& value) { m_modelPackageNameHasBeenSet =
true; m_modelPackageName = std::forward<ModelPackageNameT>(value); }
78 template<
typename ModelPackageNameT = Aws::String>
88 template<
typename ModelPackageGroupNameT = Aws::String>
89 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) { m_modelPackageGroupNameHasBeenSet =
true; m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value); }
90 template<
typename ModelPackageGroupNameT = Aws::String>
110 template<
typename ModelPackageArnT = Aws::String>
111 void SetModelPackageArn(ModelPackageArnT&& value) { m_modelPackageArnHasBeenSet =
true; m_modelPackageArn = std::forward<ModelPackageArnT>(value); }
112 template<
typename ModelPackageArnT = Aws::String>
122 template<
typename ModelPackageDescriptionT = Aws::String>
123 void SetModelPackageDescription(ModelPackageDescriptionT&& value) { m_modelPackageDescriptionHasBeenSet =
true; m_modelPackageDescription = std::forward<ModelPackageDescriptionT>(value); }
124 template<
typename ModelPackageDescriptionT = Aws::String>
134 template<
typename CreationTimeT = Aws::Utils::DateTime>
135 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet =
true; m_creationTime = std::forward<CreationTimeT>(value); }
136 template<
typename CreationTimeT = Aws::Utils::DateTime>
146 template<
typename InferenceSpecificationT = InferenceSpecification>
147 void SetInferenceSpecification(InferenceSpecificationT&& value) { m_inferenceSpecificationHasBeenSet =
true; m_inferenceSpecification = std::forward<InferenceSpecificationT>(value); }
148 template<
typename InferenceSpecificationT = InferenceSpecification>
158 template<
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
159 void SetSourceAlgorithmSpecification(SourceAlgorithmSpecificationT&& value) { m_sourceAlgorithmSpecificationHasBeenSet =
true; m_sourceAlgorithmSpecification = std::forward<SourceAlgorithmSpecificationT>(value); }
160 template<
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
171 template<
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
172 void SetValidationSpecification(ValidationSpecificationT&& value) { m_validationSpecificationHasBeenSet =
true; m_validationSpecification = std::forward<ValidationSpecificationT>(value); }
173 template<
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
199 template<
typename ModelPackageStatusDetailsT = ModelPackageStatusDetails>
200 void SetModelPackageStatusDetails(ModelPackageStatusDetailsT&& value) { m_modelPackageStatusDetailsHasBeenSet =
true; m_modelPackageStatusDetails = std::forward<ModelPackageStatusDetailsT>(value); }
201 template<
typename ModelPackageStatusDetailsT = ModelPackageStatusDetails>
240 template<
typename CreatedByT = UserContext>
241 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet =
true; m_createdBy = std::forward<CreatedByT>(value); }
242 template<
typename CreatedByT = UserContext>
252 template<
typename MetadataPropertiesT = MetadataProperties>
253 void SetMetadataProperties(MetadataPropertiesT&& value) { m_metadataPropertiesHasBeenSet =
true; m_metadataProperties = std::forward<MetadataPropertiesT>(value); }
254 template<
typename MetadataPropertiesT = MetadataProperties>
264 template<
typename ModelMetricsT = ModelMetrics>
265 void SetModelMetrics(ModelMetricsT&& value) { m_modelMetricsHasBeenSet =
true; m_modelMetrics = std::forward<ModelMetricsT>(value); }
266 template<
typename ModelMetricsT = ModelMetrics>
276 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
277 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet =
true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
278 template<
typename LastModifiedTimeT = Aws::Utils::DateTime>
289 template<
typename LastModifiedByT = UserContext>
290 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet =
true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
291 template<
typename LastModifiedByT = UserContext>
301 template<
typename ApprovalDescriptionT = Aws::String>
302 void SetApprovalDescription(ApprovalDescriptionT&& value) { m_approvalDescriptionHasBeenSet =
true; m_approvalDescription = std::forward<ApprovalDescriptionT>(value); }
303 template<
typename ApprovalDescriptionT = Aws::String>
315 template<
typename DomainT = Aws::String>
316 void SetDomain(DomainT&& value) { m_domainHasBeenSet =
true; m_domain = std::forward<DomainT>(value); }
317 template<
typename DomainT = Aws::String>
328 template<
typename TaskT = Aws::String>
329 void SetTask(TaskT&& value) { m_taskHasBeenSet =
true; m_task = std::forward<TaskT>(value); }
330 template<
typename TaskT = Aws::String>
342 template<
typename SamplePayloadUrlT = Aws::String>
343 void SetSamplePayloadUrl(SamplePayloadUrlT&& value) { m_samplePayloadUrlHasBeenSet =
true; m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value); }
344 template<
typename SamplePayloadUrlT = Aws::String>
354 template<
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
355 void SetAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT&& value) { m_additionalInferenceSpecificationsHasBeenSet =
true; m_additionalInferenceSpecifications = std::forward<AdditionalInferenceSpecificationsT>(value); }
356 template<
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
358 template<
typename AdditionalInferenceSpecificationsT = AdditionalInferenceSpecificationDefinition>
359 ModelPackage&
AddAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT&& value) { m_additionalInferenceSpecificationsHasBeenSet =
true; m_additionalInferenceSpecifications.emplace_back(std::forward<AdditionalInferenceSpecificationsT>(value));
return *
this; }
368 template<
typename SourceUriT = Aws::String>
369 void SetSourceUri(SourceUriT&& value) { m_sourceUriHasBeenSet =
true; m_sourceUri = std::forward<SourceUriT>(value); }
370 template<
typename SourceUriT = Aws::String>
378 template<
typename SecurityConfigT = ModelPackageSecurityConfig>
379 void SetSecurityConfig(SecurityConfigT&& value) { m_securityConfigHasBeenSet =
true; m_securityConfig = std::forward<SecurityConfigT>(value); }
380 template<
typename SecurityConfigT = ModelPackageSecurityConfig>
388 template<
typename ModelCardT = ModelPackageModelCard>
389 void SetModelCard(ModelCardT&& value) { m_modelCardHasBeenSet =
true; m_modelCard = std::forward<ModelCardT>(value); }
390 template<
typename ModelCardT = ModelPackageModelCard>
401 template<
typename ModelLifeCycleT = ModelLifeCycle>
402 void SetModelLifeCycle(ModelLifeCycleT&& value) { m_modelLifeCycleHasBeenSet =
true; m_modelLifeCycle = std::forward<ModelLifeCycleT>(value); }
403 template<
typename ModelLifeCycleT = ModelLifeCycle>
417 template<
typename TagsT = Aws::Vector<Tag>>
418 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
419 template<
typename TagsT = Aws::Vector<Tag>>
421 template<
typename TagsT = Tag>
422 ModelPackage&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
431 template<
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
432 void SetCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) { m_customerMetadataPropertiesHasBeenSet =
true; m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value); }
433 template<
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
435 template<
typename CustomerMetadataPropertiesKeyT = Aws::String,
typename CustomerMetadataPropertiesValueT = Aws::String>
437 m_customerMetadataPropertiesHasBeenSet =
true; m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key), std::forward<CustomerMetadataPropertiesValueT>(value));
return *
this;
448 template<
typename DriftCheckBaselinesT = DriftCheckBaselines>
449 void SetDriftCheckBaselines(DriftCheckBaselinesT&& value) { m_driftCheckBaselinesHasBeenSet =
true; m_driftCheckBaselines = std::forward<DriftCheckBaselinesT>(value); }
450 template<
typename DriftCheckBaselinesT = DriftCheckBaselines>
466 bool m_modelPackageNameHasBeenSet =
false;
469 bool m_modelPackageGroupNameHasBeenSet =
false;
471 int m_modelPackageVersion{0};
472 bool m_modelPackageVersionHasBeenSet =
false;
475 bool m_modelPackageArnHasBeenSet =
false;
478 bool m_modelPackageDescriptionHasBeenSet =
false;
481 bool m_creationTimeHasBeenSet =
false;
483 InferenceSpecification m_inferenceSpecification;
484 bool m_inferenceSpecificationHasBeenSet =
false;
486 SourceAlgorithmSpecification m_sourceAlgorithmSpecification;
487 bool m_sourceAlgorithmSpecificationHasBeenSet =
false;
489 ModelPackageValidationSpecification m_validationSpecification;
490 bool m_validationSpecificationHasBeenSet =
false;
493 bool m_modelPackageStatusHasBeenSet =
false;
495 ModelPackageStatusDetails m_modelPackageStatusDetails;
496 bool m_modelPackageStatusDetailsHasBeenSet =
false;
498 bool m_certifyForMarketplace{
false};
499 bool m_certifyForMarketplaceHasBeenSet =
false;
502 bool m_modelApprovalStatusHasBeenSet =
false;
504 UserContext m_createdBy;
505 bool m_createdByHasBeenSet =
false;
507 MetadataProperties m_metadataProperties;
508 bool m_metadataPropertiesHasBeenSet =
false;
510 ModelMetrics m_modelMetrics;
511 bool m_modelMetricsHasBeenSet =
false;
514 bool m_lastModifiedTimeHasBeenSet =
false;
516 UserContext m_lastModifiedBy;
517 bool m_lastModifiedByHasBeenSet =
false;
520 bool m_approvalDescriptionHasBeenSet =
false;
523 bool m_domainHasBeenSet =
false;
526 bool m_taskHasBeenSet =
false;
529 bool m_samplePayloadUrlHasBeenSet =
false;
532 bool m_additionalInferenceSpecificationsHasBeenSet =
false;
535 bool m_sourceUriHasBeenSet =
false;
537 ModelPackageSecurityConfig m_securityConfig;
538 bool m_securityConfigHasBeenSet =
false;
540 ModelPackageModelCard m_modelCard;
541 bool m_modelCardHasBeenSet =
false;
543 ModelLifeCycle m_modelLifeCycle;
544 bool m_modelLifeCycleHasBeenSet =
false;
547 bool m_tagsHasBeenSet =
false;
550 bool m_customerMetadataPropertiesHasBeenSet =
false;
552 DriftCheckBaselines m_driftCheckBaselines;
553 bool m_driftCheckBaselinesHasBeenSet =
false;
556 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)
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)
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)
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
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)
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