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