7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/InferenceSpecification.h>
11#include <aws/sagemaker/model/ModelPackageValidationSpecification.h>
12#include <aws/sagemaker/model/SourceAlgorithmSpecification.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/sagemaker/model/ModelApprovalStatus.h>
15#include <aws/sagemaker/model/MetadataProperties.h>
16#include <aws/sagemaker/model/ModelMetrics.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/sagemaker/model/DriftCheckBaselines.h>
19#include <aws/sagemaker/model/SkipModelValidation.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/sagemaker/model/Tag.h>
24#include <aws/sagemaker/model/AdditionalInferenceSpecificationDefinition.h>
26#include <aws/core/utils/UUID.h>
61 template<
typename ModelPackageNameT = Aws::String>
62 void SetModelPackageName(ModelPackageNameT&& value) { m_modelPackageNameHasBeenSet =
true; m_modelPackageName = std::forward<ModelPackageNameT>(value); }
63 template<
typename ModelPackageNameT = Aws::String>
75 template<
typename ModelPackageGroupNameT = Aws::String>
76 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) { m_modelPackageGroupNameHasBeenSet =
true; m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value); }
77 template<
typename ModelPackageGroupNameT = Aws::String>
87 template<
typename ModelPackageDescriptionT = Aws::String>
88 void SetModelPackageDescription(ModelPackageDescriptionT&& value) { m_modelPackageDescriptionHasBeenSet =
true; m_modelPackageDescription = std::forward<ModelPackageDescriptionT>(value); }
89 template<
typename ModelPackageDescriptionT = Aws::String>
105 template<
typename InferenceSpecificationT = InferenceSpecification>
106 void SetInferenceSpecification(InferenceSpecificationT&& value) { m_inferenceSpecificationHasBeenSet =
true; m_inferenceSpecification = std::forward<InferenceSpecificationT>(value); }
107 template<
typename InferenceSpecificationT = InferenceSpecification>
118 template<
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
119 void SetValidationSpecification(ValidationSpecificationT&& value) { m_validationSpecificationHasBeenSet =
true; m_validationSpecification = std::forward<ValidationSpecificationT>(value); }
120 template<
typename Val
idationSpecificationT = ModelPackageVal
idationSpecification>
130 template<
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
131 void SetSourceAlgorithmSpecification(SourceAlgorithmSpecificationT&& value) { m_sourceAlgorithmSpecificationHasBeenSet =
true; m_sourceAlgorithmSpecification = std::forward<SourceAlgorithmSpecificationT>(value); }
132 template<
typename SourceAlgorithmSpecificationT = SourceAlgorithmSpecification>
161 template<
typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
163 template<
typename TagsT = Aws::Vector<Tag>>
165 template<
typename TagsT = Tag>
186 template<
typename MetadataPropertiesT = MetadataProperties>
187 void SetMetadataProperties(MetadataPropertiesT&& value) { m_metadataPropertiesHasBeenSet =
true; m_metadataProperties = std::forward<MetadataPropertiesT>(value); }
188 template<
typename MetadataPropertiesT = MetadataProperties>
198 template<
typename ModelMetricsT = ModelMetrics>
199 void SetModelMetrics(ModelMetricsT&& value) { m_modelMetricsHasBeenSet =
true; m_modelMetrics = std::forward<ModelMetricsT>(value); }
200 template<
typename ModelMetricsT = ModelMetrics>
210 template<
typename ClientTokenT = Aws::String>
211 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
212 template<
typename ClientTokenT = Aws::String>
224 template<
typename DomainT = Aws::String>
225 void SetDomain(DomainT&& value) { m_domainHasBeenSet =
true; m_domain = std::forward<DomainT>(value); }
226 template<
typename DomainT = Aws::String>
243 template<
typename TaskT = Aws::String>
244 void SetTask(TaskT&& value) { m_taskHasBeenSet =
true; m_task = std::forward<TaskT>(value); }
245 template<
typename TaskT = Aws::String>
260 template<
typename SamplePayloadUrlT = Aws::String>
261 void SetSamplePayloadUrl(SamplePayloadUrlT&& value) { m_samplePayloadUrlHasBeenSet =
true; m_samplePayloadUrl = std::forward<SamplePayloadUrlT>(value); }
262 template<
typename SamplePayloadUrlT = Aws::String>
272 template<
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
273 void SetCustomerMetadataProperties(CustomerMetadataPropertiesT&& value) { m_customerMetadataPropertiesHasBeenSet =
true; m_customerMetadataProperties = std::forward<CustomerMetadataPropertiesT>(value); }
274 template<
typename CustomerMetadataPropertiesT = Aws::Map<Aws::String, Aws::String>>
276 template<
typename CustomerMetadataPropertiesKeyT = Aws::String,
typename CustomerMetadataPropertiesValueT = Aws::String>
278 m_customerMetadataPropertiesHasBeenSet =
true; m_customerMetadataProperties.emplace(std::forward<CustomerMetadataPropertiesKeyT>(key), std::forward<CustomerMetadataPropertiesValueT>(value));
return *
this;
292 template<
typename DriftCheckBaselinesT = DriftCheckBaselines>
293 void SetDriftCheckBaselines(DriftCheckBaselinesT&& value) { m_driftCheckBaselinesHasBeenSet =
true; m_driftCheckBaselines = std::forward<DriftCheckBaselinesT>(value); }
294 template<
typename DriftCheckBaselinesT = DriftCheckBaselines>
307 template<
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
308 void SetAdditionalInferenceSpecifications(AdditionalInferenceSpecificationsT&& value) { m_additionalInferenceSpecificationsHasBeenSet =
true; m_additionalInferenceSpecifications = std::forward<AdditionalInferenceSpecificationsT>(value); }
309 template<
typename AdditionalInferenceSpecificationsT = Aws::Vector<AdditionalInferenceSpecificationDefinition>>
311 template<
typename AdditionalInferenceSpecificationsT = AdditionalInferenceSpecificationDefinition>
333 template<
typename SourceUriT = Aws::String>
334 void SetSourceUri(SourceUriT&& value) { m_sourceUriHasBeenSet =
true; m_sourceUri = std::forward<SourceUriT>(value); }
335 template<
typename SourceUriT = Aws::String>
346 template<
typename SecurityConfigT = ModelPackageSecurityConfig>
347 void SetSecurityConfig(SecurityConfigT&& value) { m_securityConfigHasBeenSet =
true; m_securityConfig = std::forward<SecurityConfigT>(value); }
348 template<
typename SecurityConfigT = ModelPackageSecurityConfig>
370 template<
typename ModelCardT = ModelPackageModelCard>
371 void SetModelCard(ModelCardT&& value) { m_modelCardHasBeenSet =
true; m_modelCard = std::forward<ModelCardT>(value); }
372 template<
typename ModelCardT = ModelPackageModelCard>
383 template<
typename ModelLifeCycleT = ModelLifeCycle>
384 void SetModelLifeCycle(ModelLifeCycleT&& value) { m_modelLifeCycleHasBeenSet =
true; m_modelLifeCycle = std::forward<ModelLifeCycleT>(value); }
385 template<
typename ModelLifeCycleT = ModelLifeCycle>
391 bool m_modelPackageNameHasBeenSet =
false;
394 bool m_modelPackageGroupNameHasBeenSet =
false;
397 bool m_modelPackageDescriptionHasBeenSet =
false;
400 bool m_inferenceSpecificationHasBeenSet =
false;
403 bool m_validationSpecificationHasBeenSet =
false;
406 bool m_sourceAlgorithmSpecificationHasBeenSet =
false;
408 bool m_certifyForMarketplace{
false};
409 bool m_certifyForMarketplaceHasBeenSet =
false;
412 bool m_tagsHasBeenSet =
false;
415 bool m_modelApprovalStatusHasBeenSet =
false;
417 MetadataProperties m_metadataProperties;
418 bool m_metadataPropertiesHasBeenSet =
false;
420 ModelMetrics m_modelMetrics;
421 bool m_modelMetricsHasBeenSet =
false;
424 bool m_clientTokenHasBeenSet =
true;
427 bool m_domainHasBeenSet =
false;
430 bool m_taskHasBeenSet =
false;
433 bool m_samplePayloadUrlHasBeenSet =
false;
436 bool m_customerMetadataPropertiesHasBeenSet =
false;
438 DriftCheckBaselines m_driftCheckBaselines;
439 bool m_driftCheckBaselinesHasBeenSet =
false;
442 bool m_additionalInferenceSpecificationsHasBeenSet =
false;
445 bool m_skipModelValidationHasBeenSet =
false;
448 bool m_sourceUriHasBeenSet =
false;
450 ModelPackageSecurityConfig m_securityConfig;
451 bool m_securityConfigHasBeenSet =
false;
453 ModelPackageModelCard m_modelCard;
454 bool m_modelCardHasBeenSet =
false;
456 ModelLifeCycle m_modelLifeCycle;
457 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 & WithMetadataProperties(MetadataPropertiesT &&value)
CreateModelPackageRequest & WithSamplePayloadUrl(SamplePayloadUrlT &&value)
bool ClientTokenHasBeenSet() 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 SetSecurityConfig(SecurityConfigT &&value)
bool DriftCheckBaselinesHasBeenSet() const
void SetMetadataProperties(MetadataPropertiesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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