Package com.courier.models
Class Preference
-
- All Implemented Interfaces:
public final class Preference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPreference.BuilderA builder for Preference.
public final classPreference.Source
-
Method Summary
Modifier and Type Method Description final PreferenceStatusstatus()final Optional<List<ChannelPreference>>channelPreferences()final Optional<List<Rule>>rules()final Optional<Preference.Source>source()final JsonField<PreferenceStatus>_status()Returns the raw JSON value of status. final JsonField<List<ChannelPreference>>_channelPreferences()Returns the raw JSON value of channelPreferences. final JsonField<List<Rule>>_rules()Returns the raw JSON value of rules. final JsonField<Preference.Source>_source()Returns the raw JSON value of source. final Map<String, JsonValue>_additionalProperties()final Preference.BuildertoBuilder()final Preferencevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Preference.Builderbuilder()Returns a mutable builder for constructing an instance of Preference. -
-
Method Detail
-
status
final PreferenceStatus status()
-
channelPreferences
final Optional<List<ChannelPreference>> channelPreferences()
-
source
final Optional<Preference.Source> source()
-
_status
final JsonField<PreferenceStatus> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_channelPreferences
final JsonField<List<ChannelPreference>> _channelPreferences()
Returns the raw JSON value of channelPreferences.
Unlike channelPreferences, this method doesn't throw if the JSON field has an unexpected type.
-
_rules
final JsonField<List<Rule>> _rules()
Returns the raw JSON value of rules.
Unlike rules, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<Preference.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Preference.Builder toBuilder()
-
validate
final Preference validate()
-
builder
final static Preference.Builder builder()
Returns a mutable builder for constructing an instance of Preference.
The following fields are required:
.status()
-
-
-
-