Interface UpdateGuardrailRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,BedrockRequest.Builder
,Buildable
,CopyableBuilder<UpdateGuardrailRequest.Builder,
,UpdateGuardrailRequest> SdkBuilder<UpdateGuardrailRequest.Builder,
,UpdateGuardrailRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateGuardrailRequest
-
Method Summary
Modifier and TypeMethodDescriptionblockedInputMessaging
(String blockedInputMessaging) The message to return when the guardrail blocks a prompt.blockedOutputsMessaging
(String blockedOutputsMessaging) The message to return when the guardrail blocks a model response.default UpdateGuardrailRequest.Builder
contentPolicyConfig
(Consumer<GuardrailContentPolicyConfig.Builder> contentPolicyConfig) The content policy to configure for the guardrail.contentPolicyConfig
(GuardrailContentPolicyConfig contentPolicyConfig) The content policy to configure for the guardrail.default UpdateGuardrailRequest.Builder
contextualGroundingPolicyConfig
(Consumer<GuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig) The contextual grounding policy configuration used to update a guardrail.contextualGroundingPolicyConfig
(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig) The contextual grounding policy configuration used to update a guardrail.description
(String description) A description of the guardrail.guardrailIdentifier
(String guardrailIdentifier) The unique identifier of the guardrail.The ARN of the KMS key with which to encrypt the guardrail.A name for the guardrail.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateGuardrailRequest.Builder
sensitiveInformationPolicyConfig
(Consumer<GuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.sensitiveInformationPolicyConfig
(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.default UpdateGuardrailRequest.Builder
topicPolicyConfig
(Consumer<GuardrailTopicPolicyConfig.Builder> topicPolicyConfig) The topic policy to configure for the guardrail.topicPolicyConfig
(GuardrailTopicPolicyConfig topicPolicyConfig) The topic policy to configure for the guardrail.default UpdateGuardrailRequest.Builder
wordPolicyConfig
(Consumer<GuardrailWordPolicyConfig.Builder> wordPolicyConfig) The word policy to configure for the guardrail.wordPolicyConfig
(GuardrailWordPolicyConfig wordPolicyConfig) The word policy to configure for the guardrail.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.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 unique identifier of the guardrail. This can be an ID or the ARN.
- Parameters:
guardrailIdentifier
- The unique identifier of the guardrail. This can be an ID or the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name for the guardrail.
- Parameters:
name
- A name for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the guardrail.
- Parameters:
description
- A description of the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicyConfig
The topic policy to configure for the guardrail.
- Parameters:
topicPolicyConfig
- The topic policy to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicyConfig
default UpdateGuardrailRequest.Builder topicPolicyConfig(Consumer<GuardrailTopicPolicyConfig.Builder> topicPolicyConfig) The topic policy to configure for the guardrail.
This is a convenience method that creates an instance of theGuardrailTopicPolicyConfig.Builder
avoiding the need to create one manually viaGuardrailTopicPolicyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totopicPolicyConfig(GuardrailTopicPolicyConfig)
.- Parameters:
topicPolicyConfig
- a consumer that will call methods onGuardrailTopicPolicyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentPolicyConfig
UpdateGuardrailRequest.Builder contentPolicyConfig(GuardrailContentPolicyConfig contentPolicyConfig) The content policy to configure for the guardrail.
- Parameters:
contentPolicyConfig
- The content policy to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicyConfig
default UpdateGuardrailRequest.Builder contentPolicyConfig(Consumer<GuardrailContentPolicyConfig.Builder> contentPolicyConfig) The content policy to configure for the guardrail.
This is a convenience method that creates an instance of theGuardrailContentPolicyConfig.Builder
avoiding the need to create one manually viaGuardrailContentPolicyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentPolicyConfig(GuardrailContentPolicyConfig)
.- Parameters:
contentPolicyConfig
- a consumer that will call methods onGuardrailContentPolicyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
wordPolicyConfig
The word policy to configure for the guardrail.
- Parameters:
wordPolicyConfig
- The word policy to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordPolicyConfig
default UpdateGuardrailRequest.Builder wordPolicyConfig(Consumer<GuardrailWordPolicyConfig.Builder> wordPolicyConfig) The word policy to configure for the guardrail.
This is a convenience method that creates an instance of theGuardrailWordPolicyConfig.Builder
avoiding the need to create one manually viaGuardrailWordPolicyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towordPolicyConfig(GuardrailWordPolicyConfig)
.- Parameters:
wordPolicyConfig
- a consumer that will call methods onGuardrailWordPolicyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sensitiveInformationPolicyConfig
UpdateGuardrailRequest.Builder sensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.
- Parameters:
sensitiveInformationPolicyConfig
- The sensitive information policy to configure for the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformationPolicyConfig
default UpdateGuardrailRequest.Builder sensitiveInformationPolicyConfig(Consumer<GuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig) The sensitive information policy to configure for the guardrail.
This is a convenience method that creates an instance of theGuardrailSensitiveInformationPolicyConfig.Builder
avoiding the need to create one manually viaGuardrailSensitiveInformationPolicyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig)
.- Parameters:
sensitiveInformationPolicyConfig
- a consumer that will call methods onGuardrailSensitiveInformationPolicyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contextualGroundingPolicyConfig
UpdateGuardrailRequest.Builder contextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig) The contextual grounding policy configuration used to update a guardrail.
- Parameters:
contextualGroundingPolicyConfig
- The contextual grounding policy configuration used to update a guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextualGroundingPolicyConfig
default UpdateGuardrailRequest.Builder contextualGroundingPolicyConfig(Consumer<GuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig) The contextual grounding policy configuration used to update a guardrail.
This is a convenience method that creates an instance of theGuardrailContextualGroundingPolicyConfig.Builder
avoiding the need to create one manually viaGuardrailContextualGroundingPolicyConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig)
.- Parameters:
contextualGroundingPolicyConfig
- a consumer that will call methods onGuardrailContextualGroundingPolicyConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blockedInputMessaging
The message to return when the guardrail blocks a prompt.
- Parameters:
blockedInputMessaging
- The message to return when the guardrail blocks a prompt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockedOutputsMessaging
The message to return when the guardrail blocks a model response.
- Parameters:
blockedOutputsMessaging
- The message to return when the guardrail blocks a model response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The ARN of the KMS key with which to encrypt the guardrail.
- Parameters:
kmsKeyId
- The ARN of the KMS key with which to encrypt the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateGuardrailRequest.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
UpdateGuardrailRequest.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.
-