Class CfnModelCardPropsMixin.SourceAlgorithmProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnModelCardPropsMixin.SourceAlgorithmProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCardPropsMixin.SourceAlgorithmProperty>
- Enclosing interface:
CfnModelCardPropsMixin.SourceAlgorithmProperty
@Stability(Stable)
public static final class CfnModelCardPropsMixin.SourceAlgorithmProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCardPropsMixin.SourceAlgorithmProperty>
A builder for
CfnModelCardPropsMixin.SourceAlgorithmProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalgorithmName(String algorithmName) Sets the value ofCfnModelCardPropsMixin.SourceAlgorithmProperty.getAlgorithmName()build()Builds the configured instance.modelDataUrl(String modelDataUrl) Sets the value ofCfnModelCardPropsMixin.SourceAlgorithmProperty.getModelDataUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithmName
@Stability(Stable) public CfnModelCardPropsMixin.SourceAlgorithmProperty.Builder algorithmName(String algorithmName) Sets the value ofCfnModelCardPropsMixin.SourceAlgorithmProperty.getAlgorithmName()- Parameters:
algorithmName- The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.- Returns:
this
-
modelDataUrl
@Stability(Stable) public CfnModelCardPropsMixin.SourceAlgorithmProperty.Builder modelDataUrl(String modelDataUrl) Sets the value ofCfnModelCardPropsMixin.SourceAlgorithmProperty.getModelDataUrl()- Parameters:
modelDataUrl- The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a singlegzipcompressed tar archive (.tar.gzsuffix).The model artifacts must be in an S3 bucket that is in the same AWS region as the algorithm.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnModelCardPropsMixin.SourceAlgorithmProperty>- Returns:
- a new instance of
CfnModelCardPropsMixin.SourceAlgorithmProperty - Throws:
NullPointerException- if any required attribute was not provided
-