Class PreferenceSet
-
- All Implemented Interfaces:
public final class PreferenceSetA preference set represents a specific set of notification preferences for a recipient. A recipient can have multiple preference sets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPreferenceSet.BuilderA builder for PreferenceSet.
public final classPreferenceSet.CategoriesAn object where the key is the category and the values are the preference settings for that category.
public final classPreferenceSet.WorkflowsAn object where the key is the workflow key and the values are the preference settings for that workflow.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the preference set. final Optional<PreferenceSet.Categories>categories()An object where the key is the category and the values are the preference settings for that category. final Optional<PreferenceSetChannelTypes>channelTypes()Channel type preferences. final Optional<PreferenceSet.Workflows>workflows()An object where the key is the workflow key and the values are the preference settings for that workflow. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<PreferenceSet.Categories>_categories()Returns the raw JSON value of categories. final JsonField<PreferenceSetChannelTypes>_channelTypes()Returns the raw JSON value of channelTypes. final JsonField<PreferenceSet.Workflows>_workflows()Returns the raw JSON value of workflows. final Map<String, JsonValue>_additionalProperties()final PreferenceSet.BuildertoBuilder()final PreferenceSetvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PreferenceSet.Builderbuilder()Returns a mutable builder for constructing an instance of PreferenceSet. -
-
Method Detail
-
categories
final Optional<PreferenceSet.Categories> categories()
An object where the key is the category and the values are the preference settings for that category.
-
channelTypes
final Optional<PreferenceSetChannelTypes> channelTypes()
Channel type preferences.
-
workflows
final Optional<PreferenceSet.Workflows> workflows()
An object where the key is the workflow key and the values are the preference settings for that workflow.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_categories
final JsonField<PreferenceSet.Categories> _categories()
Returns the raw JSON value of categories.
Unlike categories, this method doesn't throw if the JSON field has an unexpected type.
-
_channelTypes
final JsonField<PreferenceSetChannelTypes> _channelTypes()
Returns the raw JSON value of channelTypes.
Unlike channelTypes, this method doesn't throw if the JSON field has an unexpected type.
-
_workflows
final JsonField<PreferenceSet.Workflows> _workflows()
Returns the raw JSON value of workflows.
Unlike workflows, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PreferenceSet.Builder toBuilder()
-
validate
final PreferenceSet validate()
-
builder
final static PreferenceSet.Builder builder()
Returns a mutable builder for constructing an instance of PreferenceSet.
The following fields are required:
.id()
-
-
-
-