Class CfnModelPackageProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelPackageProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelPackageProps>
- Enclosing interface:
CfnModelPackageProps
@Stability(Stable)
public static final class CfnModelPackageProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelPackageProps>
A builder for
CfnModelPackageProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadditionalInferenceSpecifications
(List<? extends Object> additionalInferenceSpecifications) Sets the value ofCfnModelPackageProps.getAdditionalInferenceSpecifications()
additionalInferenceSpecifications
(IResolvable additionalInferenceSpecifications) Sets the value ofCfnModelPackageProps.getAdditionalInferenceSpecifications()
additionalInferenceSpecificationsToAdd
(List<? extends Object> additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageProps.getAdditionalInferenceSpecificationsToAdd()
additionalInferenceSpecificationsToAdd
(IResolvable additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageProps.getAdditionalInferenceSpecificationsToAdd()
approvalDescription
(String approvalDescription) Sets the value ofCfnModelPackageProps.getApprovalDescription()
build()
Builds the configured instance.certifyForMarketplace
(Boolean certifyForMarketplace) Sets the value ofCfnModelPackageProps.getCertifyForMarketplace()
certifyForMarketplace
(IResolvable certifyForMarketplace) Sets the value ofCfnModelPackageProps.getCertifyForMarketplace()
clientToken
(String clientToken) Sets the value ofCfnModelPackageProps.getClientToken()
customerMetadataProperties
(Map<String, String> customerMetadataProperties) Sets the value ofCfnModelPackageProps.getCustomerMetadataProperties()
customerMetadataProperties
(IResolvable customerMetadataProperties) Sets the value ofCfnModelPackageProps.getCustomerMetadataProperties()
Sets the value ofCfnModelPackageProps.getDomain()
driftCheckBaselines
(IResolvable driftCheckBaselines) Sets the value ofCfnModelPackageProps.getDriftCheckBaselines()
driftCheckBaselines
(CfnModelPackage.DriftCheckBaselinesProperty driftCheckBaselines) Sets the value ofCfnModelPackageProps.getDriftCheckBaselines()
inferenceSpecification
(IResolvable inferenceSpecification) Sets the value ofCfnModelPackageProps.getInferenceSpecification()
inferenceSpecification
(CfnModelPackage.InferenceSpecificationProperty inferenceSpecification) Sets the value ofCfnModelPackageProps.getInferenceSpecification()
lastModifiedTime
(String lastModifiedTime) Sets the value ofCfnModelPackageProps.getLastModifiedTime()
metadataProperties
(IResolvable metadataProperties) Sets the value ofCfnModelPackageProps.getMetadataProperties()
metadataProperties
(CfnModelPackage.MetadataPropertiesProperty metadataProperties) Sets the value ofCfnModelPackageProps.getMetadataProperties()
modelApprovalStatus
(String modelApprovalStatus) Sets the value ofCfnModelPackageProps.getModelApprovalStatus()
modelCard
(IResolvable modelCard) Sets the value ofCfnModelPackageProps.getModelCard()
modelCard
(CfnModelPackage.ModelCardProperty modelCard) Sets the value ofCfnModelPackageProps.getModelCard()
modelMetrics
(IResolvable modelMetrics) Sets the value ofCfnModelPackageProps.getModelMetrics()
modelMetrics
(CfnModelPackage.ModelMetricsProperty modelMetrics) Sets the value ofCfnModelPackageProps.getModelMetrics()
modelPackageDescription
(String modelPackageDescription) Sets the value ofCfnModelPackageProps.getModelPackageDescription()
modelPackageGroupName
(String modelPackageGroupName) Sets the value ofCfnModelPackageProps.getModelPackageGroupName()
modelPackageName
(String modelPackageName) Sets the value ofCfnModelPackageProps.getModelPackageName()
modelPackageStatusDetails
(IResolvable modelPackageStatusDetails) Sets the value ofCfnModelPackageProps.getModelPackageStatusDetails()
modelPackageStatusDetails
(CfnModelPackage.ModelPackageStatusDetailsProperty modelPackageStatusDetails) Sets the value ofCfnModelPackageProps.getModelPackageStatusDetails()
modelPackageVersion
(Number modelPackageVersion) Sets the value ofCfnModelPackageProps.getModelPackageVersion()
samplePayloadUrl
(String samplePayloadUrl) Sets the value ofCfnModelPackageProps.getSamplePayloadUrl()
securityConfig
(IResolvable securityConfig) Sets the value ofCfnModelPackageProps.getSecurityConfig()
securityConfig
(CfnModelPackage.SecurityConfigProperty securityConfig) Sets the value ofCfnModelPackageProps.getSecurityConfig()
skipModelValidation
(String skipModelValidation) Sets the value ofCfnModelPackageProps.getSkipModelValidation()
sourceAlgorithmSpecification
(IResolvable sourceAlgorithmSpecification) Sets the value ofCfnModelPackageProps.getSourceAlgorithmSpecification()
sourceAlgorithmSpecification
(CfnModelPackage.SourceAlgorithmSpecificationProperty sourceAlgorithmSpecification) Sets the value ofCfnModelPackageProps.getSourceAlgorithmSpecification()
Sets the value ofCfnModelPackageProps.getSourceUri()
Sets the value ofCfnModelPackageProps.getTags()
Sets the value ofCfnModelPackageProps.getTask()
validationSpecification
(IResolvable validationSpecification) Sets the value ofCfnModelPackageProps.getValidationSpecification()
validationSpecification
(CfnModelPackage.ValidationSpecificationProperty validationSpecification) Sets the value ofCfnModelPackageProps.getValidationSpecification()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalInferenceSpecifications
@Stability(Stable) public CfnModelPackageProps.Builder additionalInferenceSpecifications(IResolvable additionalInferenceSpecifications) Sets the value ofCfnModelPackageProps.getAdditionalInferenceSpecifications()
- Parameters:
additionalInferenceSpecifications
- An array of additional Inference Specification objects.- Returns:
this
-
additionalInferenceSpecifications
@Stability(Stable) public CfnModelPackageProps.Builder additionalInferenceSpecifications(List<? extends Object> additionalInferenceSpecifications) Sets the value ofCfnModelPackageProps.getAdditionalInferenceSpecifications()
- Parameters:
additionalInferenceSpecifications
- An array of additional Inference Specification objects.- Returns:
this
-
additionalInferenceSpecificationsToAdd
@Stability(Stable) public CfnModelPackageProps.Builder additionalInferenceSpecificationsToAdd(IResolvable additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder additionalInferenceSpecificationsToAdd(List<? extends Object> additionalInferenceSpecificationsToAdd) Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder approvalDescription(String approvalDescription) Sets the value ofCfnModelPackageProps.getApprovalDescription()
- Parameters:
approvalDescription
- A description provided when the model approval is set.- Returns:
this
-
certifyForMarketplace
@Stability(Stable) public CfnModelPackageProps.Builder certifyForMarketplace(Boolean certifyForMarketplace) Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder certifyForMarketplace(IResolvable certifyForMarketplace) Sets the value ofCfnModelPackageProps.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 ofCfnModelPackageProps.getClientToken()
- Parameters:
clientToken
- A unique token that guarantees that the call to this API is idempotent.- Returns:
this
-
customerMetadataProperties
@Stability(Stable) public CfnModelPackageProps.Builder customerMetadataProperties(IResolvable customerMetadataProperties) Sets the value ofCfnModelPackageProps.getCustomerMetadataProperties()
- Parameters:
customerMetadataProperties
- The metadata properties for the model package.- Returns:
this
-
customerMetadataProperties
@Stability(Stable) public CfnModelPackageProps.Builder customerMetadataProperties(Map<String, String> customerMetadataProperties) Sets the value ofCfnModelPackageProps.getCustomerMetadataProperties()
- Parameters:
customerMetadataProperties
- The metadata properties for the model package.- Returns:
this
-
domain
Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder driftCheckBaselines(IResolvable driftCheckBaselines) Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder driftCheckBaselines(CfnModelPackage.DriftCheckBaselinesProperty driftCheckBaselines) Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder inferenceSpecification(IResolvable inferenceSpecification) Sets the value ofCfnModelPackageProps.getInferenceSpecification()
- Parameters:
inferenceSpecification
- Defines how to perform inference generation after a training job is run.- Returns:
this
-
inferenceSpecification
@Stability(Stable) public CfnModelPackageProps.Builder inferenceSpecification(CfnModelPackage.InferenceSpecificationProperty inferenceSpecification) Sets the value ofCfnModelPackageProps.getInferenceSpecification()
- Parameters:
inferenceSpecification
- Defines how to perform inference generation after a training job is run.- Returns:
this
-
lastModifiedTime
Sets the value ofCfnModelPackageProps.getLastModifiedTime()
- Parameters:
lastModifiedTime
- The last time the model package was modified.- Returns:
this
-
metadataProperties
@Stability(Stable) public CfnModelPackageProps.Builder metadataProperties(IResolvable metadataProperties) Sets the value ofCfnModelPackageProps.getMetadataProperties()
- Parameters:
metadataProperties
- Metadata properties of the tracking entity, trial, or trial component.- Returns:
this
-
metadataProperties
@Stability(Stable) public CfnModelPackageProps.Builder metadataProperties(CfnModelPackage.MetadataPropertiesProperty metadataProperties) Sets the value ofCfnModelPackageProps.getMetadataProperties()
- Parameters:
metadataProperties
- Metadata properties of the tracking entity, trial, or trial component.- Returns:
this
-
modelApprovalStatus
@Stability(Stable) public CfnModelPackageProps.Builder modelApprovalStatus(String modelApprovalStatus) Sets the value ofCfnModelPackageProps.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 ofCfnModelPackageProps.getModelCard()
- Parameters:
modelCard
- An Amazon SageMaker Model Card.- Returns:
this
-
modelCard
@Stability(Stable) public CfnModelPackageProps.Builder modelCard(CfnModelPackage.ModelCardProperty modelCard) Sets the value ofCfnModelPackageProps.getModelCard()
- Parameters:
modelCard
- An Amazon SageMaker Model Card.- Returns:
this
-
modelMetrics
Sets the value ofCfnModelPackageProps.getModelMetrics()
- Parameters:
modelMetrics
- Metrics for the model.- Returns:
this
-
modelMetrics
@Stability(Stable) public CfnModelPackageProps.Builder modelMetrics(CfnModelPackage.ModelMetricsProperty modelMetrics) Sets the value ofCfnModelPackageProps.getModelMetrics()
- Parameters:
modelMetrics
- Metrics for the model.- Returns:
this
-
modelPackageDescription
@Stability(Stable) public CfnModelPackageProps.Builder modelPackageDescription(String modelPackageDescription) Sets the value ofCfnModelPackageProps.getModelPackageDescription()
- Parameters:
modelPackageDescription
- The description of the model package.- Returns:
this
-
modelPackageGroupName
@Stability(Stable) public CfnModelPackageProps.Builder modelPackageGroupName(String modelPackageGroupName) Sets the value ofCfnModelPackageProps.getModelPackageGroupName()
- Parameters:
modelPackageGroupName
- The model group to which the model belongs.- Returns:
this
-
modelPackageName
Sets the value ofCfnModelPackageProps.getModelPackageName()
- Parameters:
modelPackageName
- The name of the model.- Returns:
this
-
modelPackageStatusDetails
@Stability(Stable) public CfnModelPackageProps.Builder modelPackageStatusDetails(IResolvable modelPackageStatusDetails) Sets the value ofCfnModelPackageProps.getModelPackageStatusDetails()
- Parameters:
modelPackageStatusDetails
- Specifies the validation and image scan statuses of the model package.- Returns:
this
-
modelPackageStatusDetails
@Stability(Stable) public CfnModelPackageProps.Builder modelPackageStatusDetails(CfnModelPackage.ModelPackageStatusDetailsProperty modelPackageStatusDetails) Sets the value ofCfnModelPackageProps.getModelPackageStatusDetails()
- Parameters:
modelPackageStatusDetails
- Specifies the validation and image scan statuses of the model package.- Returns:
this
-
modelPackageVersion
@Stability(Stable) public CfnModelPackageProps.Builder modelPackageVersion(Number modelPackageVersion) Sets the value ofCfnModelPackageProps.getModelPackageVersion()
- Parameters:
modelPackageVersion
- The version number of a versioned model.- Returns:
this
-
samplePayloadUrl
Sets the value ofCfnModelPackageProps.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
Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder securityConfig(CfnModelPackage.SecurityConfigProperty securityConfig) Sets the value ofCfnModelPackageProps.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 CfnModelPackageProps.Builder skipModelValidation(String skipModelValidation) Sets the value ofCfnModelPackageProps.getSkipModelValidation()
- Parameters:
skipModelValidation
- Indicates if you want to skip model validation.- Returns:
this
-
sourceAlgorithmSpecification
@Stability(Stable) public CfnModelPackageProps.Builder sourceAlgorithmSpecification(IResolvable sourceAlgorithmSpecification) Sets the value ofCfnModelPackageProps.getSourceAlgorithmSpecification()
- Parameters:
sourceAlgorithmSpecification
- A list of algorithms that were used to create a model package.- Returns:
this
-
sourceAlgorithmSpecification
@Stability(Stable) public CfnModelPackageProps.Builder sourceAlgorithmSpecification(CfnModelPackage.SourceAlgorithmSpecificationProperty sourceAlgorithmSpecification) Sets the value ofCfnModelPackageProps.getSourceAlgorithmSpecification()
- Parameters:
sourceAlgorithmSpecification
- A list of algorithms that were used to create a model package.- Returns:
this
-
sourceUri
Sets the value ofCfnModelPackageProps.getSourceUri()
- Parameters:
sourceUri
- The URI of the source for the model package.- Returns:
this
-
tags
Sets the value ofCfnModelPackageProps.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 ofCfnModelPackageProps.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 CfnModelPackageProps.Builder validationSpecification(IResolvable validationSpecification) Sets the value ofCfnModelPackageProps.getValidationSpecification()
- Parameters:
validationSpecification
- Specifies batch transform jobs that SageMaker runs to validate your model package.- Returns:
this
-
validationSpecification
@Stability(Stable) public CfnModelPackageProps.Builder validationSpecification(CfnModelPackage.ValidationSpecificationProperty validationSpecification) Sets the value ofCfnModelPackageProps.getValidationSpecification()
- Parameters:
validationSpecification
- Specifies batch transform jobs that SageMaker runs to validate your model package.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelPackageProps>
- Returns:
- a new instance of
CfnModelPackageProps
- Throws:
NullPointerException
- if any required attribute was not provided
-