Package com.courier.api.types
Class SendMessageResponse.Builder
- java.lang.Object
-
- com.courier.api.types.SendMessageResponse.Builder
-
- All Implemented Interfaces:
SendMessageResponse._FinalStage,SendMessageResponse.RequestIdStage
- Enclosing class:
- SendMessageResponse
public static final class SendMessageResponse.Builder extends java.lang.Object implements SendMessageResponse.RequestIdStage, SendMessageResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendMessageResponsebuild()SendMessageResponse.Builderfrom(SendMessageResponse other)SendMessageResponse._FinalStagerequestId(java.lang.String requestId)A successful call toPOST /sendreturns a202status code along with arequestIdin the response body.
-
-
-
Method Detail
-
from
public SendMessageResponse.Builder from(SendMessageResponse other)
- Specified by:
fromin interfaceSendMessageResponse.RequestIdStage
-
requestId
public SendMessageResponse._FinalStage requestId(java.lang.String requestId)
A successful call to
POST /sendreturns a202status code along with arequestIdin the response body.For send requests that have a single recipient, the
requestIdis assigned to the derived message as its message_id. Therefore therequestIdcan be supplied to the Message's API for single recipient messages.For send requests that have multiple recipients (accounts, audiences, lists, etc.), Courier assigns a unique id to each derived message as its
message_id. Therefore therequestIdcannot be supplied to the Message's API for single-recipient messages.- Specified by:
requestIdin interfaceSendMessageResponse.RequestIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public SendMessageResponse build()
- Specified by:
buildin interfaceSendMessageResponse._FinalStage
-
-