Class CfnModelPackageMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelPackageMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackageMixinProps>
- Enclosing interface:
CfnModelPackageMixinProps
@Stability(Stable)
public static final class CfnModelPackageMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackageMixinProps>
A builder for
CfnModelPackageMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInferenceSpecifications(List<? extends Object> additionalInferenceSpecifications) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecifications()additionalInferenceSpecifications(IResolvable additionalInferenceSpecifications) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecifications()additionalInferenceSpecificationsToAdd(List<? extends Object> additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecificationsToAdd()additionalInferenceSpecificationsToAdd(IResolvable additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecificationsToAdd()approvalDescription(String approvalDescription) Sets the value ofCfnModelPackageMixinProps.getApprovalDescription()build()Builds the configured instance.certifyForMarketplace(Boolean certifyForMarketplace) Sets the value ofCfnModelPackageMixinProps.getCertifyForMarketplace()certifyForMarketplace(IResolvable certifyForMarketplace) Sets the value ofCfnModelPackageMixinProps.getCertifyForMarketplace()clientToken(String clientToken) Sets the value ofCfnModelPackageMixinProps.getClientToken()customerMetadataProperties(Map<String, String> customerMetadataProperties) Sets the value ofCfnModelPackageMixinProps.getCustomerMetadataProperties()customerMetadataProperties(IResolvable customerMetadataProperties) Sets the value ofCfnModelPackageMixinProps.getCustomerMetadataProperties()Sets the value ofCfnModelPackageMixinProps.getDomain()driftCheckBaselines(CfnModelPackagePropsMixin.DriftCheckBaselinesProperty driftCheckBaselines) Sets the value ofCfnModelPackageMixinProps.getDriftCheckBaselines()driftCheckBaselines(IResolvable driftCheckBaselines) Sets the value ofCfnModelPackageMixinProps.getDriftCheckBaselines()inferenceSpecification(CfnModelPackagePropsMixin.InferenceSpecificationProperty inferenceSpecification) Sets the value ofCfnModelPackageMixinProps.getInferenceSpecification()inferenceSpecification(IResolvable inferenceSpecification) Sets the value ofCfnModelPackageMixinProps.getInferenceSpecification()lastModifiedTime(String lastModifiedTime) Sets the value ofCfnModelPackageMixinProps.getLastModifiedTime()metadataProperties(CfnModelPackagePropsMixin.MetadataPropertiesProperty metadataProperties) Sets the value ofCfnModelPackageMixinProps.getMetadataProperties()metadataProperties(IResolvable metadataProperties) Sets the value ofCfnModelPackageMixinProps.getMetadataProperties()modelApprovalStatus(String modelApprovalStatus) Sets the value ofCfnModelPackageMixinProps.getModelApprovalStatus()Sets the value ofCfnModelPackageMixinProps.getModelCard()modelCard(IResolvable modelCard) Sets the value ofCfnModelPackageMixinProps.getModelCard()modelMetrics(CfnModelPackagePropsMixin.ModelMetricsProperty modelMetrics) Sets the value ofCfnModelPackageMixinProps.getModelMetrics()modelMetrics(IResolvable modelMetrics) Sets the value ofCfnModelPackageMixinProps.getModelMetrics()modelPackageDescription(String modelPackageDescription) Sets the value ofCfnModelPackageMixinProps.getModelPackageDescription()modelPackageGroupName(String modelPackageGroupName) Sets the value ofCfnModelPackageMixinProps.getModelPackageGroupName()modelPackageName(String modelPackageName) Sets the value ofCfnModelPackageMixinProps.getModelPackageName()modelPackageStatusDetails(CfnModelPackagePropsMixin.ModelPackageStatusDetailsProperty modelPackageStatusDetails) Sets the value ofCfnModelPackageMixinProps.getModelPackageStatusDetails()modelPackageStatusDetails(IResolvable modelPackageStatusDetails) Sets the value ofCfnModelPackageMixinProps.getModelPackageStatusDetails()modelPackageVersion(Number modelPackageVersion) Sets the value ofCfnModelPackageMixinProps.getModelPackageVersion()samplePayloadUrl(String samplePayloadUrl) Sets the value ofCfnModelPackageMixinProps.getSamplePayloadUrl()securityConfig(CfnModelPackagePropsMixin.SecurityConfigProperty securityConfig) Sets the value ofCfnModelPackageMixinProps.getSecurityConfig()securityConfig(IResolvable securityConfig) Sets the value ofCfnModelPackageMixinProps.getSecurityConfig()skipModelValidation(String skipModelValidation) Sets the value ofCfnModelPackageMixinProps.getSkipModelValidation()sourceAlgorithmSpecification(CfnModelPackagePropsMixin.SourceAlgorithmSpecificationProperty sourceAlgorithmSpecification) Sets the value ofCfnModelPackageMixinProps.getSourceAlgorithmSpecification()sourceAlgorithmSpecification(IResolvable sourceAlgorithmSpecification) Sets the value ofCfnModelPackageMixinProps.getSourceAlgorithmSpecification()Sets the value ofCfnModelPackageMixinProps.getSourceUri()Sets the value ofCfnModelPackageMixinProps.getTags()Sets the value ofCfnModelPackageMixinProps.getTask()validationSpecification(CfnModelPackagePropsMixin.ValidationSpecificationProperty validationSpecification) Sets the value ofCfnModelPackageMixinProps.getValidationSpecification()validationSpecification(IResolvable validationSpecification) Sets the value ofCfnModelPackageMixinProps.getValidationSpecification()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalInferenceSpecifications
@Stability(Stable) public CfnModelPackageMixinProps.Builder additionalInferenceSpecifications(IResolvable additionalInferenceSpecifications) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecifications()- Parameters:
additionalInferenceSpecifications- An array of additional Inference Specification objects.- Returns:
this
-
additionalInferenceSpecifications
@Stability(Stable) public CfnModelPackageMixinProps.Builder additionalInferenceSpecifications(List<? extends Object> additionalInferenceSpecifications) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecifications()- Parameters:
additionalInferenceSpecifications- An array of additional Inference Specification objects.- Returns:
this
-
additionalInferenceSpecificationsToAdd
@Stability(Stable) public CfnModelPackageMixinProps.Builder additionalInferenceSpecificationsToAdd(IResolvable additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecificationsToAdd()- Parameters:
additionalInferenceSpecificationsToAdd- An array of additional Inference Specification objects to be added to the existing array. The total number of additional Inference Specification objects cannot exceed 15. Each additional Inference Specification object specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.- Returns:
this
-
additionalInferenceSpecificationsToAdd
@Stability(Stable) public CfnModelPackageMixinProps.Builder additionalInferenceSpecificationsToAdd(List<? extends Object> additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageMixinProps.getAdditionalInferenceSpecificationsToAdd()- Parameters:
additionalInferenceSpecificationsToAdd- An array of additional Inference Specification objects to be added to the existing array. The total number of additional Inference Specification objects cannot exceed 15. Each additional Inference Specification object specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.- Returns:
this
-
approvalDescription
@Stability(Stable) public CfnModelPackageMixinProps.Builder approvalDescription(String approvalDescription) Sets the value ofCfnModelPackageMixinProps.getApprovalDescription()- Parameters:
approvalDescription- A description provided when the model approval is set.- Returns:
this
-
certifyForMarketplace
@Stability(Stable) public CfnModelPackageMixinProps.Builder certifyForMarketplace(Boolean certifyForMarketplace) Sets the value ofCfnModelPackageMixinProps.getCertifyForMarketplace()- Parameters:
certifyForMarketplace- Whether the model package is to be certified to be listed on AWS Marketplace. For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace .- Returns:
this
-
certifyForMarketplace
@Stability(Stable) public CfnModelPackageMixinProps.Builder certifyForMarketplace(IResolvable certifyForMarketplace) Sets the value ofCfnModelPackageMixinProps.getCertifyForMarketplace()- Parameters:
certifyForMarketplace- Whether the model package is to be certified to be listed on AWS Marketplace. For information about listing model packages on AWS Marketplace, see List Your Algorithm or Model Package on AWS Marketplace .- Returns:
this
-
clientToken
Sets the value ofCfnModelPackageMixinProps.getClientToken()- Parameters:
clientToken- A unique token that guarantees that the call to this API is idempotent.- Returns:
this
-
customerMetadataProperties
@Stability(Stable) public CfnModelPackageMixinProps.Builder customerMetadataProperties(Map<String, String> customerMetadataProperties) Sets the value ofCfnModelPackageMixinProps.getCustomerMetadataProperties()- Parameters:
customerMetadataProperties- The metadata properties for the model package.- Returns:
this
-
customerMetadataProperties
@Stability(Stable) public CfnModelPackageMixinProps.Builder customerMetadataProperties(IResolvable customerMetadataProperties) Sets the value ofCfnModelPackageMixinProps.getCustomerMetadataProperties()- Parameters:
customerMetadataProperties- The metadata properties for the model package.- Returns:
this
-
domain
Sets the value ofCfnModelPackageMixinProps.getDomain()- Parameters:
domain- The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.- Returns:
this
-
driftCheckBaselines
@Stability(Stable) public CfnModelPackageMixinProps.Builder driftCheckBaselines(IResolvable driftCheckBaselines) Sets the value ofCfnModelPackageMixinProps.getDriftCheckBaselines()- Parameters:
driftCheckBaselines- Represents the drift check baselines that can be used when the model monitor is set using the model package.- Returns:
this
-
driftCheckBaselines
@Stability(Stable) public CfnModelPackageMixinProps.Builder driftCheckBaselines(CfnModelPackagePropsMixin.DriftCheckBaselinesProperty driftCheckBaselines) Sets the value ofCfnModelPackageMixinProps.getDriftCheckBaselines()- Parameters:
driftCheckBaselines- Represents the drift check baselines that can be used when the model monitor is set using the model package.- Returns:
this
-
inferenceSpecification
@Stability(Stable) public CfnModelPackageMixinProps.Builder inferenceSpecification(IResolvable inferenceSpecification) Sets the value ofCfnModelPackageMixinProps.getInferenceSpecification()- Parameters:
inferenceSpecification- Defines how to perform inference generation after a training job is run.- Returns:
this
-
inferenceSpecification
@Stability(Stable) public CfnModelPackageMixinProps.Builder inferenceSpecification(CfnModelPackagePropsMixin.InferenceSpecificationProperty inferenceSpecification) Sets the value ofCfnModelPackageMixinProps.getInferenceSpecification()- Parameters:
inferenceSpecification- Defines how to perform inference generation after a training job is run.- Returns:
this
-
lastModifiedTime
@Stability(Stable) public CfnModelPackageMixinProps.Builder lastModifiedTime(String lastModifiedTime) Sets the value ofCfnModelPackageMixinProps.getLastModifiedTime()- Parameters:
lastModifiedTime- The last time the model package was modified.- Returns:
this
-
metadataProperties
@Stability(Stable) public CfnModelPackageMixinProps.Builder metadataProperties(IResolvable metadataProperties) Sets the value ofCfnModelPackageMixinProps.getMetadataProperties()- Parameters:
metadataProperties- Metadata properties of the tracking entity, trial, or trial component.- Returns:
this
-
metadataProperties
@Stability(Stable) public CfnModelPackageMixinProps.Builder metadataProperties(CfnModelPackagePropsMixin.MetadataPropertiesProperty metadataProperties) Sets the value ofCfnModelPackageMixinProps.getMetadataProperties()- Parameters:
metadataProperties- Metadata properties of the tracking entity, trial, or trial component.- Returns:
this
-
modelApprovalStatus
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelApprovalStatus(String modelApprovalStatus) Sets the value ofCfnModelPackageMixinProps.getModelApprovalStatus()- Parameters:
modelApprovalStatus- The approval status of the model. This can be one of the following values.APPROVED- The model is approvedREJECTED- The model is rejected.PENDING_MANUAL_APPROVAL- The model is waiting for manual approval.
- Returns:
this
-
modelCard
Sets the value ofCfnModelPackageMixinProps.getModelCard()- Parameters:
modelCard- An Amazon SageMaker Model Card.- Returns:
this
-
modelCard
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelCard(CfnModelPackagePropsMixin.ModelCardProperty modelCard) Sets the value ofCfnModelPackageMixinProps.getModelCard()- Parameters:
modelCard- An Amazon SageMaker Model Card.- Returns:
this
-
modelMetrics
Sets the value ofCfnModelPackageMixinProps.getModelMetrics()- Parameters:
modelMetrics- Metrics for the model.- Returns:
this
-
modelMetrics
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelMetrics(CfnModelPackagePropsMixin.ModelMetricsProperty modelMetrics) Sets the value ofCfnModelPackageMixinProps.getModelMetrics()- Parameters:
modelMetrics- Metrics for the model.- Returns:
this
-
modelPackageDescription
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelPackageDescription(String modelPackageDescription) Sets the value ofCfnModelPackageMixinProps.getModelPackageDescription()- Parameters:
modelPackageDescription- The description of the model package.- Returns:
this
-
modelPackageGroupName
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelPackageGroupName(String modelPackageGroupName) Sets the value ofCfnModelPackageMixinProps.getModelPackageGroupName()- Parameters:
modelPackageGroupName- The model group to which the model belongs.- Returns:
this
-
modelPackageName
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelPackageName(String modelPackageName) Sets the value ofCfnModelPackageMixinProps.getModelPackageName()- Parameters:
modelPackageName- The name of the model package. The name can be as follows:.- For a versioned model, the name is automatically generated by SageMaker Model Registry and follows the format '
ModelPackageGroupName/ModelPackageVersion'. - For an unversioned model, you must provide the name.
- For a versioned model, the name is automatically generated by SageMaker Model Registry and follows the format '
- Returns:
this
-
modelPackageStatusDetails
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelPackageStatusDetails(IResolvable modelPackageStatusDetails) Sets the value ofCfnModelPackageMixinProps.getModelPackageStatusDetails()- Parameters:
modelPackageStatusDetails- Specifies the validation and image scan statuses of the model package.- Returns:
this
-
modelPackageStatusDetails
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelPackageStatusDetails(CfnModelPackagePropsMixin.ModelPackageStatusDetailsProperty modelPackageStatusDetails) Sets the value ofCfnModelPackageMixinProps.getModelPackageStatusDetails()- Parameters:
modelPackageStatusDetails- Specifies the validation and image scan statuses of the model package.- Returns:
this
-
modelPackageVersion
@Stability(Stable) public CfnModelPackageMixinProps.Builder modelPackageVersion(Number modelPackageVersion) Sets the value ofCfnModelPackageMixinProps.getModelPackageVersion()- Parameters:
modelPackageVersion- The version number of a versioned model.- Returns:
this
-
samplePayloadUrl
@Stability(Stable) public CfnModelPackageMixinProps.Builder samplePayloadUrl(String samplePayloadUrl) Sets the value ofCfnModelPackageMixinProps.getSamplePayloadUrl()- Parameters:
samplePayloadUrl- The Amazon Simple Storage Service path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).- Returns:
this
-
securityConfig
@Stability(Stable) public CfnModelPackageMixinProps.Builder securityConfig(IResolvable securityConfig) Sets the value ofCfnModelPackageMixinProps.getSecurityConfig()- Parameters:
securityConfig- An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.- Returns:
this
-
securityConfig
@Stability(Stable) public CfnModelPackageMixinProps.Builder securityConfig(CfnModelPackagePropsMixin.SecurityConfigProperty securityConfig) Sets the value ofCfnModelPackageMixinProps.getSecurityConfig()- Parameters:
securityConfig- An optional AWS Key Management Service key to encrypt, decrypt, and re-encrypt model package information for regulated workloads with highly sensitive data.- Returns:
this
-
skipModelValidation
@Stability(Stable) public CfnModelPackageMixinProps.Builder skipModelValidation(String skipModelValidation) Sets the value ofCfnModelPackageMixinProps.getSkipModelValidation()- Parameters:
skipModelValidation- Indicates if you want to skip model validation.- Returns:
this
-
sourceAlgorithmSpecification
@Stability(Stable) public CfnModelPackageMixinProps.Builder sourceAlgorithmSpecification(IResolvable sourceAlgorithmSpecification) Sets the value ofCfnModelPackageMixinProps.getSourceAlgorithmSpecification()- Parameters:
sourceAlgorithmSpecification- A list of algorithms that were used to create a model package.- Returns:
this
-
sourceAlgorithmSpecification
@Stability(Stable) public CfnModelPackageMixinProps.Builder sourceAlgorithmSpecification(CfnModelPackagePropsMixin.SourceAlgorithmSpecificationProperty sourceAlgorithmSpecification) Sets the value ofCfnModelPackageMixinProps.getSourceAlgorithmSpecification()- Parameters:
sourceAlgorithmSpecification- A list of algorithms that were used to create a model package.- Returns:
this
-
sourceUri
Sets the value ofCfnModelPackageMixinProps.getSourceUri()- Parameters:
sourceUri- The URI of the source for the model package.- Returns:
this
-
tags
Sets the value ofCfnModelPackageMixinProps.getTags()- Parameters:
tags- A list of the tags associated with the model package. For more information, see Tagging AWS resources in the AWS General Reference Guide .- Returns:
this
-
task
Sets the value ofCfnModelPackageMixinProps.getTask()- Parameters:
task- The machine learning task your model package accomplishes. Common machine learning tasks include object detection and image classification.- Returns:
this
-
validationSpecification
@Stability(Stable) public CfnModelPackageMixinProps.Builder validationSpecification(IResolvable validationSpecification) Sets the value ofCfnModelPackageMixinProps.getValidationSpecification()- Parameters:
validationSpecification- Specifies batch transform jobs that SageMaker runs to validate your model package.- Returns:
this
-
validationSpecification
@Stability(Stable) public CfnModelPackageMixinProps.Builder validationSpecification(CfnModelPackagePropsMixin.ValidationSpecificationProperty validationSpecification) Sets the value ofCfnModelPackageMixinProps.getValidationSpecification()- Parameters:
validationSpecification- Specifies batch transform jobs that SageMaker runs to validate your model package.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelPackageMixinProps>- Returns:
- a new instance of
CfnModelPackageMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-