Class InboundBulkTemplateMessage
- java.lang.Object
-
- com.courier.api.resources.bulk.types.InboundBulkTemplateMessage
-
- All Implemented Interfaces:
IBaseMessage
public final class InboundBulkTemplateMessage extends java.lang.Object implements IBaseMessage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInboundBulkTemplateMessage._FinalStagestatic classInboundBulkTemplateMessage.Builderstatic interfaceInboundBulkTemplateMessage.TemplateStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InboundBulkTemplateMessage.TemplateStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getBrandId()java.util.Optional<java.util.Map<java.lang.String,Channel>>getChannels()java.util.Optional<MessageContext>getContext()java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>getData()java.util.Optional<Delay>getDelay()java.util.Optional<Expiry>getExpiry()java.util.Optional<MessageMetadata>getMetadata()java.util.Optional<MessagePreferences>getPreferences()java.util.Optional<java.util.Map<java.lang.String,MessageProvidersType>>getProviders()java.util.Optional<Routing>getRouting()java.lang.StringgetTemplate()java.util.Optional<Timeout>getTimeout()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getData
public java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> getData()
- Specified by:
getDatain interfaceIBaseMessage- Returns:
- An arbitrary object that includes any data you want to pass to the message. The data will populate the corresponding template or elements variables.
-
getBrandId
public java.util.Optional<java.lang.String> getBrandId()
- Specified by:
getBrandIdin interfaceIBaseMessage
-
getChannels
public java.util.Optional<java.util.Map<java.lang.String,Channel>> getChannels()
- Specified by:
getChannelsin interfaceIBaseMessage- Returns:
- "Define run-time configuration for one or more channels. If you don't specify channels, the default configuration for each channel will be used. Valid ChannelId's are: email, sms, push, inbox, direct_message, banner, and webhook."
-
getContext
public java.util.Optional<MessageContext> getContext()
- Specified by:
getContextin interfaceIBaseMessage- Returns:
- Context to load with this recipient. Will override any context set on message.context.
-
getMetadata
public java.util.Optional<MessageMetadata> getMetadata()
- Specified by:
getMetadatain interfaceIBaseMessage- Returns:
- Metadata such as utm tracking attached with the notification through this channel.
-
getPreferences
public java.util.Optional<MessagePreferences> getPreferences()
- Specified by:
getPreferencesin interfaceIBaseMessage
-
getProviders
public java.util.Optional<java.util.Map<java.lang.String,MessageProvidersType>> getProviders()
- Specified by:
getProvidersin interfaceIBaseMessage- Returns:
- An object whose keys are valid provider identifiers which map to an object.
-
getRouting
public java.util.Optional<Routing> getRouting()
- Specified by:
getRoutingin interfaceIBaseMessage
-
getTimeout
public java.util.Optional<Timeout> getTimeout()
- Specified by:
getTimeoutin interfaceIBaseMessage- Returns:
- Time in ms to attempt the channel before failing over to the next available channel.
-
getDelay
public java.util.Optional<Delay> getDelay()
- Specified by:
getDelayin interfaceIBaseMessage- Returns:
- Defines the time to wait before delivering the message. You can specify one of the following options. Duration with the number of milliseconds to delay. Until with an ISO 8601 timestamp that specifies when it should be delivered. Until with an OpenStreetMap opening_hours-like format that specifies the Delivery Window (e.g., 'Mo-Fr 08:00-18:00pm')
-
getExpiry
public java.util.Optional<Expiry> getExpiry()
- Specified by:
getExpiryin interfaceIBaseMessage- Returns:
- "Expiry allows you to set an absolute or relative time in which a message expires. Note: This is only valid for the Courier Inbox channel as of 12-08-2022."
-
getTemplate
public java.lang.String getTemplate()
- Returns:
- The id of the notification template to be rendered and sent to the recipient(s). This field or the content field must be supplied.
-
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 InboundBulkTemplateMessage.TemplateStage builder()
-
-