7#include <aws/core/utils/UUID.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/SageMakerRequest.h>
12#include <aws/sagemaker/SageMaker_EXPORTS.h>
13#include <aws/sagemaker/model/AdditionalInferenceSpecificationDefinition.h>
14#include <aws/sagemaker/model/DriftCheckBaselines.h>
15#include <aws/sagemaker/model/InferenceSpecification.h>
16#include <aws/sagemaker/model/MetadataProperties.h>
17#include <aws/sagemaker/model/ModelApprovalStatus.h>
18#include <aws/sagemaker/model/ModelLifeCycle.h>
19#include <aws/sagemaker/model/ModelMetrics.h>
20#include <aws/sagemaker/model/ModelPackageModelCard.h>
21#include <aws/sagemaker/model/ModelPackageRegistrationType.h>
22#include <aws/sagemaker/model/ModelPackageSecurityConfig.h>
23#include <aws/sagemaker/model/ModelPackageValidationSpecification.h>
24#include <aws/sagemaker/model/SkipModelValidation.h>
25#include <aws/sagemaker/model/SourceAlgorithmSpecification.h>
26#include <aws/sagemaker/model/Tag.h>
58 template <
typename ModelPackageNameT = Aws::String>
60 m_modelPackageNameHasBeenSet =
true;
61 m_modelPackageName = std::forward<ModelPackageNameT>(value);
63 template <
typename ModelPackageNameT = Aws::String>
78 template <
typename ModelPackageGroupNameT = Aws::String>
80 m_modelPackageGroupNameHasBeenSet =
true;
81 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
83 template <
typename ModelPackageGroupNameT = Aws::String>
96 template <
typename ModelPackageDescriptionT = Aws::String>
98 m_modelPackageDescriptionHasBeenSet =
true;
99 m_modelPackageDescription = std::forward<ModelPackageDescriptionT>(value);
101 template <
typename ModelPackageDescriptionT = Aws::String>
115 m_modelPackageRegistrationTypeHasBeenSet =
true;
116 m_modelPackageRegistrationType = value;
136 template <
typename InferenceSpecificationT = InferenceSpecification>
138 m_inferenceSpecificationHasBeenSet =
true;
139 m_inferenceSpecification = std::forward<InferenceSpecificationT>(value);
141 template <
typename InferenceSpecificationT = InferenceSpecification>
155 template <
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
157 m_validationSpecificationHasBeenSet =
true;
158 m_validationSpecification = std::forward<ValidationSpecificationT>(value);
160 template <
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
173 template <
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
175 m_sourceAlgorithmSpecificationHasBeenSet =
true;
176 m_sourceAlgorithmSpecification = std::forward<SourceAlgorithmSpecificationT>(value);
178 template <
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
194 m_certifyForMarketplaceHasBeenSet =
true;
195 m_certifyForMarketplace = value;
216 template <
typename TagsT = Aws::Vector<Tag>>
218 m_tagsHasBeenSet =
true;
219 m_tags = std::forward<TagsT>(value);
221 template <
typename TagsT = Aws::Vector<Tag>>
223 SetTags(std::forward<TagsT>(value));
226 template <
typename TagsT = Tag>
228 m_tagsHasBeenSet =
true;
229 m_tags.emplace_back(std::forward<TagsT>(value));
244 m_modelApprovalStatusHasBeenSet =
true;
245 m_modelApprovalStatus = value;
257 template <
typename MetadataPropertiesT = MetadataProperties>
259 m_metadataPropertiesHasBeenSet =
true;
260 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
262 template <
typename MetadataPropertiesT = MetadataProperties>
275 template <
typename ModelMetricsT = ModelMetrics>
277 m_modelMetricsHasBeenSet =
true;
278 m_modelMetrics = std::forward<ModelMetricsT>(value);
280 template <
typename ModelMetricsT = ModelMetrics>
293 template <
typename ClientTokenT = Aws::String>
295 m_clientTokenHasBeenSet =
true;
296 m_clientToken = std::forward<ClientTokenT>(value);
298 template <
typename ClientTokenT = Aws::String>
313 template <
typename DomainT = Aws::String>
315 m_domainHasBeenSet =
true;
316 m_domain = std::forward<DomainT>(value);
318 template <
typename DomainT = Aws::String>
338 template <
typename TaskT = Aws::String>
340 m_taskHasBeenSet =
true;
341 m_task = std::forward<TaskT>(value);
343 template <
typename TaskT = Aws::String>
345 SetTask(std::forward<TaskT>(value));
361 template <
typename SamplePayloadUrlT = Aws::String>
363 m_samplePayloadUrlHasBeenSet =
true;
364 m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value);
366 template <
typename SamplePayloadUrlT = Aws::String>
379 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
381 m_customerMetadataPropertiesHasBeenSet =
true;
382 m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value);
384 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
389 template <
typename CustomerMetadataPropertiesKeyT = Aws::String,
typename CustomerMetadataPropertiesValueT = Aws::String>
391 m_customerMetadataPropertiesHasBeenSet =
true;
392 m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key),
393 std::forward<CustomerMetadataPropertiesValueT>(value));
408 template <
typename DriftCheckBaselinesT = DriftCheckBaselines>
410 m_driftCheckBaselinesHasBeenSet =
true;
411 m_driftCheckBaselines = std::forward<DriftCheckBaselinesT>(value);
413 template <
typename DriftCheckBaselinesT = DriftCheckBaselines>
428 return m_additionalInferenceSpecifications;
431 template <
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
433 m_additionalInferenceSpecificationsHasBeenSet =
true;
434 m_additionalInferenceSpecifications = std::forward<AdditionalInferenceSpecificationsT>(value);
436 template <
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
441 template <
typename AdditionalInferenceSpecificationsT = AdditionalInferenceSpecificationDefinition>
443 m_additionalInferenceSpecificationsHasBeenSet =
true;
444 m_additionalInferenceSpecifications.emplace_back(std::forward<AdditionalInferenceSpecificationsT>(value));
456 m_skipModelValidationHasBeenSet =
true;
457 m_skipModelValidation = value;
473 template <
typename SourceUriT = Aws::String>
475 m_sourceUriHasBeenSet =
true;
476 m_sourceUri = std::forward<SourceUriT>(value);
478 template <
typename SourceUriT = Aws::String>
492 template <
typename SecurityConfigT = ModelPackageSecurityConfig>
494 m_securityConfigHasBeenSet =
true;
495 m_securityConfig = std::forward<SecurityConfigT>(value);
497 template <
typename SecurityConfigT = ModelPackageSecurityConfig>
522 template <
typename ModelCardT = ModelPackageModelCard>
524 m_modelCardHasBeenSet =
true;
525 m_modelCard = std::forward<ModelCardT>(value);
527 template <
typename ModelCardT = ModelPackageModelCard>
541 template <
typename ModelLifeCycleT = ModelLifeCycle>
543 m_modelLifeCycleHasBeenSet =
true;
544 m_modelLifeCycle = std::forward<ModelLifeCycleT>(value);
546 template <
typename ModelLifeCycleT = ModelLifeCycle>
561 InferenceSpecification m_inferenceSpecification;
563 ModelPackageValidationSpecification m_validationSpecification;
565 SourceAlgorithmSpecification m_sourceAlgorithmSpecification;
567 bool m_certifyForMarketplace{
false};
573 MetadataProperties m_metadataProperties;
575 ModelMetrics m_modelMetrics;
587 DriftCheckBaselines m_driftCheckBaselines;
595 ModelPackageSecurityConfig m_securityConfig;
597 ModelPackageModelCard m_modelCard;
599 ModelLifeCycle m_modelLifeCycle;
600 bool m_modelPackageNameHasBeenSet =
false;
601 bool m_modelPackageGroupNameHasBeenSet =
false;
602 bool m_modelPackageDescriptionHasBeenSet =
false;
603 bool m_modelPackageRegistrationTypeHasBeenSet =
false;
604 bool m_inferenceSpecificationHasBeenSet =
false;
605 bool m_validationSpecificationHasBeenSet =
false;
606 bool m_sourceAlgorithmSpecificationHasBeenSet =
false;
607 bool m_certifyForMarketplaceHasBeenSet =
false;
608 bool m_tagsHasBeenSet =
false;
609 bool m_modelApprovalStatusHasBeenSet =
false;
610 bool m_metadataPropertiesHasBeenSet =
false;
611 bool m_modelMetricsHasBeenSet =
false;
612 bool m_clientTokenHasBeenSet =
true;
613 bool m_domainHasBeenSet =
false;
614 bool m_taskHasBeenSet =
false;
615 bool m_samplePayloadUrlHasBeenSet =
false;
616 bool m_customerMetadataPropertiesHasBeenSet =
false;
617 bool m_driftCheckBaselinesHasBeenSet =
false;
618 bool m_additionalInferenceSpecificationsHasBeenSet =
false;
619 bool m_skipModelValidationHasBeenSet =
false;
620 bool m_sourceUriHasBeenSet =
false;
621 bool m_securityConfigHasBeenSet =
false;
622 bool m_modelCardHasBeenSet =
false;
623 bool m_modelLifeCycleHasBeenSet =
false;
CreateModelPackageRequest & WithModelMetrics(ModelMetricsT &&value)
virtual const char * GetServiceRequestName() const override
void SetModelApprovalStatus(ModelApprovalStatus value)
bool SourceAlgorithmSpecificationHasBeenSet() const
const Aws::String & GetDomain() const
CreateModelPackageRequest & WithModelPackageDescription(ModelPackageDescriptionT &&value)
const Aws::String & GetSourceUri() const
SkipModelValidation GetSkipModelValidation() const
CreateModelPackageRequest & WithValidationSpecification(ValidationSpecificationT &&value)
CreateModelPackageRequest & AddCustomerMetadataProperties(CustomerMetadataPropertiesKeyT &&key, CustomerMetadataPropertiesValueT &&value)
const InferenceSpecification & GetInferenceSpecification() const
const Aws::Vector< AdditionalInferenceSpecificationDefinition > & GetAdditionalInferenceSpecifications() const
bool CustomerMetadataPropertiesHasBeenSet() const
bool AdditionalInferenceSpecificationsHasBeenSet() const
bool ModelCardHasBeenSet() const
void SetSourceUri(SourceUriT &&value)
const ModelPackageModelCard & GetModelCard() const
bool CertifyForMarketplaceHasBeenSet() const
const Aws::String & GetModelPackageDescription() const
bool ModelPackageGroupNameHasBeenSet() const
const ModelMetrics & GetModelMetrics() const
CreateModelPackageRequest & WithCertifyForMarketplace(bool value)
CreateModelPackageRequest & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
const Aws::String & GetModelPackageGroupName() const
const Aws::Vector< Tag > & GetTags() const
void SetAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetCustomerMetadataProperties() const
CreateModelPackageRequest & WithInferenceSpecification(InferenceSpecificationT &&value)
bool ValidationSpecificationHasBeenSet() const
CreateModelPackageRequest & WithCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
AWS_SAGEMAKER_API CreateModelPackageRequest()=default
bool ModelMetricsHasBeenSet() const
bool TaskHasBeenSet() const
CreateModelPackageRequest & WithSourceUri(SourceUriT &&value)
const ModelPackageSecurityConfig & GetSecurityConfig() const
bool ModelPackageNameHasBeenSet() const
void SetModelCard(ModelCardT &&value)
CreateModelPackageRequest & WithTags(TagsT &&value)
void SetTags(TagsT &&value)
void SetValidationSpecification(ValidationSpecificationT &&value)
bool ModelPackageDescriptionHasBeenSet() const
const DriftCheckBaselines & GetDriftCheckBaselines() const
const Aws::String & GetSamplePayloadUrl() const
CreateModelPackageRequest & AddAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
void SetModelPackageName(ModelPackageNameT &&value)
bool SourceUriHasBeenSet() const
bool SkipModelValidationHasBeenSet() const
CreateModelPackageRequest & WithDomain(DomainT &&value)
CreateModelPackageRequest & WithModelPackageName(ModelPackageNameT &&value)
void SetInferenceSpecification(InferenceSpecificationT &&value)
CreateModelPackageRequest & WithModelCard(ModelCardT &&value)
bool SecurityConfigHasBeenSet() const
CreateModelPackageRequest & WithClientToken(ClientTokenT &&value)
const ModelPackageValidationSpecification & GetValidationSpecification() const
void SetDomain(DomainT &&value)
void SetSourceAlgorithmSpecification(SourceAlgorithmSpecificationT &&value)
const Aws::String & GetModelPackageName() const
CreateModelPackageRequest & WithTask(TaskT &&value)
bool ModelApprovalStatusHasBeenSet() const
void SetSkipModelValidation(SkipModelValidation value)
const Aws::String & GetTask() const
bool SamplePayloadUrlHasBeenSet() const
CreateModelPackageRequest & WithModelLifeCycle(ModelLifeCycleT &&value)
CreateModelPackageRequest & WithSkipModelValidation(SkipModelValidation value)
const ModelLifeCycle & GetModelLifeCycle() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateModelPackageRequest & WithModelApprovalStatus(ModelApprovalStatus value)
void SetDriftCheckBaselines(DriftCheckBaselinesT &&value)
bool GetCertifyForMarketplace() const
ModelApprovalStatus GetModelApprovalStatus() const
const SourceAlgorithmSpecification & GetSourceAlgorithmSpecification() const
void SetModelPackageDescription(ModelPackageDescriptionT &&value)
CreateModelPackageRequest & AddTags(TagsT &&value)
const Aws::String & GetClientToken() const
CreateModelPackageRequest & WithModelPackageRegistrationType(ModelPackageRegistrationType value)
CreateModelPackageRequest & WithMetadataProperties(MetadataPropertiesT &&value)
CreateModelPackageRequest & WithSamplePayloadUrl(SamplePayloadUrlT &&value)
bool ClientTokenHasBeenSet() const
bool ModelPackageRegistrationTypeHasBeenSet() const
bool InferenceSpecificationHasBeenSet() const
const MetadataProperties & GetMetadataProperties() const
void SetTask(TaskT &&value)
CreateModelPackageRequest & WithSourceAlgorithmSpecification(SourceAlgorithmSpecificationT &&value)
void SetModelLifeCycle(ModelLifeCycleT &&value)
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
bool DomainHasBeenSet() const
void SetCertifyForMarketplace(bool value)
bool MetadataPropertiesHasBeenSet() const
void SetModelMetrics(ModelMetricsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool TagsHasBeenSet() const
void SetSamplePayloadUrl(SamplePayloadUrlT &&value)
void SetClientToken(ClientTokenT &&value)
CreateModelPackageRequest & WithAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT &&value)
CreateModelPackageRequest & WithSecurityConfig(SecurityConfigT &&value)
bool ModelLifeCycleHasBeenSet() const
CreateModelPackageRequest & WithDriftCheckBaselines(DriftCheckBaselinesT &&value)
void SetCustomerMetadataProperties(CustomerMetadataPropertiesT &&value)
void SetModelPackageRegistrationType(ModelPackageRegistrationType value)
void SetSecurityConfig(SecurityConfigT &&value)
ModelPackageRegistrationType GetModelPackageRegistrationType() const
bool DriftCheckBaselinesHasBeenSet() const
void SetMetadataProperties(MetadataPropertiesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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