Interface GetAutomatedReasoningPolicyTestCaseResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,BedrockResponse.Builder,Buildable,CopyableBuilder<GetAutomatedReasoningPolicyTestCaseResponse.Builder,GetAutomatedReasoningPolicyTestCaseResponse>,SdkBuilder<GetAutomatedReasoningPolicyTestCaseResponse.Builder,GetAutomatedReasoningPolicyTestCaseResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetAutomatedReasoningPolicyTestCaseResponse
@Mutable @NotThreadSafe public static interface GetAutomatedReasoningPolicyTestCaseResponse.Builder extends BedrockResponse.Builder, SdkPojo, CopyableBuilder<GetAutomatedReasoningPolicyTestCaseResponse.Builder,GetAutomatedReasoningPolicyTestCaseResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetAutomatedReasoningPolicyTestCaseResponse.BuilderpolicyArn(String policyArn)The Amazon Resource Name (ARN) of the policy that contains the test.default GetAutomatedReasoningPolicyTestCaseResponse.BuildertestCase(Consumer<AutomatedReasoningPolicyTestCase.Builder> testCase)The test details including the content, query, expected result, and metadata.GetAutomatedReasoningPolicyTestCaseResponse.BuildertestCase(AutomatedReasoningPolicyTestCase testCase)The test details including the content, query, expected result, and metadata.-
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
policyArn
GetAutomatedReasoningPolicyTestCaseResponse.Builder policyArn(String policyArn)
The Amazon Resource Name (ARN) of the policy that contains the test.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the policy that contains the test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testCase
GetAutomatedReasoningPolicyTestCaseResponse.Builder testCase(AutomatedReasoningPolicyTestCase testCase)
The test details including the content, query, expected result, and metadata.
- Parameters:
testCase- The test details including the content, query, expected result, and metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
testCase
default GetAutomatedReasoningPolicyTestCaseResponse.Builder testCase(Consumer<AutomatedReasoningPolicyTestCase.Builder> testCase)
The test details including the content, query, expected result, and metadata.
This is a convenience method that creates an instance of theAutomatedReasoningPolicyTestCase.Builderavoiding the need to create one manually viaAutomatedReasoningPolicyTestCase.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totestCase(AutomatedReasoningPolicyTestCase).- Parameters:
testCase- a consumer that will call methods onAutomatedReasoningPolicyTestCase.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
testCase(AutomatedReasoningPolicyTestCase)
-
-