Class TransactionalSendParams.Body
-
- All Implemented Interfaces:
public final class TransactionalSendParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TransactionalSendParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final String
templateId()
The template identifier. final String
to()
The recipient's phone number. final Optional<String>
callbackUrl()
The callback URL. final Optional<String>
correlationId()
A unique, user-defined identifier that will be included in webhook events. final Optional<String>
expiresAt()
The message expiration date. final Optional<String>
from()
The Sender ID. final Optional<String>
locale()
A BCP-47 formatted locale string with the language the text message will be sent to. final Optional<TransactionalSendParams.Variables>
variables()
The variables to be replaced in the template. final JsonField<String>
_templateId()
The template identifier. final JsonField<String>
_to()
The recipient's phone number. final JsonField<String>
_callbackUrl()
The callback URL. final JsonField<String>
_correlationId()
A unique, user-defined identifier that will be included in webhook events. final JsonField<String>
_expiresAt()
The message expiration date. final JsonField<String>
_from()
The Sender ID. final JsonField<String>
_locale()
A BCP-47 formatted locale string with the language the text message will be sent to. final JsonField<TransactionalSendParams.Variables>
_variables()
The variables to be replaced in the template. final Map<String, JsonValue>
_additionalProperties()
final TransactionalSendParams.Body
validate()
final TransactionalSendParams.Body.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TransactionalSendParams.Body.Builder
builder()
Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
templateId
final String templateId()
The template identifier.
-
callbackUrl
final Optional<String> callbackUrl()
The callback URL.
-
correlationId
final Optional<String> correlationId()
A unique, user-defined identifier that will be included in webhook events.
-
locale
final Optional<String> locale()
A BCP-47 formatted locale string with the language the text message will be sent to. If there's no locale set, the language will be determined by the country code of the phone number. If the language specified doesn't exist, the default set on the template will be used.
-
variables
final Optional<TransactionalSendParams.Variables> variables()
The variables to be replaced in the template.
-
_templateId
final JsonField<String> _templateId()
The template identifier.
-
_callbackUrl
final JsonField<String> _callbackUrl()
The callback URL.
-
_correlationId
final JsonField<String> _correlationId()
A unique, user-defined identifier that will be included in webhook events.
-
_expiresAt
final JsonField<String> _expiresAt()
The message expiration date.
-
_locale
final JsonField<String> _locale()
A BCP-47 formatted locale string with the language the text message will be sent to. If there's no locale set, the language will be determined by the country code of the phone number. If the language specified doesn't exist, the default set on the template will be used.
-
_variables
final JsonField<TransactionalSendParams.Variables> _variables()
The variables to be replaced in the template.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final TransactionalSendParams.Body validate()
-
toBuilder
final TransactionalSendParams.Body.Builder toBuilder()
-
builder
final static TransactionalSendParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.templateId() .to()
-
-
-
-