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