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