Package com.courier.models.send
Class SendMessageParams.Message.Routing
-
- All Implemented Interfaces:
public final class SendMessageParams.Message.RoutingCustomize which channels/providers Courier may deliver the message through.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSendMessageParams.Message.Routing.BuilderA builder for Routing.
public final classSendMessageParams.Message.Routing.Method
-
Method Summary
Modifier and Type Method Description final List<MessageRoutingChannel>channels()A list of channels or providers (or nested routing rules). final SendMessageParams.Message.Routing.Methodmethod()final JsonField<List<MessageRoutingChannel>>_channels()Returns the raw JSON value of channels. final JsonField<SendMessageParams.Message.Routing.Method>_method()Returns the raw JSON value of method. final Map<String, JsonValue>_additionalProperties()final SendMessageParams.Message.Routing.BuildertoBuilder()final SendMessageParams.Message.Routingvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SendMessageParams.Message.Routing.Builderbuilder()Returns a mutable builder for constructing an instance of Routing. -
-
Method Detail
-
channels
final List<MessageRoutingChannel> channels()
A list of channels or providers (or nested routing rules).
-
method
final SendMessageParams.Message.Routing.Method method()
-
_channels
final JsonField<List<MessageRoutingChannel>> _channels()
Returns the raw JSON value of channels.
Unlike channels, this method doesn't throw if the JSON field has an unexpected type.
-
_method
final JsonField<SendMessageParams.Message.Routing.Method> _method()
Returns the raw JSON value of method.
Unlike method, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SendMessageParams.Message.Routing.Builder toBuilder()
-
validate
final SendMessageParams.Message.Routing validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SendMessageParams.Message.Routing.Builder builder()
Returns a mutable builder for constructing an instance of Routing.
The following fields are required:
.channels() .method()
-
-
-
-