Class CfnAlgorithmProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnAlgorithmProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlgorithmProps>
- Enclosing interface:
CfnAlgorithmProps
@Stability(Stable)
public static final class CfnAlgorithmProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlgorithmProps>
A builder for
CfnAlgorithmProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalgorithmDescription(String algorithmDescription) Sets the value ofCfnAlgorithmProps.getAlgorithmDescription()algorithmName(String algorithmName) Sets the value ofCfnAlgorithmProps.getAlgorithmName()build()Builds the configured instance.certifyForMarketplace(Boolean certifyForMarketplace) Sets the value ofCfnAlgorithmProps.getCertifyForMarketplace()certifyForMarketplace(IResolvable certifyForMarketplace) Sets the value ofCfnAlgorithmProps.getCertifyForMarketplace()inferenceSpecification(IResolvable inferenceSpecification) Sets the value ofCfnAlgorithmProps.getInferenceSpecification()inferenceSpecification(CfnAlgorithm.InferenceSpecificationProperty inferenceSpecification) Sets the value ofCfnAlgorithmProps.getInferenceSpecification()Sets the value ofCfnAlgorithmProps.getTags()trainingSpecification(IResolvable trainingSpecification) Sets the value ofCfnAlgorithmProps.getTrainingSpecification()trainingSpecification(CfnAlgorithm.TrainingSpecificationProperty trainingSpecification) Sets the value ofCfnAlgorithmProps.getTrainingSpecification()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
algorithmName
Sets the value ofCfnAlgorithmProps.getAlgorithmName()- Parameters:
algorithmName- The name of the algorithm. This parameter is required.- Returns:
this
-
trainingSpecification
@Stability(Stable) public CfnAlgorithmProps.Builder trainingSpecification(IResolvable trainingSpecification) Sets the value ofCfnAlgorithmProps.getTrainingSpecification()- Parameters:
trainingSpecification- the value to be set. This parameter is required.- Returns:
this
-
trainingSpecification
@Stability(Stable) public CfnAlgorithmProps.Builder trainingSpecification(CfnAlgorithm.TrainingSpecificationProperty trainingSpecification) Sets the value ofCfnAlgorithmProps.getTrainingSpecification()- Parameters:
trainingSpecification- the value to be set. This parameter is required.- Returns:
this
-
algorithmDescription
@Stability(Stable) public CfnAlgorithmProps.Builder algorithmDescription(String algorithmDescription) Sets the value ofCfnAlgorithmProps.getAlgorithmDescription()- Parameters:
algorithmDescription- A description of the algorithm.- Returns:
this
-
certifyForMarketplace
@Stability(Stable) public CfnAlgorithmProps.Builder certifyForMarketplace(Boolean certifyForMarketplace) Sets the value ofCfnAlgorithmProps.getCertifyForMarketplace()- Parameters:
certifyForMarketplace- Whether to certify the algorithm so that it can be listed in AWS Marketplace.- Returns:
this
-
certifyForMarketplace
@Stability(Stable) public CfnAlgorithmProps.Builder certifyForMarketplace(IResolvable certifyForMarketplace) Sets the value ofCfnAlgorithmProps.getCertifyForMarketplace()- Parameters:
certifyForMarketplace- Whether to certify the algorithm so that it can be listed in AWS Marketplace.- Returns:
this
-
inferenceSpecification
@Stability(Stable) public CfnAlgorithmProps.Builder inferenceSpecification(IResolvable inferenceSpecification) Sets the value ofCfnAlgorithmProps.getInferenceSpecification()- Parameters:
inferenceSpecification- the value to be set.- Returns:
this
-
inferenceSpecification
@Stability(Stable) public CfnAlgorithmProps.Builder inferenceSpecification(CfnAlgorithm.InferenceSpecificationProperty inferenceSpecification) Sets the value ofCfnAlgorithmProps.getInferenceSpecification()- Parameters:
inferenceSpecification- the value to be set.- Returns:
this
-
tags
Sets the value ofCfnAlgorithmProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlgorithmProps>- Returns:
- a new instance of
CfnAlgorithmProps - Throws:
NullPointerException- if any required attribute was not provided
-