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