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 TypeMethodDescriptiondefault UpdateGuardrailRequest.BuilderautomatedReasoningPolicyConfig(Consumer<GuardrailAutomatedReasoningPolicyConfig.Builder> automatedReasoningPolicyConfig) Updated configuration for Automated Reasoning policies associated with the guardrail.automatedReasoningPolicyConfig(GuardrailAutomatedReasoningPolicyConfig automatedReasoningPolicyConfig) Updated configuration for Automated Reasoning policies associated with the guardrail.blockedInputMessaging(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.BuildercontentPolicyConfig(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.BuildercontextualGroundingPolicyConfig(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.default UpdateGuardrailRequest.BuildercrossRegionConfig(Consumer<GuardrailCrossRegionConfig.Builder> crossRegionConfig) The system-defined guardrail profile that you're using with your guardrail.crossRegionConfig(GuardrailCrossRegionConfig crossRegionConfig) The system-defined guardrail profile that you're using with your 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.BuildersensitiveInformationPolicyConfig(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.BuildertopicPolicyConfig(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.BuilderwordPolicyConfig(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockRequest.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, sdkFieldNameToField, 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.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:
-
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:
-
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:
-
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:
-
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:
-
automatedReasoningPolicyConfig
UpdateGuardrailRequest.Builder automatedReasoningPolicyConfig(GuardrailAutomatedReasoningPolicyConfig automatedReasoningPolicyConfig) Updated configuration for Automated Reasoning policies associated with the guardrail.
- Parameters:
automatedReasoningPolicyConfig- Updated configuration for Automated Reasoning policies associated with the guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
automatedReasoningPolicyConfig
default UpdateGuardrailRequest.Builder automatedReasoningPolicyConfig(Consumer<GuardrailAutomatedReasoningPolicyConfig.Builder> automatedReasoningPolicyConfig) Updated configuration for Automated Reasoning policies associated with the guardrail.
This is a convenience method that creates an instance of theGuardrailAutomatedReasoningPolicyConfig.Builderavoiding the need to create one manually viaGuardrailAutomatedReasoningPolicyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toautomatedReasoningPolicyConfig(GuardrailAutomatedReasoningPolicyConfig).- Parameters:
automatedReasoningPolicyConfig- a consumer that will call methods onGuardrailAutomatedReasoningPolicyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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:
-
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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-