Class SubscriptionTopicNew.Builder
- java.lang.Object
-
- com.courier.api.resources.tenants.types.SubscriptionTopicNew.Builder
-
- All Implemented Interfaces:
SubscriptionTopicNew._FinalStage,SubscriptionTopicNew.StatusStage
- Enclosing class:
- SubscriptionTopicNew
public static final class SubscriptionTopicNew.Builder extends java.lang.Object implements SubscriptionTopicNew.StatusStage, SubscriptionTopicNew._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionTopicNewbuild()SubscriptionTopicNew._FinalStagecustomRouting(java.util.List<ChannelClassification> customRouting)The default channels to send to this tenant when has_custom_routing is enabledSubscriptionTopicNew._FinalStagecustomRouting(java.util.Optional<java.util.List<ChannelClassification>> customRouting)SubscriptionTopicNew.Builderfrom(SubscriptionTopicNew other)SubscriptionTopicNew._FinalStagehasCustomRouting(java.lang.Boolean hasCustomRouting)Override channel routing with custom preferences.SubscriptionTopicNew._FinalStagehasCustomRouting(java.util.Optional<java.lang.Boolean> hasCustomRouting)SubscriptionTopicNew._FinalStagestatus(SubscriptionTopicStatus status)
-
-
-
Method Detail
-
from
public SubscriptionTopicNew.Builder from(SubscriptionTopicNew other)
- Specified by:
fromin interfaceSubscriptionTopicNew.StatusStage
-
status
public SubscriptionTopicNew._FinalStage status(SubscriptionTopicStatus status)
- Specified by:
statusin interfaceSubscriptionTopicNew.StatusStage
-
customRouting
public SubscriptionTopicNew._FinalStage customRouting(java.util.List<ChannelClassification> customRouting)
The default channels to send to this tenant when has_custom_routing is enabled
- Specified by:
customRoutingin interfaceSubscriptionTopicNew._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customRouting
public SubscriptionTopicNew._FinalStage customRouting(java.util.Optional<java.util.List<ChannelClassification>> customRouting)
- Specified by:
customRoutingin interfaceSubscriptionTopicNew._FinalStage
-
hasCustomRouting
public SubscriptionTopicNew._FinalStage hasCustomRouting(java.lang.Boolean hasCustomRouting)
Override channel routing with custom preferences. This will override any template prefernces that are set, but a user can still customize their preferences
- Specified by:
hasCustomRoutingin interfaceSubscriptionTopicNew._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
hasCustomRouting
public SubscriptionTopicNew._FinalStage hasCustomRouting(java.util.Optional<java.lang.Boolean> hasCustomRouting)
- Specified by:
hasCustomRoutingin interfaceSubscriptionTopicNew._FinalStage
-
build
public SubscriptionTopicNew build()
- Specified by:
buildin interfaceSubscriptionTopicNew._FinalStage
-
-