Interface GetLexiconResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetLexiconResponse.Builder,
,GetLexiconResponse> PollyResponse.Builder
,SdkBuilder<GetLexiconResponse.Builder,
,GetLexiconResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetLexiconResponse
public static interface GetLexiconResponse.Builder
extends PollyResponse.Builder, SdkPojo, CopyableBuilder<GetLexiconResponse.Builder,GetLexiconResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetLexiconResponse.Builder
lexicon
(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.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.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
copy
Methods inherited from interface software.amazon.awssdk.services.polly.model.PollyResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaLexicon.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaLexiconAttributes.builder()
.When the
Consumer
completes,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:
-