Class Recipient
-
- All Implemented Interfaces:
public final class Recipient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRecipient.BuilderA builder for Recipient.
public final classRecipient.Data
-
Method Summary
Modifier and Type Method Description final Optional<String>accountId()Deprecated - Use tenant_idinstead.final Optional<MessageContext>context()Context such as tenant_id to send the notification with. final Optional<Recipient.Data>data()final Optional<String>email()The user's email address. final Optional<String>listId()The id of the list to send the message to. final Optional<String>locale()The user's preferred ISO 639-1 language code. final Optional<String>phoneNumber()The user's phone number. final Optional<ProfilePreferences>preferences()final Optional<String>tenantId()The id of the tenant the user is associated with. final Optional<String>userId()The user's unique identifier. final JsonField<String>_accountId()Returns the raw JSON value of accountId. final JsonField<MessageContext>_context()Returns the raw JSON value of context. final JsonField<Recipient.Data>_data()Returns the raw JSON value of data. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<String>_listId()Returns the raw JSON value of listId. final JsonField<String>_locale()Returns the raw JSON value of locale. final JsonField<String>_phoneNumber()Returns the raw JSON value of phoneNumber. final JsonField<ProfilePreferences>_preferences()Returns the raw JSON value of preferences. final JsonField<String>_tenantId()Returns the raw JSON value of tenantId. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final Recipient.BuildertoBuilder()final Recipientvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Recipient.Builderbuilder()Returns a mutable builder for constructing an instance of Recipient. -
-
Method Detail
-
context
final Optional<MessageContext> context()
Context such as tenant_id to send the notification with.
-
data
final Optional<Recipient.Data> data()
-
phoneNumber
final Optional<String> phoneNumber()
The user's phone number.
-
preferences
final Optional<ProfilePreferences> preferences()
-
userId
final Optional<String> userId()
The user's unique identifier. Typically, this will match the user id of a user in your system.
-
_accountId
final JsonField<String> _accountId()
Returns the raw JSON value of accountId.
Unlike accountId, this method doesn't throw if the JSON field has an unexpected type.
-
_context
final JsonField<MessageContext> _context()
Returns the raw JSON value of context.
Unlike context, this method doesn't throw if the JSON field has an unexpected type.
-
_data
final JsonField<Recipient.Data> _data()
Returns the raw JSON value of data.
Unlike data, this method doesn't throw if the JSON field has an unexpected type.
-
_email
final JsonField<String> _email()
Returns the raw JSON value of email.
Unlike email, this method doesn't throw if the JSON field has an unexpected type.
-
_listId
final JsonField<String> _listId()
Returns the raw JSON value of listId.
Unlike listId, this method doesn't throw if the JSON field has an unexpected type.
-
_locale
final JsonField<String> _locale()
Returns the raw JSON value of locale.
Unlike locale, this method doesn't throw if the JSON field has an unexpected type.
-
_phoneNumber
final JsonField<String> _phoneNumber()
Returns the raw JSON value of phoneNumber.
Unlike phoneNumber, this method doesn't throw if the JSON field has an unexpected type.
-
_preferences
final JsonField<ProfilePreferences> _preferences()
Returns the raw JSON value of preferences.
Unlike preferences, this method doesn't throw if the JSON field has an unexpected type.
-
_tenantId
final JsonField<String> _tenantId()
Returns the raw JSON value of tenantId.
Unlike tenantId, this method doesn't throw if the JSON field has an unexpected type.
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Recipient.Builder toBuilder()
-
builder
final static Recipient.Builder builder()
Returns a mutable builder for constructing an instance of Recipient.
-
-
-
-