Class VoiceSettings
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.VoiceSettings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VoiceSettings.Builder,VoiceSettings>
@Generated("software.amazon.awssdk:codegen") public final class VoiceSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VoiceSettings.Builder,VoiceSettings>
Defines settings for using an Amazon Polly voice to communicate with a user.
Valid values include:
-
standard -
neural -
long-form -
generative
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVoiceSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VoiceSettings.Builderbuilder()VoiceEngineengine()Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user.StringengineAsString()Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends VoiceSettings.Builder>serializableBuilderClass()VoiceSettings.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvoiceId()The identifier of the Amazon Polly voice to use.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
voiceId
public final String voiceId()
The identifier of the Amazon Polly voice to use.
- Returns:
- The identifier of the Amazon Polly voice to use.
-
engine
public final VoiceEngine engine()
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the
engineparameter of theSynthesizeSpeechoperation in the Amazon Polly developer guide.If you do not specify a value, the default is
standard.If the service returns an enum value that is not available in the current SDK version,
enginewill returnVoiceEngine.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromengineAsString().- Returns:
- Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user.
For more information, see the
engineparameter of theSynthesizeSpeechoperation in the Amazon Polly developer guide.If you do not specify a value, the default is
standard. - See Also:
VoiceEngine
-
engineAsString
public final String engineAsString()
Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user. For more information, see the
engineparameter of theSynthesizeSpeechoperation in the Amazon Polly developer guide.If you do not specify a value, the default is
standard.If the service returns an enum value that is not available in the current SDK version,
enginewill returnVoiceEngine.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromengineAsString().- Returns:
- Indicates the type of Amazon Polly voice that Amazon Lex should use for voice interaction with the user.
For more information, see the
engineparameter of theSynthesizeSpeechoperation in the Amazon Polly developer guide.If you do not specify a value, the default is
standard. - See Also:
VoiceEngine
-
toBuilder
public VoiceSettings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<VoiceSettings.Builder,VoiceSettings>
-
builder
public static VoiceSettings.Builder builder()
-
serializableBuilderClass
public static Class<? extends VoiceSettings.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-