Package com.courier.models
Class UserRecipient.Preferences
-
- All Implemented Interfaces:
public final class UserRecipient.Preferences
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserRecipient.Preferences.BuilderA builder for Preferences.
public final classUserRecipient.Preferences.Notificationspublic final classUserRecipient.Preferences.Categories
-
Method Summary
Modifier and Type Method Description final UserRecipient.Preferences.Notificationsnotifications()final Optional<UserRecipient.Preferences.Categories>categories()final Optional<String>templateId()final JsonField<UserRecipient.Preferences.Notifications>_notifications()Returns the raw JSON value of notifications. final JsonField<UserRecipient.Preferences.Categories>_categories()Returns the raw JSON value of categories. final JsonField<String>_templateId()Returns the raw JSON value of templateId. final Map<String, JsonValue>_additionalProperties()final UserRecipient.Preferences.BuildertoBuilder()final UserRecipient.Preferencesvalidate()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.Preferences.Builderbuilder()Returns a mutable builder for constructing an instance of Preferences. -
-
Method Detail
-
notifications
final UserRecipient.Preferences.Notifications notifications()
-
categories
final Optional<UserRecipient.Preferences.Categories> categories()
-
templateId
final Optional<String> templateId()
-
_notifications
final JsonField<UserRecipient.Preferences.Notifications> _notifications()
Returns the raw JSON value of notifications.
Unlike notifications, this method doesn't throw if the JSON field has an unexpected type.
-
_categories
final JsonField<UserRecipient.Preferences.Categories> _categories()
Returns the raw JSON value of categories.
Unlike categories, this method doesn't throw if the JSON field has an unexpected type.
-
_templateId
final JsonField<String> _templateId()
Returns the raw JSON value of templateId.
Unlike templateId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserRecipient.Preferences.Builder toBuilder()
-
validate
final UserRecipient.Preferences 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.Preferences.Builder builder()
Returns a mutable builder for constructing an instance of Preferences.
The following fields are required:
.notifications()
-
-
-
-