Class TopicPreference.Builder
- java.lang.Object
-
- com.courier.api.resources.users.preferences.types.TopicPreference.Builder
-
- All Implemented Interfaces:
TopicPreference._FinalStage,TopicPreference.DefaultStatusStage,TopicPreference.StatusStage,TopicPreference.TopicIdStage,TopicPreference.TopicNameStage
- Enclosing class:
- TopicPreference
public static final class TopicPreference.Builder extends java.lang.Object implements TopicPreference.DefaultStatusStage, TopicPreference.StatusStage, TopicPreference.TopicIdStage, TopicPreference.TopicNameStage, TopicPreference._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicPreferencebuild()TopicPreference._FinalStagecustomRouting(java.util.List<ChannelClassification> customRouting)The Channels a user has chosen to receive notifications through for this topicTopicPreference._FinalStagecustomRouting(java.util.Optional<java.util.List<ChannelClassification>> customRouting)TopicPreference.StatusStagedefaultStatus(PreferenceStatus defaultStatus)TopicPreference.Builderfrom(TopicPreference other)TopicPreference._FinalStagehasCustomRouting(java.lang.Boolean hasCustomRouting)TopicPreference._FinalStagehasCustomRouting(java.util.Optional<java.lang.Boolean> hasCustomRouting)TopicPreference.TopicIdStagestatus(PreferenceStatus status)TopicPreference.TopicNameStagetopicId(java.lang.String topicId)TopicPreference._FinalStagetopicName(java.lang.String topicName)
-
-
-
Method Detail
-
from
public TopicPreference.Builder from(TopicPreference other)
- Specified by:
fromin interfaceTopicPreference.DefaultStatusStage
-
defaultStatus
public TopicPreference.StatusStage defaultStatus(PreferenceStatus defaultStatus)
- Specified by:
defaultStatusin interfaceTopicPreference.DefaultStatusStage
-
status
public TopicPreference.TopicIdStage status(PreferenceStatus status)
- Specified by:
statusin interfaceTopicPreference.StatusStage
-
topicId
public TopicPreference.TopicNameStage topicId(java.lang.String topicId)
- Specified by:
topicIdin interfaceTopicPreference.TopicIdStage
-
topicName
public TopicPreference._FinalStage topicName(java.lang.String topicName)
- Specified by:
topicNamein interfaceTopicPreference.TopicNameStage
-
hasCustomRouting
public TopicPreference._FinalStage hasCustomRouting(java.lang.Boolean hasCustomRouting)
- Specified by:
hasCustomRoutingin interfaceTopicPreference._FinalStage
-
hasCustomRouting
public TopicPreference._FinalStage hasCustomRouting(java.util.Optional<java.lang.Boolean> hasCustomRouting)
- Specified by:
hasCustomRoutingin interfaceTopicPreference._FinalStage
-
customRouting
public TopicPreference._FinalStage customRouting(java.util.List<ChannelClassification> customRouting)
The Channels a user has chosen to receive notifications through for this topic
- Specified by:
customRoutingin interfaceTopicPreference._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customRouting
public TopicPreference._FinalStage customRouting(java.util.Optional<java.util.List<ChannelClassification>> customRouting)
- Specified by:
customRoutingin interfaceTopicPreference._FinalStage
-
build
public TopicPreference build()
- Specified by:
buildin interfaceTopicPreference._FinalStage
-
-