Class Preference.Builder
-
- All Implemented Interfaces:
public final class Preference.BuilderA builder for Preference.
-
-
Method Summary
-
-
Method Detail
-
status
final Preference.Builder status(PreferenceStatus status)
-
status
final Preference.Builder status(JsonField<PreferenceStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed PreferenceStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
channelPreferences
final Preference.Builder channelPreferences(List<ChannelPreference> channelPreferences)
-
channelPreferences
final Preference.Builder channelPreferences(Optional<List<ChannelPreference>> channelPreferences)
Alias for calling Builder.channelPreferences with
channelPreferences.orElse(null).
-
channelPreferences
final Preference.Builder channelPreferences(JsonField<List<ChannelPreference>> channelPreferences)
Sets Builder.channelPreferences to an arbitrary JSON value.
You should usually call Builder.channelPreferences with a well-typed
List<ChannelPreference>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addChannelPreference
final Preference.Builder addChannelPreference(ChannelPreference channelPreference)
Adds a single ChannelPreference to channelPreferences.
-
rules
final Preference.Builder rules(List<Rule> rules)
-
rules
final Preference.Builder rules(Optional<List<Rule>> rules)
Alias for calling Builder.rules with
rules.orElse(null).
-
rules
final Preference.Builder rules(JsonField<List<Rule>> rules)
Sets Builder.rules to an arbitrary JSON value.
You should usually call Builder.rules with a well-typed
List<Rule>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addRule
final Preference.Builder addRule(Rule rule)
-
source
final Preference.Builder source(Preference.Source source)
-
source
final Preference.Builder source(Optional<Preference.Source> source)
Alias for calling Builder.source with
source.orElse(null).
-
source
final Preference.Builder source(JsonField<Preference.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Preference.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Preference.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Preference.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Preference.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Preference.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Preference build()
Returns an immutable instance of Preference.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.status()
-
-
-
-