Interface SpanTextValue.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpanTextValue.Builder,,SpanTextValue> SdkBuilder<SpanTextValue.Builder,,SpanTextValue> SdkPojo
- Enclosing class:
SpanTextValue
@Mutable
@NotThreadSafe
public static interface SpanTextValue.Builder
extends SdkPojo, CopyableBuilder<SpanTextValue.Builder,SpanTextValue>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SpanTextValue.BuilderaiGuardrailAssessment(Consumer<AIGuardrailAssessment.Builder> aiGuardrailAssessment) The AI Guardrail assessment for the span text.aiGuardrailAssessment(AIGuardrailAssessment aiGuardrailAssessment) The AI Guardrail assessment for the span text.citations(Collection<SpanCitation> citations) The citations associated with the span text.citations(Consumer<SpanCitation.Builder>... citations) The citations associated with the span text.citations(SpanCitation... citations) The citations associated with the span text.String content of the message textMethods 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, sdkFields
-
Method Details
-
value
String content of the message text
- Parameters:
value- String content of the message text- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
The citations associated with the span text.
- Parameters:
citations- The citations associated with the span text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
The citations associated with the span text.
- Parameters:
citations- The citations associated with the span text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
The citations associated with the span text.
This is a convenience method that creates an instance of theSpanCitation.Builderavoiding the need to create one manually viaSpanCitation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocitations(List<SpanCitation>).- Parameters:
citations- a consumer that will call methods onSpanCitation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aiGuardrailAssessment
The AI Guardrail assessment for the span text.
- Parameters:
aiGuardrailAssessment- The AI Guardrail assessment for the span text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aiGuardrailAssessment
default SpanTextValue.Builder aiGuardrailAssessment(Consumer<AIGuardrailAssessment.Builder> aiGuardrailAssessment) The AI Guardrail assessment for the span text.
This is a convenience method that creates an instance of theAIGuardrailAssessment.Builderavoiding the need to create one manually viaAIGuardrailAssessment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaiGuardrailAssessment(AIGuardrailAssessment).- Parameters:
aiGuardrailAssessment- a consumer that will call methods onAIGuardrailAssessment.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-