Interface GuardrailChecksPromptAttackConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailChecksPromptAttackConfig.Builder,,GuardrailChecksPromptAttackConfig> SdkBuilder<GuardrailChecksPromptAttackConfig.Builder,,GuardrailChecksPromptAttackConfig> SdkPojo
- Enclosing class:
GuardrailChecksPromptAttackConfig
@Mutable
@NotThreadSafe
public static interface GuardrailChecksPromptAttackConfig.Builder
extends SdkPojo, CopyableBuilder<GuardrailChecksPromptAttackConfig.Builder,GuardrailChecksPromptAttackConfig>
-
Method Summary
Modifier and TypeMethodDescriptionThe prompt attack categories to evaluate.categories(Consumer<GuardrailChecksPromptAttackCategoryConfig.Builder>... categories) The prompt attack categories to evaluate.categories(GuardrailChecksPromptAttackCategoryConfig... categories) The prompt attack categories to evaluate.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
-
categories
GuardrailChecksPromptAttackConfig.Builder categories(Collection<GuardrailChecksPromptAttackCategoryConfig> categories) The prompt attack categories to evaluate.
- Parameters:
categories- The prompt attack categories to evaluate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
GuardrailChecksPromptAttackConfig.Builder categories(GuardrailChecksPromptAttackCategoryConfig... categories) The prompt attack categories to evaluate.
- Parameters:
categories- The prompt attack categories to evaluate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
categories
GuardrailChecksPromptAttackConfig.Builder categories(Consumer<GuardrailChecksPromptAttackCategoryConfig.Builder>... categories) The prompt attack categories to evaluate.
This is a convenience method that creates an instance of theGuardrailChecksPromptAttackCategoryConfig.Builderavoiding the need to create one manually viaGuardrailChecksPromptAttackCategoryConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocategories(List<GuardrailChecksPromptAttackCategoryConfig>).- Parameters:
categories- a consumer that will call methods onGuardrailChecksPromptAttackCategoryConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-