@Generated(value="software.amazon.awssdk:codegen") public final class Voice extends Object implements StructuredPojo, ToCopyableBuilder<Voice.Builder,Voice>
Description of the voice.
Modifier and Type | Class and Description |
---|---|
static interface |
Voice.Builder |
Modifier and Type | Method and Description |
---|---|
static Voice.Builder |
builder() |
boolean |
equals(Object obj) |
Gender |
gender()
Gender of the voice.
|
String |
genderAsString()
Gender of the voice.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
VoiceId |
id()
Amazon Polly assigned voice ID.
|
String |
idAsString()
Amazon Polly assigned voice ID.
|
LanguageCode |
languageCode()
Language code of the voice.
|
String |
languageCodeAsString()
Language code of the voice.
|
String |
languageName()
Human readable name of the language in English.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
Name of the voice (for example, Salli, Kendra, etc.).
|
static Class<? extends Voice.Builder> |
serializableBuilderClass() |
Voice.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Gender gender()
Gender of the voice.
If the service returns an enum value that is not available in the current SDK version, gender
will
return Gender.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
genderAsString()
.
Gender
public String genderAsString()
Gender of the voice.
If the service returns an enum value that is not available in the current SDK version, gender
will
return Gender.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
genderAsString()
.
Gender
public VoiceId id()
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
If the service returns an enum value that is not available in the current SDK version, id
will return
VoiceId.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
idAsString()
.
SynthesizeSpeech
operation.VoiceId
public String idAsString()
Amazon Polly assigned voice ID. This is the ID that you specify when calling the SynthesizeSpeech
operation.
If the service returns an enum value that is not available in the current SDK version, id
will return
VoiceId.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
idAsString()
.
SynthesizeSpeech
operation.VoiceId
public LanguageCode languageCode()
Language code of the voice.
If the service returns an enum value that is not available in the current SDK version, languageCode
will
return LanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
languageCodeAsString()
.
LanguageCode
public String languageCodeAsString()
Language code of the voice.
If the service returns an enum value that is not available in the current SDK version, languageCode
will
return LanguageCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
languageCodeAsString()
.
LanguageCode
public String languageName()
Human readable name of the language in English.
public String name()
Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.
public Voice.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Voice.Builder,Voice>
public static Voice.Builder builder()
public static Class<? extends Voice.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.