Interface CreateAiGuardrailRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAiGuardrailRequest.Builder,,CreateAiGuardrailRequest> QConnectRequest.Builder,SdkBuilder<CreateAiGuardrailRequest.Builder,,CreateAiGuardrailRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAiGuardrailRequest
-
Method Summary
Modifier and TypeMethodDescriptionassistantId(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 CreateAiGuardrailRequest.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 CreateAiGuardrailRequest.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.The name 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 CreateAiGuardrailRequest.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.The tags used to organize, track, or control access for this resource.default CreateAiGuardrailRequest.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 AI Guardrail.visibilityStatus(VisibilityStatus visibilityStatus) The visibility status of the AI Guardrail.default CreateAiGuardrailRequest.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.
-
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.
-
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.
-
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:
-
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 CreateAiGuardrailRequest.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
CreateAiGuardrailRequest.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 CreateAiGuardrailRequest.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 CreateAiGuardrailRequest.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
CreateAiGuardrailRequest.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 CreateAiGuardrailRequest.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
CreateAiGuardrailRequest.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 CreateAiGuardrailRequest.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:
-
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.
-
overrideConfiguration
CreateAiGuardrailRequest.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
CreateAiGuardrailRequest.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.
-