Interface GetLexiconResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetLexiconResponse.Builder,,GetLexiconResponse> PollyResponse.Builder,SdkBuilder<GetLexiconResponse.Builder,,GetLexiconResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetLexiconResponse
@Mutable
@NotThreadSafe
public static interface GetLexiconResponse.Builder
extends PollyResponse.Builder, SdkPojo, CopyableBuilder<GetLexiconResponse.Builder,GetLexiconResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetLexiconResponse.Builderlexicon(Consumer<Lexicon.Builder> lexicon) Lexicon object that provides name and the string content of the lexicon.Lexicon object that provides name and the string content of the lexicon.default GetLexiconResponse.BuilderlexiconAttributes(Consumer<LexiconAttributes.Builder> lexiconAttributes) Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.lexiconAttributes(LexiconAttributes lexiconAttributes) Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.polly.model.PollyResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
lexicon
Lexicon object that provides name and the string content of the lexicon.
- Parameters:
lexicon- Lexicon object that provides name and the string content of the lexicon.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lexicon
Lexicon object that provides name and the string content of the lexicon.
This is a convenience method that creates an instance of theLexicon.Builderavoiding the need to create one manually viaLexicon.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolexicon(Lexicon).- Parameters:
lexicon- a consumer that will call methods onLexicon.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lexiconAttributes
Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.
- Parameters:
lexiconAttributes- Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lexiconAttributes
default GetLexiconResponse.Builder lexiconAttributes(Consumer<LexiconAttributes.Builder> lexiconAttributes) Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.
This is a convenience method that creates an instance of theLexiconAttributes.Builderavoiding the need to create one manually viaLexiconAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolexiconAttributes(LexiconAttributes).- Parameters:
lexiconAttributes- a consumer that will call methods onLexiconAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-