Interface GuardrailInvocationMetrics.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<GuardrailInvocationMetrics.Builder,,- GuardrailInvocationMetrics> - SdkBuilder<GuardrailInvocationMetrics.Builder,,- GuardrailInvocationMetrics> - SdkPojo
- Enclosing class:
- GuardrailInvocationMetrics
@Mutable
@NotThreadSafe
public static interface GuardrailInvocationMetrics.Builder
extends SdkPojo, CopyableBuilder<GuardrailInvocationMetrics.Builder,GuardrailInvocationMetrics> 
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
guardrailProcessingLatencyThe 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.
 
- 
usageThe 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.
 
- 
usageThe 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 on- GuardrailUsage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
guardrailCoverageThe 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.
 
- 
guardrailCoveragedefault 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 on- GuardrailCoverage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-