Interface GuardrailChecksPromptAttackResultEntry.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailChecksPromptAttackResultEntry.Builder,,GuardrailChecksPromptAttackResultEntry> SdkBuilder<GuardrailChecksPromptAttackResultEntry.Builder,,GuardrailChecksPromptAttackResultEntry> SdkPojo
- Enclosing class:
GuardrailChecksPromptAttackResultEntry
@Mutable
@NotThreadSafe
public static interface GuardrailChecksPromptAttackResultEntry.Builder
extends SdkPojo, CopyableBuilder<GuardrailChecksPromptAttackResultEntry.Builder,GuardrailChecksPromptAttackResultEntry>
-
Method Summary
Modifier and TypeMethodDescriptionThe prompt attack category that was evaluated.category(GuardrailChecksPromptAttackCategory category) The prompt attack category that was evaluated.severityScore(Double severityScore) The severity score for the category, ranging from 0.0 to 1.0.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
-
category
The prompt attack category that was evaluated.
- Parameters:
category- The prompt attack category that was evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
category
GuardrailChecksPromptAttackResultEntry.Builder category(GuardrailChecksPromptAttackCategory category) The prompt attack category that was evaluated.
- Parameters:
category- The prompt attack category that was evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severityScore
The severity score for the category, ranging from 0.0 to 1.0. Higher values indicate greater severity.
- Parameters:
severityScore- The severity score for the category, ranging from 0.0 to 1.0. Higher values indicate greater severity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-