Interface GuardrailInvocationMetrics.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailInvocationMetrics.Builder,,GuardrailInvocationMetrics> SdkBuilder<GuardrailInvocationMetrics.Builder,,GuardrailInvocationMetrics> SdkPojo
- Enclosing class:
GuardrailInvocationMetrics
public static interface GuardrailInvocationMetrics.Builder
extends SdkPojo, CopyableBuilder<GuardrailInvocationMetrics.Builder,GuardrailInvocationMetrics>
-
Method Summary
Modifier and TypeMethodDescriptionguardrailCoverage(Consumer<GuardrailCoverage.Builder> guardrailCoverage) The coverage details for the guardrail invocation metrics.guardrailCoverage(GuardrailCoverage guardrailCoverage) The coverage details for the guardrail invocation metrics.guardrailProcessingLatency(Long guardrailProcessingLatency) The processing latency details for the guardrail invocation metrics.usage(Consumer<GuardrailUsage.Builder> usage) The usage details for the guardrail invocation metrics.usage(GuardrailUsage usage) The usage details for the guardrail invocation metrics.Methods 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, sdkFields
-
Method Details
-
guardrailProcessingLatency
The processing latency details for the guardrail invocation metrics.
- Parameters:
guardrailProcessingLatency- The processing latency details for the guardrail invocation metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
The usage details for the guardrail invocation metrics.
- Parameters:
usage- The usage details for the guardrail invocation metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
The usage details for the guardrail invocation metrics.
This is a convenience method that creates an instance of theGuardrailUsage.Builderavoiding the need to create one manually viaGuardrailUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tousage(GuardrailUsage).- Parameters:
usage- a consumer that will call methods onGuardrailUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
guardrailCoverage
The coverage details for the guardrail invocation metrics.
- Parameters:
guardrailCoverage- The coverage details for the guardrail invocation metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
guardrailCoverage
default GuardrailInvocationMetrics.Builder guardrailCoverage(Consumer<GuardrailCoverage.Builder> guardrailCoverage) The coverage details for the guardrail invocation metrics.
This is a convenience method that creates an instance of theGuardrailCoverage.Builderavoiding the need to create one manually viaGuardrailCoverage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toguardrailCoverage(GuardrailCoverage).- Parameters:
guardrailCoverage- a consumer that will call methods onGuardrailCoverage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-