Class InboundTrackEvent.Builder
- java.lang.Object
-
- com.courier.api.resources.inbound.types.InboundTrackEvent.Builder
-
- All Implemented Interfaces:
InboundTrackEvent._FinalStage,InboundTrackEvent.EventStage,InboundTrackEvent.MessageIdStage
- Enclosing class:
- InboundTrackEvent
public static final class InboundTrackEvent.Builder extends java.lang.Object implements InboundTrackEvent.EventStage, InboundTrackEvent.MessageIdStage, InboundTrackEvent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InboundTrackEventbuild()InboundTrackEvent.MessageIdStageevent(java.lang.String event)A descriptive name of the event.InboundTrackEvent.Builderfrom(InboundTrackEvent other)InboundTrackEvent._FinalStagemessageId(java.lang.String messageId)A required unique identifier that will be used to de-duplicate requests.InboundTrackEvent._FinalStageproperties(java.lang.String key, java.lang.Object value)InboundTrackEvent._FinalStageproperties(java.util.Map<java.lang.String,java.lang.Object> properties)InboundTrackEvent._FinalStageputAllProperties(java.util.Map<java.lang.String,java.lang.Object> properties)InboundTrackEvent._FinalStageuserId(java.lang.String userId)The user id assocatiated with the trackInboundTrackEvent._FinalStageuserId(java.util.Optional<java.lang.String> userId)
-
-
-
Method Detail
-
from
public InboundTrackEvent.Builder from(InboundTrackEvent other)
- Specified by:
fromin interfaceInboundTrackEvent.EventStage
-
event
public InboundTrackEvent.MessageIdStage event(java.lang.String event)
A descriptive name of the event. This name will appear as a trigger in the Courier Automation Trigger node.
- Specified by:
eventin interfaceInboundTrackEvent.EventStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messageId
public InboundTrackEvent._FinalStage messageId(java.lang.String messageId)
A required unique identifier that will be used to de-duplicate requests. If not unique, will respond with 409 Conflict status
- Specified by:
messageIdin interfaceInboundTrackEvent.MessageIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public InboundTrackEvent._FinalStage userId(java.lang.String userId)
The user id assocatiated with the track
- Specified by:
userIdin interfaceInboundTrackEvent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
public InboundTrackEvent._FinalStage userId(java.util.Optional<java.lang.String> userId)
- Specified by:
userIdin interfaceInboundTrackEvent._FinalStage
-
properties
public InboundTrackEvent._FinalStage properties(java.lang.String key, java.lang.Object value)
- Specified by:
propertiesin interfaceInboundTrackEvent._FinalStage
-
putAllProperties
public InboundTrackEvent._FinalStage putAllProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
- Specified by:
putAllPropertiesin interfaceInboundTrackEvent._FinalStage
-
properties
public InboundTrackEvent._FinalStage properties(java.util.Map<java.lang.String,java.lang.Object> properties)
- Specified by:
propertiesin interfaceInboundTrackEvent._FinalStage
-
build
public InboundTrackEvent build()
- Specified by:
buildin interfaceInboundTrackEvent._FinalStage
-
-