Class AutomatedReasoningPolicyTestResult
- java.lang.Object
-
- software.amazon.awssdk.services.bedrock.model.AutomatedReasoningPolicyTestResult
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomatedReasoningPolicyTestResult.Builder,AutomatedReasoningPolicyTestResult>
@Generated("software.amazon.awssdk:codegen") public final class AutomatedReasoningPolicyTestResult extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomatedReasoningPolicyTestResult.Builder,AutomatedReasoningPolicyTestResult>
Contains the results of testing an Automated Reasoning policy against various scenarios and validation checks.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomatedReasoningPolicyTestResult.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutomatedReasoningCheckResultaggregatedTestFindingsResult()A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.StringaggregatedTestFindingsResultAsString()A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.static AutomatedReasoningPolicyTestResult.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasTestFindings()For responses, this returns true if the service returned a value for the TestFindings property.StringpolicyArn()The Amazon Resource Name (ARN) of the Automated Reasoning policy that was tested.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AutomatedReasoningPolicyTestResult.Builder>serializableBuilderClass()AutomatedReasoningPolicyTestCasetestCase()The test case that was executed, including the input content, expected results, and configuration parameters used during validation.List<AutomatedReasoningCheckFinding>testFindings()Detailed findings from the test run, including any issues, violations, or unexpected behaviors discovered.AutomatedReasoningPolicyTestRunResulttestRunResult()The overall result of the test run, indicating whether the policy passed or failed validation.StringtestRunResultAsString()The overall result of the test run, indicating whether the policy passed or failed validation.AutomatedReasoningPolicyTestRunStatustestRunStatus()The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).StringtestRunStatusAsString()The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).AutomatedReasoningPolicyTestResult.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The timestamp when the test results were 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
-
testCase
public final AutomatedReasoningPolicyTestCase testCase()
The test case that was executed, including the input content, expected results, and configuration parameters used during validation.
- Returns:
- The test case that was executed, including the input content, expected results, and configuration parameters used during validation.
-
policyArn
public final String policyArn()
The Amazon Resource Name (ARN) of the Automated Reasoning policy that was tested.
- Returns:
- The Amazon Resource Name (ARN) of the Automated Reasoning policy that was tested.
-
testRunStatus
public final AutomatedReasoningPolicyTestRunStatus testRunStatus()
The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).
If the service returns an enum value that is not available in the current SDK version,
testRunStatuswill returnAutomatedReasoningPolicyTestRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtestRunStatusAsString().- Returns:
- The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).
- See Also:
AutomatedReasoningPolicyTestRunStatus
-
testRunStatusAsString
public final String testRunStatusAsString()
The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).
If the service returns an enum value that is not available in the current SDK version,
testRunStatuswill returnAutomatedReasoningPolicyTestRunStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtestRunStatusAsString().- Returns:
- The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS).
- See Also:
AutomatedReasoningPolicyTestRunStatus
-
hasTestFindings
public final boolean hasTestFindings()
For responses, this returns true if the service returned a value for the TestFindings property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
testFindings
public final List<AutomatedReasoningCheckFinding> testFindings()
Detailed findings from the test run, including any issues, violations, or unexpected behaviors discovered.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTestFindings()method.- Returns:
- Detailed findings from the test run, including any issues, violations, or unexpected behaviors discovered.
-
testRunResult
public final AutomatedReasoningPolicyTestRunResult testRunResult()
The overall result of the test run, indicating whether the policy passed or failed validation.
If the service returns an enum value that is not available in the current SDK version,
testRunResultwill returnAutomatedReasoningPolicyTestRunResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtestRunResultAsString().- Returns:
- The overall result of the test run, indicating whether the policy passed or failed validation.
- See Also:
AutomatedReasoningPolicyTestRunResult
-
testRunResultAsString
public final String testRunResultAsString()
The overall result of the test run, indicating whether the policy passed or failed validation.
If the service returns an enum value that is not available in the current SDK version,
testRunResultwill returnAutomatedReasoningPolicyTestRunResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtestRunResultAsString().- Returns:
- The overall result of the test run, indicating whether the policy passed or failed validation.
- See Also:
AutomatedReasoningPolicyTestRunResult
-
aggregatedTestFindingsResult
public final AutomatedReasoningCheckResult aggregatedTestFindingsResult()
A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.
If the service returns an enum value that is not available in the current SDK version,
aggregatedTestFindingsResultwill returnAutomatedReasoningCheckResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregatedTestFindingsResultAsString().- Returns:
- A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.
- See Also:
AutomatedReasoningCheckResult
-
aggregatedTestFindingsResultAsString
public final String aggregatedTestFindingsResultAsString()
A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.
If the service returns an enum value that is not available in the current SDK version,
aggregatedTestFindingsResultwill returnAutomatedReasoningCheckResult.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaggregatedTestFindingsResultAsString().- Returns:
- A summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness.
- See Also:
AutomatedReasoningCheckResult
-
updatedAt
public final Instant updatedAt()
The timestamp when the test results were last updated.
- Returns:
- The timestamp when the test results were last updated.
-
toBuilder
public AutomatedReasoningPolicyTestResult.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomatedReasoningPolicyTestResult.Builder,AutomatedReasoningPolicyTestResult>
-
builder
public static AutomatedReasoningPolicyTestResult.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomatedReasoningPolicyTestResult.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
-
-