Interface GuardrailTrace.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<GuardrailTrace.Builder,GuardrailTrace>
,SdkBuilder<GuardrailTrace.Builder,GuardrailTrace>
,SdkPojo
- Enclosing class:
- GuardrailTrace
public static interface GuardrailTrace.Builder extends SdkPojo, CopyableBuilder<GuardrailTrace.Builder,GuardrailTrace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuardrailTrace.Builder
action(String action)
The trace action details used with the Guardrail.GuardrailTrace.Builder
action(GuardrailAction action)
The trace action details used with the Guardrail.GuardrailTrace.Builder
inputAssessments(Collection<GuardrailAssessment> inputAssessments)
The details of the input assessments used in the Guardrail Trace.GuardrailTrace.Builder
inputAssessments(Consumer<GuardrailAssessment.Builder>... inputAssessments)
The details of the input assessments used in the Guardrail Trace.GuardrailTrace.Builder
inputAssessments(GuardrailAssessment... inputAssessments)
The details of the input assessments used in the Guardrail Trace.GuardrailTrace.Builder
outputAssessments(Collection<GuardrailAssessment> outputAssessments)
The details of the output assessments used in the Guardrail Trace.GuardrailTrace.Builder
outputAssessments(Consumer<GuardrailAssessment.Builder>... outputAssessments)
The details of the output assessments used in the Guardrail Trace.GuardrailTrace.Builder
outputAssessments(GuardrailAssessment... outputAssessments)
The details of the output assessments used in the Guardrail Trace.GuardrailTrace.Builder
traceId(String traceId)
The details of the trace Id used in the Guardrail Trace.-
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, sdkFields
-
-
-
-
Method Detail
-
action
GuardrailTrace.Builder action(String action)
The trace action details used with the Guardrail.
- Parameters:
action
- The trace action details used with the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailAction
,GuardrailAction
-
action
GuardrailTrace.Builder action(GuardrailAction action)
The trace action details used with the Guardrail.
- Parameters:
action
- The trace action details used with the Guardrail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuardrailAction
,GuardrailAction
-
inputAssessments
GuardrailTrace.Builder inputAssessments(Collection<GuardrailAssessment> inputAssessments)
The details of the input assessments used in the Guardrail Trace.
- Parameters:
inputAssessments
- The details of the input assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputAssessments
GuardrailTrace.Builder inputAssessments(GuardrailAssessment... inputAssessments)
The details of the input assessments used in the Guardrail Trace.
- Parameters:
inputAssessments
- The details of the input assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputAssessments
GuardrailTrace.Builder inputAssessments(Consumer<GuardrailAssessment.Builder>... inputAssessments)
The details of the input assessments used in the Guardrail Trace.
This is a convenience method that creates an instance of theGuardrailAssessment.Builder
avoiding the need to create one manually viaGuardrailAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#inputAssessments(List
.) - Parameters:
inputAssessments
- a consumer that will call methods onGuardrailAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#inputAssessments(java.util.Collection
)
-
outputAssessments
GuardrailTrace.Builder outputAssessments(Collection<GuardrailAssessment> outputAssessments)
The details of the output assessments used in the Guardrail Trace.
- Parameters:
outputAssessments
- The details of the output assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputAssessments
GuardrailTrace.Builder outputAssessments(GuardrailAssessment... outputAssessments)
The details of the output assessments used in the Guardrail Trace.
- Parameters:
outputAssessments
- The details of the output assessments used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputAssessments
GuardrailTrace.Builder outputAssessments(Consumer<GuardrailAssessment.Builder>... outputAssessments)
The details of the output assessments used in the Guardrail Trace.
This is a convenience method that creates an instance of theGuardrailAssessment.Builder
avoiding the need to create one manually viaGuardrailAssessment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#outputAssessments(List
.) - Parameters:
outputAssessments
- a consumer that will call methods onGuardrailAssessment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#outputAssessments(java.util.Collection
)
-
traceId
GuardrailTrace.Builder traceId(String traceId)
The details of the trace Id used in the Guardrail Trace.
- Parameters:
traceId
- The details of the trace Id used in the Guardrail Trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-