Interface BedrockModelSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BedrockModelSpecification.Builder,
,BedrockModelSpecification> SdkBuilder<BedrockModelSpecification.Builder,
,BedrockModelSpecification> SdkPojo
- Enclosing class:
BedrockModelSpecification
public static interface BedrockModelSpecification.Builder
extends SdkPojo, CopyableBuilder<BedrockModelSpecification.Builder,BedrockModelSpecification>
-
Method Summary
Modifier and TypeMethodDescriptioncustomPrompt
(String customPrompt) The custom prompt used in the Bedrock model specification details.guardrail
(Consumer<BedrockGuardrailConfiguration.Builder> guardrail) The guardrail configuration in the Bedrock model specification details.guardrail
(BedrockGuardrailConfiguration guardrail) The guardrail configuration in the Bedrock model specification details.The ARN of the foundation model used in descriptive bot building.traceStatus
(String traceStatus) The Bedrock trace status in the Bedrock model specification details.traceStatus
(BedrockTraceStatus traceStatus) The Bedrock trace status in the Bedrock model specification details.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
modelArn
The ARN of the foundation model used in descriptive bot building.
- Parameters:
modelArn
- The ARN of the foundation model used in descriptive bot building.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrail
The guardrail configuration in the Bedrock model specification details.
- Parameters:
guardrail
- The guardrail configuration in the Bedrock model specification details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrail
default BedrockModelSpecification.Builder guardrail(Consumer<BedrockGuardrailConfiguration.Builder> guardrail) The guardrail configuration in the Bedrock model specification details.
This is a convenience method that creates an instance of theBedrockGuardrailConfiguration.Builder
avoiding the need to create one manually viaBedrockGuardrailConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toguardrail(BedrockGuardrailConfiguration)
.- Parameters:
guardrail
- a consumer that will call methods onBedrockGuardrailConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traceStatus
The Bedrock trace status in the Bedrock model specification details.
- Parameters:
traceStatus
- The Bedrock trace status in the Bedrock model specification details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traceStatus
The Bedrock trace status in the Bedrock model specification details.
- Parameters:
traceStatus
- The Bedrock trace status in the Bedrock model specification details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customPrompt
The custom prompt used in the Bedrock model specification details.
- Parameters:
customPrompt
- The custom prompt used in the Bedrock model specification details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-