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/ManagedStorageType.h>
17#include <aws/sagemaker/model/MetadataProperties.h>
18#include <aws/sagemaker/model/ModelApprovalStatus.h>
19#include <aws/sagemaker/model/ModelLifeCycle.h>
20#include <aws/sagemaker/model/ModelMetrics.h>
21#include <aws/sagemaker/model/ModelPackageModelCard.h>
22#include <aws/sagemaker/model/ModelPackageRegistrationType.h>
23#include <aws/sagemaker/model/ModelPackageSecurityConfig.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>
59 template <
typename ModelPackageNameT = Aws::String>
61 m_modelPackageNameHasBeenSet =
true;
62 m_modelPackageName = std::forward<ModelPackageNameT>(value);
64 template <
typename ModelPackageNameT = Aws::String>
79 template <
typename ModelPackageGroupNameT = Aws::String>
81 m_modelPackageGroupNameHasBeenSet =
true;
82 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
84 template <
typename ModelPackageGroupNameT = Aws::String>
97 template <
typename ModelPackageDescriptionT = Aws::String>
99 m_modelPackageDescriptionHasBeenSet =
true;
100 m_modelPackageDescription = std::forward<ModelPackageDescriptionT>(value);
102 template <
typename ModelPackageDescriptionT = Aws::String>
116 m_modelPackageRegistrationTypeHasBeenSet =
true;
117 m_modelPackageRegistrationType = value;
137 template <
typename InferenceSpecificationT = InferenceSpecification>
139 m_inferenceSpecificationHasBeenSet =
true;
140 m_inferenceSpecification = std::forward<InferenceSpecificationT>(value);
142 template <
typename InferenceSpecificationT = InferenceSpecification>
156 template <
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
158 m_validationSpecificationHasBeenSet =
true;
159 m_validationSpecification = std::forward<ValidationSpecificationT>(value);
161 template <
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
174 template <
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
176 m_sourceAlgorithmSpecificationHasBeenSet =
true;
177 m_sourceAlgorithmSpecification = std::forward<SourceAlgorithmSpecificationT>(value);
179 template <
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
195 m_certifyForMarketplaceHasBeenSet =
true;
196 m_certifyForMarketplace = value;
217 template <
typename TagsT = Aws::Vector<Tag>>
219 m_tagsHasBeenSet =
true;
220 m_tags = std::forward<TagsT>(value);
222 template <
typename TagsT = Aws::Vector<Tag>>
224 SetTags(std::forward<TagsT>(value));
227 template <
typename TagsT = Tag>
229 m_tagsHasBeenSet =
true;
230 m_tags.emplace_back(std::forward<TagsT>(value));
245 m_modelApprovalStatusHasBeenSet =
true;
246 m_modelApprovalStatus = value;
258 template <
typename MetadataPropertiesT = MetadataProperties>
260 m_metadataPropertiesHasBeenSet =
true;
261 m_metadataProperties = std::forward<MetadataPropertiesT>(value);
263 template <
typename MetadataPropertiesT = MetadataProperties>
276 template <
typename ModelMetricsT = ModelMetrics>
278 m_modelMetricsHasBeenSet =
true;
279 m_modelMetrics = std::forward<ModelMetricsT>(value);
281 template <
typename ModelMetricsT = ModelMetrics>
294 template <
typename ClientTokenT = Aws::String>
296 m_clientTokenHasBeenSet =
true;
297 m_clientToken = std::forward<ClientTokenT>(value);
299 template <
typename ClientTokenT = Aws::String>
314 template <
typename DomainT = Aws::String>
316 m_domainHasBeenSet =
true;
317 m_domain = std::forward<DomainT>(value);
319 template <
typename DomainT = Aws::String>
339 template <
typename TaskT = Aws::String>
341 m_taskHasBeenSet =
true;
342 m_task = std::forward<TaskT>(value);
344 template <
typename TaskT = Aws::String>
346 SetTask(std::forward<TaskT>(value));
362 template <
typename SamplePayloadUrlT = Aws::String>
364 m_samplePayloadUrlHasBeenSet =
true;
365 m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value);
367 template <
typename SamplePayloadUrlT = Aws::String>
380 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
382 m_customerMetadataPropertiesHasBeenSet =
true;
383 m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value);
385 template <
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
390 template <
typename CustomerMetadataPropertiesKeyT = Aws::String,
typename CustomerMetadataPropertiesValueT = Aws::String>
392 m_customerMetadataPropertiesHasBeenSet =
true;
393 m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key),
394 std::forward<CustomerMetadataPropertiesValueT>(value));
409 template <
typename DriftCheckBaselinesT = DriftCheckBaselines>
411 m_driftCheckBaselinesHasBeenSet =
true;
412 m_driftCheckBaselines = std::forward<DriftCheckBaselinesT>(value);
414 template <
typename DriftCheckBaselinesT = DriftCheckBaselines>
429 return m_additionalInferenceSpecifications;
432 template <
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
434 m_additionalInferenceSpecificationsHasBeenSet =
true;
435 m_additionalInferenceSpecifications = std::forward<AdditionalInferenceSpecificationsT>(value);
437 template <
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
442 template <
typename AdditionalInferenceSpecificationsT = AdditionalInferenceSpecificationDefinition>
444 m_additionalInferenceSpecificationsHasBeenSet =
true;
445 m_additionalInferenceSpecifications.emplace_back(std::forward<AdditionalInferenceSpecificationsT>(value));
457 m_skipModelValidationHasBeenSet =
true;
458 m_skipModelValidation = value;
474 template <
typename SourceUriT = Aws::String>
476 m_sourceUriHasBeenSet =
true;
477 m_sourceUri = std::forward<SourceUriT>(value);
479 template <
typename SourceUriT = Aws::String>
493 template <
typename SecurityConfigT = ModelPackageSecurityConfig>
495 m_securityConfigHasBeenSet =
true;
496 m_securityConfig = std::forward<SecurityConfigT>(value);
498 template <
typename SecurityConfigT = ModelPackageSecurityConfig>
523 template <
typename ModelCardT = ModelPackageModelCard>
525 m_modelCardHasBeenSet =
true;
526 m_modelCard = std::forward<ModelCardT>(value);
528 template <
typename ModelCardT = ModelPackageModelCard>
542 template <
typename ModelLifeCycleT = ModelLifeCycle>
544 m_modelLifeCycleHasBeenSet =
true;
545 m_modelLifeCycle = std::forward<ModelLifeCycleT>(value);
547 template <
typename ModelLifeCycleT = ModelLifeCycle>
561 m_managedStorageTypeHasBeenSet =
true;
562 m_managedStorageType = value;
578 InferenceSpecification m_inferenceSpecification;
580 ModelPackageValidationSpecification m_validationSpecification;
582 SourceAlgorithmSpecification m_sourceAlgorithmSpecification;
584 bool m_certifyForMarketplace{
false};
590 MetadataProperties m_metadataProperties;
592 ModelMetrics m_modelMetrics;
604 DriftCheckBaselines m_driftCheckBaselines;
612 ModelPackageSecurityConfig m_securityConfig;
614 ModelPackageModelCard m_modelCard;
616 ModelLifeCycle m_modelLifeCycle;
619 bool m_modelPackageNameHasBeenSet =
false;
620 bool m_modelPackageGroupNameHasBeenSet =
false;
621 bool m_modelPackageDescriptionHasBeenSet =
false;
622 bool m_modelPackageRegistrationTypeHasBeenSet =
false;
623 bool m_inferenceSpecificationHasBeenSet =
false;
624 bool m_validationSpecificationHasBeenSet =
false;
625 bool m_sourceAlgorithmSpecificationHasBeenSet =
false;
626 bool m_certifyForMarketplaceHasBeenSet =
false;
627 bool m_tagsHasBeenSet =
false;
628 bool m_modelApprovalStatusHasBeenSet =
false;
629 bool m_metadataPropertiesHasBeenSet =
false;
630 bool m_modelMetricsHasBeenSet =
false;
631 bool m_clientTokenHasBeenSet =
true;
632 bool m_domainHasBeenSet =
false;
633 bool m_taskHasBeenSet =
false;
634 bool m_samplePayloadUrlHasBeenSet =
false;
635 bool m_customerMetadataPropertiesHasBeenSet =
false;
636 bool m_driftCheckBaselinesHasBeenSet =
false;
637 bool m_additionalInferenceSpecificationsHasBeenSet =
false;
638 bool m_skipModelValidationHasBeenSet =
false;
639 bool m_sourceUriHasBeenSet =
false;
640 bool m_securityConfigHasBeenSet =
false;
641 bool m_modelCardHasBeenSet =
false;
642 bool m_modelLifeCycleHasBeenSet =
false;
643 bool m_managedStorageTypeHasBeenSet =
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
ManagedStorageType GetManagedStorageType() 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)
void SetManagedStorageType(ManagedStorageType 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
bool ManagedStorageTypeHasBeenSet() 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 & WithManagedStorageType(ManagedStorageType value)
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