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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaGuardrailContentBlock.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-