Interface AdditionalResultAttributeValue.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AdditionalResultAttributeValue.Builder,AdditionalResultAttributeValue>,SdkBuilder<AdditionalResultAttributeValue.Builder,AdditionalResultAttributeValue>,SdkPojo
- Enclosing class:
- AdditionalResultAttributeValue
public static interface AdditionalResultAttributeValue.Builder extends SdkPojo, CopyableBuilder<AdditionalResultAttributeValue.Builder,AdditionalResultAttributeValue>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AdditionalResultAttributeValue.BuildertextWithHighlightsValue(Consumer<TextWithHighlights.Builder> textWithHighlightsValue)The text associated with the attribute and information about the highlight to apply to the text.AdditionalResultAttributeValue.BuildertextWithHighlightsValue(TextWithHighlights textWithHighlightsValue)The text associated with the attribute and information about the highlight to apply to the text.-
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
-
textWithHighlightsValue
AdditionalResultAttributeValue.Builder textWithHighlightsValue(TextWithHighlights textWithHighlightsValue)
The text associated with the attribute and information about the highlight to apply to the text.
- Parameters:
textWithHighlightsValue- The text associated with the attribute and information about the highlight to apply to the text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
textWithHighlightsValue
default AdditionalResultAttributeValue.Builder textWithHighlightsValue(Consumer<TextWithHighlights.Builder> textWithHighlightsValue)
The text associated with the attribute and information about the highlight to apply to the text.
This is a convenience method that creates an instance of theTextWithHighlights.Builderavoiding the need to create one manually viaTextWithHighlights.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totextWithHighlightsValue(TextWithHighlights).- Parameters:
textWithHighlightsValue- a consumer that will call methods onTextWithHighlights.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
textWithHighlightsValue(TextWithHighlights)
-
-