Class AutomatedReasoningPolicyTestCase
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.AutomatedReasoningPolicyTestCase
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomatedReasoningPolicyTestCase.Builder,AutomatedReasoningPolicyTestCase>
@Generated("software.amazon.awssdk:codegen") public final class AutomatedReasoningPolicyTestCase extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomatedReasoningPolicyTestCase.Builder,AutomatedReasoningPolicyTestCase>
Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomatedReasoningPolicyTestCase.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutomatedReasoningPolicyTestCase.Builderbuilder()DoubleconfidenceThreshold()The minimum confidence level for logic validation.InstantcreatedAt()The timestamp when the test was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)AutomatedReasoningCheckResultexpectedAggregatedFindingsResult()The expected result of the Automated Reasoning check for this test.StringexpectedAggregatedFindingsResultAsString()The expected result of the Automated Reasoning check for this test.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringguardContent()The output content to be validated by the policy, typically representing a foundation model response.inthashCode()StringqueryContent()The input query or prompt that generated the content.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AutomatedReasoningPolicyTestCase.Builder>serializableBuilderClass()StringtestCaseId()The unique identifier of the test.AutomatedReasoningPolicyTestCase.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The timestamp when the test was last updated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
testCaseId
public final String testCaseId()
The unique identifier of the test.
- Returns:
- The unique identifier of the test.
-
guardContent
public final String guardContent()
The output content to be validated by the policy, typically representing a foundation model response.
- Returns:
- The output content to be validated by the policy, typically representing a foundation model response.
-
queryContent
public final String queryContent()
The input query or prompt that generated the content. This provides context for the validation.
- Returns:
- The input query or prompt that generated the content. This provides context for the validation.
-
expectedAggregatedFindingsResult
public final AutomatedReasoningCheckResult expectedAggregatedFindingsResult()
The expected result of the Automated Reasoning check for this test.
If the service returns an enum value that is not available in the current SDK version,
expectedAggregatedFindingsResultwill returnAutomatedReasoningCheckResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexpectedAggregatedFindingsResultAsString().- Returns:
- The expected result of the Automated Reasoning check for this test.
- See Also:
AutomatedReasoningCheckResult
-
expectedAggregatedFindingsResultAsString
public final String expectedAggregatedFindingsResultAsString()
The expected result of the Automated Reasoning check for this test.
If the service returns an enum value that is not available in the current SDK version,
expectedAggregatedFindingsResultwill returnAutomatedReasoningCheckResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexpectedAggregatedFindingsResultAsString().- Returns:
- The expected result of the Automated Reasoning check for this test.
- See Also:
AutomatedReasoningCheckResult
-
createdAt
public final Instant createdAt()
The timestamp when the test was created.
- Returns:
- The timestamp when the test was created.
-
updatedAt
public final Instant updatedAt()
The timestamp when the test was last updated.
- Returns:
- The timestamp when the test was last updated.
-
confidenceThreshold
public final Double confidenceThreshold()
The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.
- Returns:
- The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.
-
toBuilder
public AutomatedReasoningPolicyTestCase.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomatedReasoningPolicyTestCase.Builder,AutomatedReasoningPolicyTestCase>
-
builder
public static AutomatedReasoningPolicyTestCase.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyTestCase.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-