Interface UpdateAiGuardrailRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateAiGuardrailRequest.Builder,,UpdateAiGuardrailRequest> QConnectRequest.Builder,SdkBuilder<UpdateAiGuardrailRequest.Builder,,UpdateAiGuardrailRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateAiGuardrailRequest
-
Method Summary
Modifier and TypeMethodDescriptionaiGuardrailId(String aiGuardrailId) The identifier of the Amazon Q in Connect AI Guardrail.assistantId(String assistantId) The identifier of the Amazon Q in Connect assistant.blockedInputMessaging(String blockedInputMessaging) The message to return when the AI Guardrail blocks a prompt.blockedOutputsMessaging(String blockedOutputsMessaging) The message to return when the AI Guardrail blocks a model response.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.default UpdateAiGuardrailRequest.BuildercontentPolicyConfig(Consumer<AIGuardrailContentPolicyConfig.Builder> contentPolicyConfig) The content filter policies to configure for the AI Guardrail.contentPolicyConfig(AIGuardrailContentPolicyConfig contentPolicyConfig) The content filter policies to configure for the AI Guardrail.default UpdateAiGuardrailRequest.BuildercontextualGroundingPolicyConfig(Consumer<AIGuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig) The contextual grounding policy configuration used to create an AI Guardrail.contextualGroundingPolicyConfig(AIGuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig) The contextual grounding policy configuration used to create an AI Guardrail.description(String description) A description of the AI Guardrail.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateAiGuardrailRequest.BuildersensitiveInformationPolicyConfig(Consumer<AIGuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig) The sensitive information policy to configure for the AI Guardrail.sensitiveInformationPolicyConfig(AIGuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig) The sensitive information policy to configure for the AI Guardrail.default UpdateAiGuardrailRequest.BuildertopicPolicyConfig(Consumer<AIGuardrailTopicPolicyConfig.Builder> topicPolicyConfig) The topic policies to configure for the AI Guardrail.topicPolicyConfig(AIGuardrailTopicPolicyConfig topicPolicyConfig) The topic policies to configure for the AI Guardrail.visibilityStatus(String visibilityStatus) The visibility status of the Amazon Q in Connect AI Guardrail.visibilityStatus(VisibilityStatus visibilityStatus) The visibility status of the Amazon Q in Connect AI Guardrail.default UpdateAiGuardrailRequest.BuilderwordPolicyConfig(Consumer<AIGuardrailWordPolicyConfig.Builder> wordPolicyConfig) The word policy you configure for the AI Guardrail.wordPolicyConfig(AIGuardrailWordPolicyConfig wordPolicyConfig) The word policy you configure for the AI Guardrail.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs..
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs..- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assistantId
The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
- Parameters:
assistantId- The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiGuardrailId
The identifier of the Amazon Q in Connect AI Guardrail.
- Parameters:
aiGuardrailId- The identifier of the Amazon Q in Connect AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityStatus
The visibility status of the Amazon Q in Connect AI Guardrail.
- Parameters:
visibilityStatus- The visibility status of the Amazon Q in Connect AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
visibilityStatus
The visibility status of the Amazon Q in Connect AI Guardrail.
- Parameters:
visibilityStatus- The visibility status of the Amazon Q in Connect AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
blockedInputMessaging
The message to return when the AI Guardrail blocks a prompt.
- Parameters:
blockedInputMessaging- The message to return when the AI 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 AI Guardrail blocks a model response.
- Parameters:
blockedOutputsMessaging- The message to return when the AI Guardrail blocks a model response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the AI Guardrail.
- Parameters:
description- A description of the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicyConfig
The topic policies to configure for the AI Guardrail.
- Parameters:
topicPolicyConfig- The topic policies to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicyConfig
default UpdateAiGuardrailRequest.Builder topicPolicyConfig(Consumer<AIGuardrailTopicPolicyConfig.Builder> topicPolicyConfig) The topic policies to configure for the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailTopicPolicyConfig.Builderavoiding the need to create one manually viaAIGuardrailTopicPolicyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totopicPolicyConfig(AIGuardrailTopicPolicyConfig).- Parameters:
topicPolicyConfig- a consumer that will call methods onAIGuardrailTopicPolicyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentPolicyConfig
UpdateAiGuardrailRequest.Builder contentPolicyConfig(AIGuardrailContentPolicyConfig contentPolicyConfig) The content filter policies to configure for the AI Guardrail.
- Parameters:
contentPolicyConfig- The content filter policies to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicyConfig
default UpdateAiGuardrailRequest.Builder contentPolicyConfig(Consumer<AIGuardrailContentPolicyConfig.Builder> contentPolicyConfig) The content filter policies to configure for the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailContentPolicyConfig.Builderavoiding the need to create one manually viaAIGuardrailContentPolicyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentPolicyConfig(AIGuardrailContentPolicyConfig).- Parameters:
contentPolicyConfig- a consumer that will call methods onAIGuardrailContentPolicyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
wordPolicyConfig
The word policy you configure for the AI Guardrail.
- Parameters:
wordPolicyConfig- The word policy you configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordPolicyConfig
default UpdateAiGuardrailRequest.Builder wordPolicyConfig(Consumer<AIGuardrailWordPolicyConfig.Builder> wordPolicyConfig) The word policy you configure for the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailWordPolicyConfig.Builderavoiding the need to create one manually viaAIGuardrailWordPolicyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towordPolicyConfig(AIGuardrailWordPolicyConfig).- Parameters:
wordPolicyConfig- a consumer that will call methods onAIGuardrailWordPolicyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sensitiveInformationPolicyConfig
UpdateAiGuardrailRequest.Builder sensitiveInformationPolicyConfig(AIGuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig) The sensitive information policy to configure for the AI Guardrail.
- Parameters:
sensitiveInformationPolicyConfig- The sensitive information policy to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformationPolicyConfig
default UpdateAiGuardrailRequest.Builder sensitiveInformationPolicyConfig(Consumer<AIGuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig) The sensitive information policy to configure for the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailSensitiveInformationPolicyConfig.Builderavoiding the need to create one manually viaAIGuardrailSensitiveInformationPolicyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosensitiveInformationPolicyConfig(AIGuardrailSensitiveInformationPolicyConfig).- Parameters:
sensitiveInformationPolicyConfig- a consumer that will call methods onAIGuardrailSensitiveInformationPolicyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contextualGroundingPolicyConfig
UpdateAiGuardrailRequest.Builder contextualGroundingPolicyConfig(AIGuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig) The contextual grounding policy configuration used to create an AI Guardrail.
- Parameters:
contextualGroundingPolicyConfig- The contextual grounding policy configuration used to create an AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextualGroundingPolicyConfig
default UpdateAiGuardrailRequest.Builder contextualGroundingPolicyConfig(Consumer<AIGuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig) The contextual grounding policy configuration used to create an AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailContextualGroundingPolicyConfig.Builderavoiding the need to create one manually viaAIGuardrailContextualGroundingPolicyConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontextualGroundingPolicyConfig(AIGuardrailContextualGroundingPolicyConfig).- Parameters:
contextualGroundingPolicyConfig- a consumer that will call methods onAIGuardrailContextualGroundingPolicyConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateAiGuardrailRequest.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
UpdateAiGuardrailRequest.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.
-