Class CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty>
- Enclosing interface:
CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty
@Stability(Stable)
public static final class CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty>
A builder for
CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getMaxTokens()Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getModelId()temperature(Number temperature) Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getTemperature()Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getTopP()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxTokens
@Stability(Stable) public CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder maxTokens(Number maxTokens) Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getMaxTokens()- Parameters:
maxTokens- the value to be set.- Returns:
this
-
modelId
@Stability(Stable) public CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder modelId(String modelId) Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getModelId()- Parameters:
modelId- the value to be set.- Returns:
this
-
temperature
@Stability(Stable) public CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder temperature(Number temperature) Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getTemperature()- Parameters:
temperature- the value to be set.- Returns:
this
-
topP
@Stability(Stable) public CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.Builder topP(Number topP) Sets the value ofCfnHarnessPropsMixin.HarnessBedrockModelConfigProperty.getTopP()- Parameters:
topP- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty>- Returns:
- a new instance of
CfnHarnessPropsMixin.HarnessBedrockModelConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-