Class Recipient.Builder
-
- All Implemented Interfaces:
public final class Recipient.BuilderA builder for Recipient.
-
-
Method Summary
Modifier and Type Method Description final Recipient.BuilderaccountId(String accountId)Deprecated - Use tenant_idinstead.final Recipient.BuilderaccountId(Optional<String> accountId)Alias for calling Builder.accountId with accountId.orElse(null).final Recipient.BuilderaccountId(JsonField<String> accountId)Sets Builder.accountId to an arbitrary JSON value. final Recipient.Buildercontext(MessageContext context)Context such as tenant_id to send the notification with. final Recipient.Buildercontext(Optional<MessageContext> context)Alias for calling Builder.context with context.orElse(null).final Recipient.Buildercontext(JsonField<MessageContext> context)Sets Builder.context to an arbitrary JSON value. final Recipient.Builderdata(Recipient.Data data)final Recipient.Builderdata(Optional<Recipient.Data> data)Alias for calling Builder.data with data.orElse(null).final Recipient.Builderdata(JsonField<Recipient.Data> data)Sets Builder.data to an arbitrary JSON value. final Recipient.Builderemail(String email)The user's email address. final Recipient.Builderemail(Optional<String> email)Alias for calling Builder.email with email.orElse(null).final Recipient.Builderemail(JsonField<String> email)Sets Builder.email to an arbitrary JSON value. final Recipient.Builderlocale(String locale)The user's preferred ISO 639-1 language code. final Recipient.Builderlocale(Optional<String> locale)Alias for calling Builder.locale with locale.orElse(null).final Recipient.Builderlocale(JsonField<String> locale)Sets Builder.locale to an arbitrary JSON value. final Recipient.BuilderphoneNumber(String phoneNumber)The user's phone number. final Recipient.BuilderphoneNumber(Optional<String> phoneNumber)Alias for calling Builder.phoneNumber with phoneNumber.orElse(null).final Recipient.BuilderphoneNumber(JsonField<String> phoneNumber)Sets Builder.phoneNumber to an arbitrary JSON value. final Recipient.Builderpreferences(Recipient.Preferences preferences)final Recipient.Builderpreferences(Optional<Recipient.Preferences> preferences)Alias for calling Builder.preferences with preferences.orElse(null).final Recipient.Builderpreferences(JsonField<Recipient.Preferences> preferences)Sets Builder.preferences to an arbitrary JSON value. final Recipient.BuildertenantId(String tenantId)The id of the tenant the user is associated with. final Recipient.BuildertenantId(Optional<String> tenantId)Alias for calling Builder.tenantId with tenantId.orElse(null).final Recipient.BuildertenantId(JsonField<String> tenantId)Sets Builder.tenantId to an arbitrary JSON value. final Recipient.BuilderuserId(String userId)The user's unique identifier. final Recipient.BuilderuserId(Optional<String> userId)Alias for calling Builder.userId with userId.orElse(null).final Recipient.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final Recipient.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Recipient.BuilderputAdditionalProperty(String key, JsonValue value)final Recipient.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Recipient.BuilderremoveAdditionalProperty(String key)final Recipient.BuilderremoveAllAdditionalProperties(Set<String> keys)final Recipientbuild()Returns an immutable instance of Recipient. -
-
Method Detail
-
accountId
final Recipient.Builder accountId(String accountId)
Deprecated - Use
tenant_idinstead.
-
accountId
final Recipient.Builder accountId(Optional<String> accountId)
Alias for calling Builder.accountId with
accountId.orElse(null).
-
accountId
final Recipient.Builder accountId(JsonField<String> accountId)
Sets Builder.accountId to an arbitrary JSON value.
You should usually call Builder.accountId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
context
final Recipient.Builder context(MessageContext context)
Context such as tenant_id to send the notification with.
-
context
final Recipient.Builder context(Optional<MessageContext> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final Recipient.Builder context(JsonField<MessageContext> context)
Sets Builder.context to an arbitrary JSON value.
You should usually call Builder.context with a well-typed MessageContext value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
data
final Recipient.Builder data(Recipient.Data data)
-
data
final Recipient.Builder data(Optional<Recipient.Data> data)
Alias for calling Builder.data with
data.orElse(null).
-
data
final Recipient.Builder data(JsonField<Recipient.Data> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed Data value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
email
final Recipient.Builder email(String email)
The user's email address.
-
email
final Recipient.Builder email(Optional<String> email)
Alias for calling Builder.email with
email.orElse(null).
-
email
final Recipient.Builder email(JsonField<String> email)
Sets Builder.email to an arbitrary JSON value.
You should usually call Builder.email with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
locale
final Recipient.Builder locale(String locale)
The user's preferred ISO 639-1 language code.
-
locale
final Recipient.Builder locale(Optional<String> locale)
Alias for calling Builder.locale with
locale.orElse(null).
-
locale
final Recipient.Builder locale(JsonField<String> locale)
Sets Builder.locale to an arbitrary JSON value.
You should usually call Builder.locale with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
phoneNumber
final Recipient.Builder phoneNumber(String phoneNumber)
The user's phone number.
-
phoneNumber
final Recipient.Builder phoneNumber(Optional<String> phoneNumber)
Alias for calling Builder.phoneNumber with
phoneNumber.orElse(null).
-
phoneNumber
final Recipient.Builder phoneNumber(JsonField<String> phoneNumber)
Sets Builder.phoneNumber to an arbitrary JSON value.
You should usually call Builder.phoneNumber with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
preferences
final Recipient.Builder preferences(Recipient.Preferences preferences)
-
preferences
final Recipient.Builder preferences(Optional<Recipient.Preferences> preferences)
Alias for calling Builder.preferences with
preferences.orElse(null).
-
preferences
final Recipient.Builder preferences(JsonField<Recipient.Preferences> preferences)
Sets Builder.preferences to an arbitrary JSON value.
You should usually call Builder.preferences with a well-typed Preferences value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tenantId
final Recipient.Builder tenantId(String tenantId)
The id of the tenant the user is associated with.
-
tenantId
final Recipient.Builder tenantId(Optional<String> tenantId)
Alias for calling Builder.tenantId with
tenantId.orElse(null).
-
tenantId
final Recipient.Builder tenantId(JsonField<String> tenantId)
Sets Builder.tenantId to an arbitrary JSON value.
You should usually call Builder.tenantId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final Recipient.Builder userId(String userId)
The user's unique identifier. Typically, this will match the user id of a user in your system.
-
userId
final Recipient.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final Recipient.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Recipient.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Recipient.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Recipient.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Recipient.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Recipient.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-