Interface UpdateGuardrailRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BedrockRequest.Builder,Buildable,CopyableBuilder<UpdateGuardrailRequest.Builder,UpdateGuardrailRequest>,SdkBuilder<UpdateGuardrailRequest.Builder,UpdateGuardrailRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateGuardrailRequest
@Mutable @NotThreadSafe public static interface UpdateGuardrailRequest.Builder extends BedrockRequest.Builder, SdkPojo, CopyableBuilder<UpdateGuardrailRequest.Builder,UpdateGuardrailRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateGuardrailRequest.BuilderblockedInputMessaging(String blockedInputMessaging)The message to return when the guardrail blocks a prompt.UpdateGuardrailRequest.BuilderblockedOutputsMessaging(String blockedOutputsMessaging)The message to return when the guardrail blocks a model response.default UpdateGuardrailRequest.BuildercontentPolicyConfig(Consumer<GuardrailContentPolicyConfig.Builder> contentPolicyConfig)The content policy to configure for the guardrail.UpdateGuardrailRequest.BuildercontentPolicyConfig(GuardrailContentPolicyConfig contentPolicyConfig)The content policy to configure for the guardrail.default UpdateGuardrailRequest.BuildercontextualGroundingPolicyConfig(Consumer<GuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig)The contextual grounding policy configuration used to update a guardrail.UpdateGuardrailRequest.BuildercontextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig)The contextual grounding policy configuration used to update a guardrail.default UpdateGuardrailRequest.BuildercrossRegionConfig(Consumer<GuardrailCrossRegionConfig.Builder> crossRegionConfig)The system-defined guardrail profile that you're using with your guardrail.UpdateGuardrailRequest.BuildercrossRegionConfig(GuardrailCrossRegionConfig crossRegionConfig)The system-defined guardrail profile that you're using with your guardrail.UpdateGuardrailRequest.Builderdescription(String description)A description of the guardrail.UpdateGuardrailRequest.BuilderguardrailIdentifier(String guardrailIdentifier)The unique identifier of the guardrail.UpdateGuardrailRequest.BuilderkmsKeyId(String kmsKeyId)The ARN of the KMS key with which to encrypt the guardrail.UpdateGuardrailRequest.Buildername(String name)A name for the guardrail.UpdateGuardrailRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateGuardrailRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default UpdateGuardrailRequest.BuildersensitiveInformationPolicyConfig(Consumer<GuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig)The sensitive information policy to configure for the guardrail.UpdateGuardrailRequest.BuildersensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig)The sensitive information policy to configure for the guardrail.default UpdateGuardrailRequest.BuildertopicPolicyConfig(Consumer<GuardrailTopicPolicyConfig.Builder> topicPolicyConfig)The topic policy to configure for the guardrail.UpdateGuardrailRequest.BuildertopicPolicyConfig(GuardrailTopicPolicyConfig topicPolicyConfig)The topic policy to configure for the guardrail.default UpdateGuardrailRequest.BuilderwordPolicyConfig(Consumer<GuardrailWordPolicyConfig.Builder> wordPolicyConfig)The word policy to configure for the guardrail.UpdateGuardrailRequest.BuilderwordPolicyConfig(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
guardrailIdentifier
UpdateGuardrailRequest.Builder guardrailIdentifier(String 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
UpdateGuardrailRequest.Builder name(String 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
UpdateGuardrailRequest.Builder description(String 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
UpdateGuardrailRequest.Builder topicPolicyConfig(GuardrailTopicPolicyConfig 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.Builderavoiding the need to create one manually viaGuardrailTopicPolicyConfig.builder().When the
Consumercompletes,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:
topicPolicyConfig(GuardrailTopicPolicyConfig)
-
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.Builderavoiding the need to create one manually viaGuardrailContentPolicyConfig.builder().When the
Consumercompletes,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:
contentPolicyConfig(GuardrailContentPolicyConfig)
-
wordPolicyConfig
UpdateGuardrailRequest.Builder wordPolicyConfig(GuardrailWordPolicyConfig 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.Builderavoiding the need to create one manually viaGuardrailWordPolicyConfig.builder().When the
Consumercompletes,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:
wordPolicyConfig(GuardrailWordPolicyConfig)
-
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.Builderavoiding the need to create one manually viaGuardrailSensitiveInformationPolicyConfig.builder().When the
Consumercompletes,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:
sensitiveInformationPolicyConfig(GuardrailSensitiveInformationPolicyConfig)
-
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.Builderavoiding the need to create one manually viaGuardrailContextualGroundingPolicyConfig.builder().When the
Consumercompletes,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:
contextualGroundingPolicyConfig(GuardrailContextualGroundingPolicyConfig)
-
crossRegionConfig
UpdateGuardrailRequest.Builder crossRegionConfig(GuardrailCrossRegionConfig crossRegionConfig)
The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
- Parameters:
crossRegionConfig- The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.For more information, see the Amazon Bedrock User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
crossRegionConfig
default UpdateGuardrailRequest.Builder crossRegionConfig(Consumer<GuardrailCrossRegionConfig.Builder> crossRegionConfig)
The system-defined guardrail profile that you're using with your guardrail. Guardrail profiles define the destination Amazon Web Services Regions where guardrail inference requests can be automatically routed.
For more information, see the Amazon Bedrock User Guide.
This is a convenience method that creates an instance of theGuardrailCrossRegionConfig.Builderavoiding the need to create one manually viaGuardrailCrossRegionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocrossRegionConfig(GuardrailCrossRegionConfig).- Parameters:
crossRegionConfig- a consumer that will call methods onGuardrailCrossRegionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
crossRegionConfig(GuardrailCrossRegionConfig)
-
blockedInputMessaging
UpdateGuardrailRequest.Builder blockedInputMessaging(String 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
UpdateGuardrailRequest.Builder blockedOutputsMessaging(String 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
UpdateGuardrailRequest.Builder kmsKeyId(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateGuardrailRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-