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
Modifier and TypeMethodDescriptiontextWithHighlightsValue
(Consumer<TextWithHighlights.Builder> textWithHighlightsValue) The text associated with the attribute and information about the highlight to apply to the text.textWithHighlightsValue
(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 Details
-
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.Builder
avoiding the need to create one manually viaTextWithHighlights.builder()
.When the
Consumer
completes,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:
-