Interface TextMatchItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TextMatchItem.Builder,
,TextMatchItem> SdkBuilder<TextMatchItem.Builder,
,TextMatchItem> SdkPojo
- Enclosing class:
TextMatchItem
@Mutable
@NotThreadSafe
public static interface TextMatchItem.Builder
extends SdkPojo, CopyableBuilder<TextMatchItem.Builder,TextMatchItem>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the attribute.matchOffsets
(Collection<MatchOffset> matchOffsets) List of offsets indicating matching terms in the TextMatchItem text.matchOffsets
(Consumer<MatchOffset.Builder>... matchOffsets) List of offsets indicating matching terms in the TextMatchItem text.matchOffsets
(MatchOffset... matchOffsets) List of offsets indicating matching terms in the TextMatchItem text.Snippet of attribute text containing highlighted content.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, sdkFieldNameToField, sdkFields
-
Method Details
-
attribute
The name of the attribute.
- Parameters:
attribute
- The name of the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchOffsets
List of offsets indicating matching terms in the TextMatchItem text.
- Parameters:
matchOffsets
- List of offsets indicating matching terms in the TextMatchItem text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchOffsets
List of offsets indicating matching terms in the TextMatchItem text.
- Parameters:
matchOffsets
- List of offsets indicating matching terms in the TextMatchItem text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
matchOffsets
List of offsets indicating matching terms in the TextMatchItem text.
This is a convenience method that creates an instance of theMatchOffset.Builder
avoiding the need to create one manually viaMatchOffset.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomatchOffsets(List<MatchOffset>)
.- Parameters:
matchOffsets
- a consumer that will call methods onMatchOffset.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
Snippet of attribute text containing highlighted content.
- Parameters:
text
- Snippet of attribute text containing highlighted content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-