Class TopicPreference.Builder
-
- All Implemented Interfaces:
public final class TopicPreference.BuilderA builder for TopicPreference.
-
-
Method Summary
-
-
Method Detail
-
defaultStatus
final TopicPreference.Builder defaultStatus(PreferenceStatus defaultStatus)
-
defaultStatus
final TopicPreference.Builder defaultStatus(JsonField<PreferenceStatus> defaultStatus)
Sets Builder.defaultStatus to an arbitrary JSON value.
You should usually call Builder.defaultStatus with a well-typed PreferenceStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final TopicPreference.Builder status(PreferenceStatus status)
-
status
final TopicPreference.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.
-
topicId
final TopicPreference.Builder topicId(String topicId)
-
topicId
final TopicPreference.Builder topicId(JsonField<String> topicId)
Sets Builder.topicId to an arbitrary JSON value.
You should usually call Builder.topicId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
topicName
final TopicPreference.Builder topicName(String topicName)
-
topicName
final TopicPreference.Builder topicName(JsonField<String> topicName)
Sets Builder.topicName to an arbitrary JSON value.
You should usually call Builder.topicName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
customRouting
final TopicPreference.Builder customRouting(List<ChannelClassification> customRouting)
The Channels a user has chosen to receive notifications through for this topic
-
customRouting
final TopicPreference.Builder customRouting(Optional<List<ChannelClassification>> customRouting)
Alias for calling Builder.customRouting with
customRouting.orElse(null).
-
customRouting
final TopicPreference.Builder customRouting(JsonField<List<ChannelClassification>> customRouting)
Sets Builder.customRouting to an arbitrary JSON value.
You should usually call Builder.customRouting with a well-typed
List<ChannelClassification>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addCustomRouting
final TopicPreference.Builder addCustomRouting(ChannelClassification customRouting)
Adds a single ChannelClassification to Builder.customRouting.
-
hasCustomRouting
final TopicPreference.Builder hasCustomRouting(Boolean hasCustomRouting)
-
hasCustomRouting
final TopicPreference.Builder hasCustomRouting(Boolean hasCustomRouting)
Alias for Builder.hasCustomRouting.
This unboxed primitive overload exists for backwards compatibility.
-
hasCustomRouting
final TopicPreference.Builder hasCustomRouting(Optional<Boolean> hasCustomRouting)
Alias for calling Builder.hasCustomRouting with
hasCustomRouting.orElse(null).
-
hasCustomRouting
final TopicPreference.Builder hasCustomRouting(JsonField<Boolean> hasCustomRouting)
Sets Builder.hasCustomRouting to an arbitrary JSON value.
You should usually call Builder.hasCustomRouting with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TopicPreference.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TopicPreference.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TopicPreference.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TopicPreference.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TopicPreference.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TopicPreference build()
Returns an immutable instance of TopicPreference.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.defaultStatus() .status() .topicId() .topicName()
-
-
-
-