Package io.sendon.contacts.request
Class ContactBuilder.CreateBlocklistBuilder
java.lang.Object
io.sendon.contacts.request.ContactBuilder.CreateBlocklistBuilder
- Enclosing class:
- ContactBuilder
Builder for creating blocklist entries.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the CreateBlocklistRequest object.setKakaoChannelId(String kakaoChannelId) Sets the Kakao channel ID for Kakao message blocking.setMessageType(String messageType) Sets the message type for blocking.setPhoneNumber(String phoneNumber) Sets the phone number to be added to the blocklist.setRcsBrandId(String rcsBrandId) Sets the RCS brand ID for RCS message blocking.setRcsChatbotId(String rcsChatbotId) Sets the RCS chatbot ID for RCS message blocking.setSenderNumber(String senderNumber) Sets the sender number to block from.
-
Constructor Details
-
CreateBlocklistBuilder
public CreateBlocklistBuilder()
-
-
Method Details
-
setPhoneNumber
Sets the phone number to be added to the blocklist.- Parameters:
phoneNumber- The phone number without hyphens, numbers only.- Returns:
- The current instance of
ContactBuilder.CreateBlocklistBuilder.
-
setMessageType
Sets the message type for blocking.- Parameters:
messageType- The message type (SMS, KAKAO, RCS). Default is SMS.- Returns:
- The current instance of
ContactBuilder.CreateBlocklistBuilder.
-
setSenderNumber
Sets the sender number to block from.- Parameters:
senderNumber- The sender number to block from.- Returns:
- The current instance of
ContactBuilder.CreateBlocklistBuilder.
-
setKakaoChannelId
Sets the Kakao channel ID for Kakao message blocking.- Parameters:
kakaoChannelId- The Kakao channel ID.- Returns:
- The current instance of
ContactBuilder.CreateBlocklistBuilder.
-
setRcsChatbotId
Sets the RCS chatbot ID for RCS message blocking.- Parameters:
rcsChatbotId- The RCS chatbot ID.- Returns:
- The current instance of
ContactBuilder.CreateBlocklistBuilder.
-
setRcsBrandId
Sets the RCS brand ID for RCS message blocking.- Parameters:
rcsBrandId- The RCS brand ID.- Returns:
- The current instance of
ContactBuilder.CreateBlocklistBuilder.
-
build
Builds the CreateBlocklistRequest object.- Returns:
- A configured
CreateBlocklistRequestinstance.
-