Class UserRecipient
-
- All Implemented Interfaces:
public final class UserRecipient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserRecipient.BuilderA builder for UserRecipient.
public final classUserRecipient.Datapublic final classUserRecipient.Preferences
-
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<UserRecipient.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<UserRecipient.Preferences>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<UserRecipient.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<UserRecipient.Preferences>_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 UserRecipient.BuildertoBuilder()final UserRecipientvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserRecipient.Builderbuilder()Returns a mutable builder for constructing an instance of UserRecipient. -
-
Method Detail
-
context
final Optional<MessageContext> context()
Context such as tenant_id to send the notification with.
-
data
final Optional<UserRecipient.Data> data()
-
phoneNumber
final Optional<String> phoneNumber()
The user's phone number.
-
preferences
final Optional<UserRecipient.Preferences> 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<UserRecipient.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<UserRecipient.Preferences> _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 UserRecipient.Builder toBuilder()
-
validate
final UserRecipient validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static UserRecipient.Builder builder()
Returns a mutable builder for constructing an instance of UserRecipient.
-
-
-
-