Class MessagePreferences.Builder
- java.lang.Object
-
- com.courier.api.resources.send.types.MessagePreferences.Builder
-
- All Implemented Interfaces:
MessagePreferences._FinalStage,MessagePreferences.SubscriptionTopicIdStage
- Enclosing class:
- MessagePreferences
public static final class MessagePreferences.Builder extends java.lang.Object implements MessagePreferences.SubscriptionTopicIdStage, MessagePreferences._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagePreferencesbuild()MessagePreferences.Builderfrom(MessagePreferences other)MessagePreferences._FinalStagesubscriptionTopicId(java.lang.String subscriptionTopicId)The ID of the subscription topic you want to apply to the message.
-
-
-
Method Detail
-
from
public MessagePreferences.Builder from(MessagePreferences other)
- Specified by:
fromin interfaceMessagePreferences.SubscriptionTopicIdStage
-
subscriptionTopicId
public MessagePreferences._FinalStage subscriptionTopicId(java.lang.String subscriptionTopicId)
The ID of the subscription topic you want to apply to the message. If this is a templated message, it will override the subscription topic if already associated
- Specified by:
subscriptionTopicIdin interfaceMessagePreferences.SubscriptionTopicIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public MessagePreferences build()
- Specified by:
buildin interfaceMessagePreferences._FinalStage
-
-