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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BedrockModelSpecification.BuildercustomPrompt(String customPrompt)The custom prompt used in the Bedrock model specification details.default BedrockModelSpecification.Builderguardrail(Consumer<BedrockGuardrailConfiguration.Builder> guardrail)The guardrail configuration in the Bedrock model specification details.BedrockModelSpecification.Builderguardrail(BedrockGuardrailConfiguration guardrail)The guardrail configuration in the Bedrock model specification details.BedrockModelSpecification.BuildermodelArn(String modelArn)The ARN of the foundation model used in descriptive bot building.BedrockModelSpecification.BuildertraceStatus(String traceStatus)The Bedrock trace status in the Bedrock model specification details.BedrockModelSpecification.BuildertraceStatus(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 Detail
-
modelArn
BedrockModelSpecification.Builder modelArn(String 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
BedrockModelSpecification.Builder guardrail(BedrockGuardrailConfiguration 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.Builderavoiding the need to create one manually viaBedrockGuardrailConfiguration.builder().When the
Consumercompletes,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:
guardrail(BedrockGuardrailConfiguration)
-
traceStatus
BedrockModelSpecification.Builder traceStatus(String 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:
BedrockTraceStatus,BedrockTraceStatus
-
traceStatus
BedrockModelSpecification.Builder traceStatus(BedrockTraceStatus 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:
BedrockTraceStatus,BedrockTraceStatus
-
customPrompt
BedrockModelSpecification.Builder customPrompt(String 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.
-
-