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