Interface KeyPhrase.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<KeyPhrase.Builder,KeyPhrase>,SdkBuilder<KeyPhrase.Builder,KeyPhrase>,SdkPojo
- Enclosing class:
- KeyPhrase
public static interface KeyPhrase.Builder extends SdkPojo, CopyableBuilder<KeyPhrase.Builder,KeyPhrase>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPhrase.BuilderbeginOffset(Integer beginOffset)The zero-based offset from the beginning of the source text to the first character in the key phrase.KeyPhrase.BuilderendOffset(Integer endOffset)The zero-based offset from the beginning of the source text to the last character in the key phrase.KeyPhrase.Builderscore(Float score)The level of confidence that Amazon Comprehend has in the accuracy of the detection.KeyPhrase.Buildertext(String text)The text of a key noun phrase.-
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
-
score
KeyPhrase.Builder score(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
- Parameters:
score- The level of confidence that Amazon Comprehend has in the accuracy of the detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
KeyPhrase.Builder text(String text)
The text of a key noun phrase.
- Parameters:
text- The text of a key noun phrase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beginOffset
KeyPhrase.Builder beginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the key phrase.
- Parameters:
beginOffset- The zero-based offset from the beginning of the source text to the first character in the key phrase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endOffset
KeyPhrase.Builder endOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the key phrase.
- Parameters:
endOffset- The zero-based offset from the beginning of the source text to the last character in the key phrase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-