@Generated(value="software.amazon.awssdk:codegen") public final class SendVoiceMessageRequest extends PinpointSmsVoiceV2Request implements ToCopyableBuilder<SendVoiceMessageRequest.Builder,SendVoiceMessageRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SendVoiceMessageRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SendVoiceMessageRequest.Builder |
builder() |
String |
configurationSetName()
The name of the configuration set to use.
|
Map<String,String> |
context()
You can specify custom data in this field.
|
String |
destinationPhoneNumber()
The destination phone number in E.164 format.
|
Boolean |
dryRun()
When set to true, the message is checked and validated, but isn't sent to the end recipient.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasContext()
For responses, this returns true if the service returned a value for the Context property.
|
int |
hashCode() |
String |
maxPricePerMinute()
The maximum amount to spend per voice message, in US dollars.
|
String |
messageBody()
The text to convert to a voice message.
|
VoiceMessageBodyTextType |
messageBodyTextType()
Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).
|
String |
messageBodyTextTypeAsString()
Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).
|
String |
originationIdentity()
The origination identity to use for the voice call.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SendVoiceMessageRequest.Builder> |
serializableBuilderClass() |
Integer |
timeToLive()
How long the voice message is valid for.
|
SendVoiceMessageRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VoiceId |
voiceId()
The voice for the Amazon Polly service to
use.
|
String |
voiceIdAsString()
The voice for the Amazon Polly service to
use.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String destinationPhoneNumber()
The destination phone number in E.164 format.
public final String originationIdentity()
The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.
public final String messageBody()
The text to convert to a voice message.
public final VoiceMessageBodyTextType messageBodyTextType()
Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).
TEXT: This is the default value. When used the maximum character limit is 3000.
SSML: When used the maximum character limit is 6000 including SSML tagging.
If the service returns an enum value that is not available in the current SDK version,
messageBodyTextType will return VoiceMessageBodyTextType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from messageBodyTextTypeAsString().
TEXT: This is the default value. When used the maximum character limit is 3000.
SSML: When used the maximum character limit is 6000 including SSML tagging.
VoiceMessageBodyTextTypepublic final String messageBodyTextTypeAsString()
Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).
TEXT: This is the default value. When used the maximum character limit is 3000.
SSML: When used the maximum character limit is 6000 including SSML tagging.
If the service returns an enum value that is not available in the current SDK version,
messageBodyTextType will return VoiceMessageBodyTextType.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from messageBodyTextTypeAsString().
TEXT: This is the default value. When used the maximum character limit is 3000.
SSML: When used the maximum character limit is 6000 including SSML tagging.
VoiceMessageBodyTextTypepublic final VoiceId voiceId()
The voice for the Amazon Polly service to use. By default this is set to "MATTHEW".
If the service returns an enum value that is not available in the current SDK version, voiceId will
return VoiceId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
voiceIdAsString().
VoiceIdpublic final String voiceIdAsString()
The voice for the Amazon Polly service to use. By default this is set to "MATTHEW".
If the service returns an enum value that is not available in the current SDK version, voiceId will
return VoiceId.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
voiceIdAsString().
VoiceIdpublic final String configurationSetName()
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
public final String maxPricePerMinute()
The maximum amount to spend per voice message, in US dollars.
public final Integer timeToLive()
How long the voice message is valid for. By default this is 72 hours.
public final boolean hasContext()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> context()
You can specify custom data in this field. If you do, that data is logged to the event destination.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasContext() method.
public final Boolean dryRun()
When set to true, the message is checked and validated, but isn't sent to the end recipient.
public SendVoiceMessageRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SendVoiceMessageRequest.Builder,SendVoiceMessageRequest>toBuilder in class PinpointSmsVoiceV2Requestpublic static SendVoiceMessageRequest.Builder builder()
public static Class<? extends SendVoiceMessageRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.