Class CfnAlgorithm.HyperParameterSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnAlgorithm.HyperParameterSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlgorithm.HyperParameterSpecificationProperty>
- Enclosing interface:
CfnAlgorithm.HyperParameterSpecificationProperty
@Stability(Stable)
public static final class CfnAlgorithm.HyperParameterSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlgorithm.HyperParameterSpecificationProperty>
A builder for
CfnAlgorithm.HyperParameterSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultValue(String defaultValue) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getDefaultValue()description(String description) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getDescription()isRequired(Boolean isRequired) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsRequired()isRequired(IResolvable isRequired) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsRequired()Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsTunable()isTunable(IResolvable isTunable) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsTunable()Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getName()range(IResolvable range) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getRange()Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getRange()Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder name(String name) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getName()- Parameters:
name- the value to be set. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder type(String type) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getType()- Parameters:
type- the value to be set. This parameter is required.- Returns:
this
-
defaultValue
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder defaultValue(String defaultValue) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getDefaultValue()- Parameters:
defaultValue- the value to be set.- Returns:
this
-
description
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder description(String description) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getDescription()- Parameters:
description- the value to be set.- Returns:
this
-
isRequired
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder isRequired(Boolean isRequired) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsRequired()- Parameters:
isRequired- the value to be set.- Returns:
this
-
isRequired
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder isRequired(IResolvable isRequired) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsRequired()- Parameters:
isRequired- the value to be set.- Returns:
this
-
isTunable
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder isTunable(Boolean isTunable) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsTunable()- Parameters:
isTunable- the value to be set.- Returns:
this
-
isTunable
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder isTunable(IResolvable isTunable) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getIsTunable()- Parameters:
isTunable- the value to be set.- Returns:
this
-
range
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder range(IResolvable range) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getRange()- Parameters:
range- the value to be set.- Returns:
this
-
range
@Stability(Stable) public CfnAlgorithm.HyperParameterSpecificationProperty.Builder range(CfnAlgorithm.ParameterRangeProperty range) Sets the value ofCfnAlgorithm.HyperParameterSpecificationProperty.getRange()- Parameters:
range- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlgorithm.HyperParameterSpecificationProperty>- Returns:
- a new instance of
CfnAlgorithm.HyperParameterSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-