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
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the policy that contains the test.The test details including the content, query, expected result, and metadata.testCase
(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 Details
-
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.Builder
avoiding the need to create one manually viaAutomatedReasoningPolicyTestCase.builder()
.When the
Consumer
completes,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:
-