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