Interface ApplyGuardrailRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRuntimeRequest.Builder
,Buildable
,CopyableBuilder<ApplyGuardrailRequest.Builder,
,ApplyGuardrailRequest> SdkBuilder<ApplyGuardrailRequest.Builder,
,ApplyGuardrailRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ApplyGuardrailRequest
public static interface ApplyGuardrailRequest.Builder
extends BedrockRuntimeRequest.Builder, SdkPojo, CopyableBuilder<ApplyGuardrailRequest.Builder,ApplyGuardrailRequest>
-
Method Summary
Modifier and TypeMethodDescriptioncontent
(Collection<GuardrailContentBlock> content) The content details used in the request to apply the guardrail.content
(Consumer<GuardrailContentBlock.Builder>... content) The content details used in the request to apply the guardrail.content
(GuardrailContentBlock... content) The content details used in the request to apply the guardrail.guardrailIdentifier
(String guardrailIdentifier) The guardrail identifier used in the request to apply the guardrail.guardrailVersion
(String guardrailVersion) The guardrail version used in the request to apply the guardrail.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The source of data used in the request to apply the guardrail.source
(GuardrailContentSource source) The source of data used in the request to apply the guardrail.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest.Builder
build
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
-
guardrailIdentifier
The guardrail identifier used in the request to apply the guardrail.
- Parameters:
guardrailIdentifier
- The guardrail identifier used in the request to apply the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailVersion
The guardrail version used in the request to apply the guardrail.
- Parameters:
guardrailVersion
- The guardrail version used in the request to apply the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source of data used in the request to apply the guardrail.
- Parameters:
source
- The source of data used in the request to apply the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source of data used in the request to apply the guardrail.
- Parameters:
source
- The source of data used in the request to apply the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
content
The content details used in the request to apply the guardrail.
- Parameters:
content
- The content details used in the request to apply the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content details used in the request to apply the guardrail.
- Parameters:
content
- The content details used in the request to apply the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content details used in the request to apply the guardrail.
This is a convenience method that creates an instance of theGuardrailContentBlock.Builder
avoiding the need to create one manually viaGuardrailContentBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(List<GuardrailContentBlock>)
.- Parameters:
content
- a consumer that will call methods onGuardrailContentBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ApplyGuardrailRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ApplyGuardrailRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-