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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplyGuardrailRequest.Builder
content(Collection<GuardrailContentBlock> content)
The content details used in the request to apply the guardrail.ApplyGuardrailRequest.Builder
content(Consumer<GuardrailContentBlock.Builder>... content)
The content details used in the request to apply the guardrail.ApplyGuardrailRequest.Builder
content(GuardrailContentBlock... content)
The content details used in the request to apply the guardrail.ApplyGuardrailRequest.Builder
guardrailIdentifier(String guardrailIdentifier)
The guardrail identifier used in the request to apply the guardrail.ApplyGuardrailRequest.Builder
guardrailVersion(String guardrailVersion)
The guardrail version used in the request to apply the guardrail.ApplyGuardrailRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
ApplyGuardrailRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
ApplyGuardrailRequest.Builder
source(String source)
The source of data used in the request to apply the guardrail.ApplyGuardrailRequest.Builder
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 Detail
-
guardrailIdentifier
ApplyGuardrailRequest.Builder guardrailIdentifier(String 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
ApplyGuardrailRequest.Builder guardrailVersion(String 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
ApplyGuardrailRequest.Builder source(String 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:
GuardrailContentSource
,GuardrailContentSource
-
source
ApplyGuardrailRequest.Builder source(GuardrailContentSource 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:
GuardrailContentSource
,GuardrailContentSource
-
content
ApplyGuardrailRequest.Builder content(Collection<GuardrailContentBlock> 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
ApplyGuardrailRequest.Builder content(GuardrailContentBlock... 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
ApplyGuardrailRequest.Builder content(Consumer<GuardrailContentBlock.Builder>... 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 to#content(List
.) - 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:
#content(java.util.Collection
)
-
overrideConfiguration
ApplyGuardrailRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
ApplyGuardrailRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-