Class CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.CampaignSmsMessageProperty>
- Enclosing interface:
CfnCampaignPropsMixin.CampaignSmsMessageProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.CampaignSmsMessageProperty>
A builder for
CfnCampaignPropsMixin.CampaignSmsMessageProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getBody()build()Builds the configured instance.Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getEntityId()messageType(String messageType) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getMessageType()originationNumber(String originationNumber) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getOriginationNumber()Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getSenderId()templateId(String templateId) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getTemplateId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
@Stability(Stable) public CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder body(String body) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getBody()- Parameters:
body- The body of the SMS message.- Returns:
this
-
entityId
@Stability(Stable) public CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder entityId(String entityId) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getEntityId()- Parameters:
entityId- The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.- Returns:
this
-
messageType
@Stability(Stable) public CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder messageType(String messageType) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getMessageType()- Parameters:
messageType- The SMS message type. Valid values areTRANSACTIONAL(for messages that are critical or time-sensitive, such as a one-time passwords) andPROMOTIONAL(for messsages that aren't critical or time-sensitive, such as marketing messages).- Returns:
this
-
originationNumber
@Stability(Stable) public CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder originationNumber(String originationNumber) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getOriginationNumber()- Parameters:
originationNumber- The long code to send the SMS message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.- Returns:
this
-
senderId
@Stability(Stable) public CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder senderId(String senderId) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getSenderId()- Parameters:
senderId- The alphabetic Sender ID to display as the sender of the message on a recipient's device. Support for sender IDs varies by country or region. To specify a phone number as the sender, omit this parameter and useOriginationNumberinstead. For more information about support for Sender ID by country, see the Amazon Pinpoint User Guide .- Returns:
this
-
templateId
@Stability(Stable) public CfnCampaignPropsMixin.CampaignSmsMessageProperty.Builder templateId(String templateId) Sets the value ofCfnCampaignPropsMixin.CampaignSmsMessageProperty.getTemplateId()- Parameters:
templateId- The template ID received from the regulatory body for sending SMS in your country.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.CampaignSmsMessageProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.CampaignSmsMessageProperty - Throws:
NullPointerException- if any required attribute was not provided
-