Class Routing.Builder
- java.lang.Object
-
- com.courier.api.resources.send.types.Routing.Builder
-
- All Implemented Interfaces:
Routing._FinalStage,Routing.MethodStage
- Enclosing class:
- Routing
public static final class Routing.Builder extends java.lang.Object implements Routing.MethodStage, Routing._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Routing._FinalStageaddAllChannels(java.util.List<RoutingChannel> channels)A list of channels or providers to send the message through.Routing._FinalStageaddChannels(RoutingChannel channels)A list of channels or providers to send the message through.Routingbuild()Routing._FinalStagechannels(java.util.List<RoutingChannel> channels)Routing.Builderfrom(Routing other)Routing._FinalStagemethod(RoutingMethod method)
-
-
-
Method Detail
-
from
public Routing.Builder from(Routing other)
- Specified by:
fromin interfaceRouting.MethodStage
-
method
public Routing._FinalStage method(RoutingMethod method)
- Specified by:
methodin interfaceRouting.MethodStage
-
addAllChannels
public Routing._FinalStage addAllChannels(java.util.List<RoutingChannel> channels)
A list of channels or providers to send the message through. Can also recursively define sub-routing methods, which can be useful for defining advanced push notification delivery strategies.
- Specified by:
addAllChannelsin interfaceRouting._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addChannels
public Routing._FinalStage addChannels(RoutingChannel channels)
A list of channels or providers to send the message through. Can also recursively define sub-routing methods, which can be useful for defining advanced push notification delivery strategies.
- Specified by:
addChannelsin interfaceRouting._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
channels
public Routing._FinalStage channels(java.util.List<RoutingChannel> channels)
- Specified by:
channelsin interfaceRouting._FinalStage
-
build
public Routing build()
- Specified by:
buildin interfaceRouting._FinalStage
-
-