Interface GuardrailChecksConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailChecksConfig.Builder,,GuardrailChecksConfig> SdkBuilder<GuardrailChecksConfig.Builder,,GuardrailChecksConfig> SdkPojo
- Enclosing class:
GuardrailChecksConfig
@Mutable
@NotThreadSafe
public static interface GuardrailChecksConfig.Builder
extends SdkPojo, CopyableBuilder<GuardrailChecksConfig.Builder,GuardrailChecksConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GuardrailChecksConfig.BuildercontentFilter(Consumer<GuardrailChecksContentFilterConfig.Builder> contentFilter) The content filter check configuration.contentFilter(GuardrailChecksContentFilterConfig contentFilter) The content filter check configuration.default GuardrailChecksConfig.BuilderpromptAttack(Consumer<GuardrailChecksPromptAttackConfig.Builder> promptAttack) The prompt attack check configuration.promptAttack(GuardrailChecksPromptAttackConfig promptAttack) The prompt attack check configuration.default GuardrailChecksConfig.BuildersensitiveInformation(Consumer<GuardrailChecksSensitiveInformationConfig.Builder> sensitiveInformation) The sensitive information check configuration.sensitiveInformation(GuardrailChecksSensitiveInformationConfig sensitiveInformation) The sensitive information check configuration.Methods 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
-
contentFilter
The content filter check configuration.
- Parameters:
contentFilter- The content filter check configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentFilter
default GuardrailChecksConfig.Builder contentFilter(Consumer<GuardrailChecksContentFilterConfig.Builder> contentFilter) The content filter check configuration.
This is a convenience method that creates an instance of theGuardrailChecksContentFilterConfig.Builderavoiding the need to create one manually viaGuardrailChecksContentFilterConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentFilter(GuardrailChecksContentFilterConfig).- Parameters:
contentFilter- a consumer that will call methods onGuardrailChecksContentFilterConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
promptAttack
The prompt attack check configuration.
- Parameters:
promptAttack- The prompt attack check configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
promptAttack
default GuardrailChecksConfig.Builder promptAttack(Consumer<GuardrailChecksPromptAttackConfig.Builder> promptAttack) The prompt attack check configuration.
This is a convenience method that creates an instance of theGuardrailChecksPromptAttackConfig.Builderavoiding the need to create one manually viaGuardrailChecksPromptAttackConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topromptAttack(GuardrailChecksPromptAttackConfig).- Parameters:
promptAttack- a consumer that will call methods onGuardrailChecksPromptAttackConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sensitiveInformation
GuardrailChecksConfig.Builder sensitiveInformation(GuardrailChecksSensitiveInformationConfig sensitiveInformation) The sensitive information check configuration.
- Parameters:
sensitiveInformation- The sensitive information check configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sensitiveInformation
default GuardrailChecksConfig.Builder sensitiveInformation(Consumer<GuardrailChecksSensitiveInformationConfig.Builder> sensitiveInformation) The sensitive information check configuration.
This is a convenience method that creates an instance of theGuardrailChecksSensitiveInformationConfig.Builderavoiding the need to create one manually viaGuardrailChecksSensitiveInformationConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosensitiveInformation(GuardrailChecksSensitiveInformationConfig).- Parameters:
sensitiveInformation- a consumer that will call methods onGuardrailChecksSensitiveInformationConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-