Interface InvokeGuardrailChecksResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockRuntimeResponse.Builder,Buildable,CopyableBuilder<InvokeGuardrailChecksResponse.Builder,,InvokeGuardrailChecksResponse> SdkBuilder<InvokeGuardrailChecksResponse.Builder,,InvokeGuardrailChecksResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
InvokeGuardrailChecksResponse
@Mutable
@NotThreadSafe
public static interface InvokeGuardrailChecksResponse.Builder
extends BedrockRuntimeResponse.Builder, SdkPojo, CopyableBuilder<InvokeGuardrailChecksResponse.Builder,InvokeGuardrailChecksResponse>
-
Method Summary
Modifier and TypeMethodDescriptionresults(Consumer<GuardrailChecksResults.Builder> results) The per-check results containing findings from the guardrail evaluation.results(GuardrailChecksResults results) The per-check results containing findings from the guardrail evaluation.The per-check text unit consumption for the guardrail evaluation.usage(GuardrailChecksUsageResults usage) The per-check text unit consumption for the guardrail evaluation.Methods inherited from interface software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
results
The per-check results containing findings from the guardrail evaluation.
- Parameters:
results- The per-check results containing findings from the guardrail evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
default InvokeGuardrailChecksResponse.Builder results(Consumer<GuardrailChecksResults.Builder> results) The per-check results containing findings from the guardrail evaluation.
This is a convenience method that creates an instance of theGuardrailChecksResults.Builderavoiding the need to create one manually viaGuardrailChecksResults.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresults(GuardrailChecksResults).- Parameters:
results- a consumer that will call methods onGuardrailChecksResults.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
usage
The per-check text unit consumption for the guardrail evaluation.
- Parameters:
usage- The per-check text unit consumption for the guardrail evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
default InvokeGuardrailChecksResponse.Builder usage(Consumer<GuardrailChecksUsageResults.Builder> usage) The per-check text unit consumption for the guardrail evaluation.
This is a convenience method that creates an instance of theGuardrailChecksUsageResults.Builderavoiding the need to create one manually viaGuardrailChecksUsageResults.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousage(GuardrailChecksUsageResults).- Parameters:
usage- a consumer that will call methods onGuardrailChecksUsageResults.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-