Class RoutingStrategy
- java.lang.Object
-
- com.courier.api.resources.templates.types.RoutingStrategy
-
public final class RoutingStrategy extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRoutingStrategy._FinalStagestatic classRoutingStrategy.Builderstatic interfaceRoutingStrategy.MethodStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoutingStrategy.MethodStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.List<java.lang.String>getChannels()RoutingStrategyMethodgetMethod()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getMethod
public RoutingStrategyMethod getMethod()
- Returns:
- The method for selecting channels to send the message with. Value can be either 'single' or 'all'. If not provided will default to 'single'
-
getChannels
public java.util.List<java.lang.String> getChannels()
- Returns:
- An array of valid channel identifiers (like email, push, sms, etc.) and additional routing nodes.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static RoutingStrategy.MethodStage builder()
-
-