Class TopicPreferenceUpdate.Builder
- java.lang.Object
-
- com.courier.api.resources.users.preferences.types.TopicPreferenceUpdate.Builder
-
- All Implemented Interfaces:
TopicPreferenceUpdate._FinalStage,TopicPreferenceUpdate.StatusStage
- Enclosing class:
- TopicPreferenceUpdate
public static final class TopicPreferenceUpdate.Builder extends java.lang.Object implements TopicPreferenceUpdate.StatusStage, TopicPreferenceUpdate._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicPreferenceUpdatebuild()TopicPreferenceUpdate._FinalStagecustomRouting(java.util.List<ChannelClassification> customRouting)The Channels a user has chosen to receive notifications through for this topicTopicPreferenceUpdate._FinalStagecustomRouting(java.util.Optional<java.util.List<ChannelClassification>> customRouting)TopicPreferenceUpdate.Builderfrom(TopicPreferenceUpdate other)TopicPreferenceUpdate._FinalStagehasCustomRouting(java.lang.Boolean hasCustomRouting)TopicPreferenceUpdate._FinalStagehasCustomRouting(java.util.Optional<java.lang.Boolean> hasCustomRouting)TopicPreferenceUpdate._FinalStagestatus(PreferenceStatus status)
-
-
-
Method Detail
-
from
public TopicPreferenceUpdate.Builder from(TopicPreferenceUpdate other)
- Specified by:
fromin interfaceTopicPreferenceUpdate.StatusStage
-
status
public TopicPreferenceUpdate._FinalStage status(PreferenceStatus status)
- Specified by:
statusin interfaceTopicPreferenceUpdate.StatusStage
-
hasCustomRouting
public TopicPreferenceUpdate._FinalStage hasCustomRouting(java.lang.Boolean hasCustomRouting)
- Specified by:
hasCustomRoutingin interfaceTopicPreferenceUpdate._FinalStage
-
hasCustomRouting
public TopicPreferenceUpdate._FinalStage hasCustomRouting(java.util.Optional<java.lang.Boolean> hasCustomRouting)
- Specified by:
hasCustomRoutingin interfaceTopicPreferenceUpdate._FinalStage
-
customRouting
public TopicPreferenceUpdate._FinalStage customRouting(java.util.List<ChannelClassification> customRouting)
The Channels a user has chosen to receive notifications through for this topic
- Specified by:
customRoutingin interfaceTopicPreferenceUpdate._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customRouting
public TopicPreferenceUpdate._FinalStage customRouting(java.util.Optional<java.util.List<ChannelClassification>> customRouting)
- Specified by:
customRoutingin interfaceTopicPreferenceUpdate._FinalStage
-
build
public TopicPreferenceUpdate build()
- Specified by:
buildin interfaceTopicPreferenceUpdate._FinalStage
-
-