Interface AIGuardrailData.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AIGuardrailData.Builder,
,AIGuardrailData> SdkBuilder<AIGuardrailData.Builder,
,AIGuardrailData> SdkPojo
- Enclosing class:
AIGuardrailData
-
Method Summary
Modifier and TypeMethodDescriptionaiGuardrailArn
(String aiGuardrailArn) The Amazon Resource Name (ARN) of the AI Guardrail.aiGuardrailId
(String aiGuardrailId) The identifier of the Amazon Q in Connect AI Guardrail.assistantArn
(String assistantArn) The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.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.default AIGuardrailData.Builder
contentPolicyConfig
(Consumer<AIGuardrailContentPolicyConfig.Builder> contentPolicyConfig) Contains details about how to handle harmful content.contentPolicyConfig
(AIGuardrailContentPolicyConfig contentPolicyConfig) Contains details about how to handle harmful content.default AIGuardrailData.Builder
contextualGroundingPolicyConfig
(Consumer<AIGuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig) The policy configuration details for the AI Guardrail's contextual grounding policy.contextualGroundingPolicyConfig
(AIGuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig) The policy configuration details for the AI Guardrail's contextual grounding policy.description
(String description) A description of the AI Guardrail.modifiedTime
(Instant modifiedTime) The time the AI Guardrail was last modified.The name of the AI Guardrail.default AIGuardrailData.Builder
sensitiveInformationPolicyConfig
(Consumer<AIGuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig) Contains details about PII entities and regular expressions to configure for the AI Guardrail.sensitiveInformationPolicyConfig
(AIGuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig) Contains details about PII entities and regular expressions to configure for the AI Guardrail.The status of the AI Guardrail.The status of the AI Guardrail.The tags used to organize, track, or control access for this resource.default AIGuardrailData.Builder
topicPolicyConfig
(Consumer<AIGuardrailTopicPolicyConfig.Builder> topicPolicyConfig) Contains details about topics that the AI Guardrail should identify and deny.topicPolicyConfig
(AIGuardrailTopicPolicyConfig topicPolicyConfig) Contains details about topics that the AI Guardrail should identify and deny.visibilityStatus
(String visibilityStatus) The visibility status of the AI Guardrail.visibilityStatus
(VisibilityStatus visibilityStatus) The visibility status of the AI Guardrail.default AIGuardrailData.Builder
wordPolicyConfig
(Consumer<AIGuardrailWordPolicyConfig.Builder> wordPolicyConfig) Contains details about the word policy to configured for the AI Guardrail.wordPolicyConfig
(AIGuardrailWordPolicyConfig wordPolicyConfig) Contains details about the word policy to configured for the AI Guardrail.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 Details
-
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.
-
assistantArn
The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.
- Parameters:
assistantArn
- The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiGuardrailArn
The Amazon Resource Name (ARN) of the AI Guardrail.
- Parameters:
aiGuardrailArn
- The Amazon Resource Name (ARN) of the AI Guardrail.- 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.
-
name
The name of the AI Guardrail.
- Parameters:
name
- The name of the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visibilityStatus
The visibility status of the AI Guardrail.
- Parameters:
visibilityStatus
- The visibility status of the 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 AI Guardrail.
- Parameters:
visibilityStatus
- The visibility status of the 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
Contains details about topics that the AI Guardrail should identify and deny.
- Parameters:
topicPolicyConfig
- Contains details about topics that the AI Guardrail should identify and deny.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topicPolicyConfig
default AIGuardrailData.Builder topicPolicyConfig(Consumer<AIGuardrailTopicPolicyConfig.Builder> topicPolicyConfig) Contains details about topics that the AI Guardrail should identify and deny.
This is a convenience method that creates an instance of theAIGuardrailTopicPolicyConfig.Builder
avoiding the need to create one manually viaAIGuardrailTopicPolicyConfig.builder()
.When the
Consumer
completes,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
Contains details about how to handle harmful content.
- Parameters:
contentPolicyConfig
- Contains details about how to handle harmful content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentPolicyConfig
default AIGuardrailData.Builder contentPolicyConfig(Consumer<AIGuardrailContentPolicyConfig.Builder> contentPolicyConfig) Contains details about how to handle harmful content.
This is a convenience method that creates an instance of theAIGuardrailContentPolicyConfig.Builder
avoiding the need to create one manually viaAIGuardrailContentPolicyConfig.builder()
.When the
Consumer
completes,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
Contains details about the word policy to configured for the AI Guardrail.
- Parameters:
wordPolicyConfig
- Contains details about the word policy to configured for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wordPolicyConfig
default AIGuardrailData.Builder wordPolicyConfig(Consumer<AIGuardrailWordPolicyConfig.Builder> wordPolicyConfig) Contains details about the word policy to configured for the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailWordPolicyConfig.Builder
avoiding the need to create one manually viaAIGuardrailWordPolicyConfig.builder()
.When the
Consumer
completes,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
AIGuardrailData.Builder sensitiveInformationPolicyConfig(AIGuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig) Contains details about PII entities and regular expressions to configure for the AI Guardrail.
- Parameters:
sensitiveInformationPolicyConfig
- Contains details about PII entities and regular expressions to configure for the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformationPolicyConfig
default AIGuardrailData.Builder sensitiveInformationPolicyConfig(Consumer<AIGuardrailSensitiveInformationPolicyConfig.Builder> sensitiveInformationPolicyConfig) Contains details about PII entities and regular expressions to configure for the AI Guardrail.
This is a convenience method that creates an instance of theAIGuardrailSensitiveInformationPolicyConfig.Builder
avoiding the need to create one manually viaAIGuardrailSensitiveInformationPolicyConfig.builder()
.When the
Consumer
completes,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
AIGuardrailData.Builder contextualGroundingPolicyConfig(AIGuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig) The policy configuration details for the AI Guardrail's contextual grounding policy.
- Parameters:
contextualGroundingPolicyConfig
- The policy configuration details for the AI Guardrail's contextual grounding policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contextualGroundingPolicyConfig
default AIGuardrailData.Builder contextualGroundingPolicyConfig(Consumer<AIGuardrailContextualGroundingPolicyConfig.Builder> contextualGroundingPolicyConfig) The policy configuration details for the AI Guardrail's contextual grounding policy.
This is a convenience method that creates an instance of theAIGuardrailContextualGroundingPolicyConfig.Builder
avoiding the need to create one manually viaAIGuardrailContextualGroundingPolicyConfig.builder()
.When the
Consumer
completes,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:
-
tags
The tags used to organize, track, or control access for this resource.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the AI Guardrail.
- Parameters:
status
- The status of the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the AI Guardrail.
- Parameters:
status
- The status of the AI Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modifiedTime
The time the AI Guardrail was last modified.
- Parameters:
modifiedTime
- The time the AI Guardrail was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-