Class PreferenceSet.Builder
-
- All Implemented Interfaces:
public final class PreferenceSet.BuilderA builder for PreferenceSet.
-
-
Method Summary
-
-
Method Detail
-
id
final PreferenceSet.Builder id(String id)
Unique identifier for the preference set.
-
id
final PreferenceSet.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
categories
final PreferenceSet.Builder categories(PreferenceSet.Categories categories)
An object where the key is the category and the values are the preference settings for that category.
-
categories
final PreferenceSet.Builder categories(Optional<PreferenceSet.Categories> categories)
Alias for calling Builder.categories with
categories.orElse(null).
-
categories
final PreferenceSet.Builder categories(JsonField<PreferenceSet.Categories> categories)
Sets Builder.categories to an arbitrary JSON value.
You should usually call Builder.categories with a well-typed Categories value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
channelTypes
final PreferenceSet.Builder channelTypes(PreferenceSetChannelTypes channelTypes)
Channel type preferences.
-
channelTypes
final PreferenceSet.Builder channelTypes(Optional<PreferenceSetChannelTypes> channelTypes)
Alias for calling Builder.channelTypes with
channelTypes.orElse(null).
-
channelTypes
final PreferenceSet.Builder channelTypes(JsonField<PreferenceSetChannelTypes> channelTypes)
Sets Builder.channelTypes to an arbitrary JSON value.
You should usually call Builder.channelTypes with a well-typed PreferenceSetChannelTypes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workflows
final PreferenceSet.Builder workflows(PreferenceSet.Workflows workflows)
An object where the key is the workflow key and the values are the preference settings for that workflow.
-
workflows
final PreferenceSet.Builder workflows(Optional<PreferenceSet.Workflows> workflows)
Alias for calling Builder.workflows with
workflows.orElse(null).
-
workflows
final PreferenceSet.Builder workflows(JsonField<PreferenceSet.Workflows> workflows)
Sets Builder.workflows to an arbitrary JSON value.
You should usually call Builder.workflows with a well-typed Workflows value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PreferenceSet.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PreferenceSet.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PreferenceSet.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PreferenceSet.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PreferenceSet.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PreferenceSet build()
Returns an immutable instance of PreferenceSet.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-