Interface Highlight.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Highlight.Builder,
,Highlight> SdkBuilder<Highlight.Builder,
,Highlight> SdkPojo
- Enclosing class:
Highlight
public static interface Highlight.Builder
extends SdkPojo, CopyableBuilder<Highlight.Builder,Highlight>
-
Method Summary
Modifier and TypeMethodDescriptionbeginOffset
(Integer beginOffset) The zero-based location in the response string where the highlight starts.The zero-based location in the response string where the highlight ends.Indicates whether the response is the best response.The highlight type.type
(HighlightType type) The highlight type.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
-
beginOffset
The zero-based location in the response string where the highlight starts.
- Parameters:
beginOffset
- The zero-based location in the response string where the highlight starts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endOffset
The zero-based location in the response string where the highlight ends.
- Parameters:
endOffset
- The zero-based location in the response string where the highlight ends.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topAnswer
Indicates whether the response is the best response. True if this is the best response; otherwise, false.
- Parameters:
topAnswer
- Indicates whether the response is the best response. True if this is the best response; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The highlight type.
- Parameters:
type
- The highlight type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The highlight type.
- Parameters:
type
- The highlight type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-