Class CfnModelCard.ObjectiveFunctionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnModelCard.ObjectiveFunctionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModelCard.ObjectiveFunctionProperty>
- Enclosing interface:
CfnModelCard.ObjectiveFunctionProperty
@Stability(Stable)
public static final class CfnModelCard.ObjectiveFunctionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModelCard.ObjectiveFunctionProperty>
A builder for
CfnModelCard.ObjectiveFunctionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.function
(IResolvable function) Sets the value ofCfnModelCard.ObjectiveFunctionProperty.getFunction()
function
(CfnModelCard.FunctionProperty function) Sets the value ofCfnModelCard.ObjectiveFunctionProperty.getFunction()
Sets the value ofCfnModelCard.ObjectiveFunctionProperty.getNotes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
function
@Stability(Stable) public CfnModelCard.ObjectiveFunctionProperty.Builder function(IResolvable function) Sets the value ofCfnModelCard.ObjectiveFunctionProperty.getFunction()
- Parameters:
function
- A function object that details optimization direction, metric, and additional descriptions.- Returns:
this
-
function
@Stability(Stable) public CfnModelCard.ObjectiveFunctionProperty.Builder function(CfnModelCard.FunctionProperty function) Sets the value ofCfnModelCard.ObjectiveFunctionProperty.getFunction()
- Parameters:
function
- A function object that details optimization direction, metric, and additional descriptions.- Returns:
this
-
notes
Sets the value ofCfnModelCard.ObjectiveFunctionProperty.getNotes()
- Parameters:
notes
- Notes about the object function, including other considerations for possible objective functions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModelCard.ObjectiveFunctionProperty>
- Returns:
- a new instance of
CfnModelCard.ObjectiveFunctionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-