Package io.sendon.contacts.request
Class ContactBuilder.GetBlocklistBuilder
java.lang.Object
io.sendon.contacts.request.ContactBuilder.GetBlocklistBuilder
- Enclosing class:
- ContactBuilder
Builder for retrieving blocklist entries with filtering and pagination.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the GetBlocklistRequest object.setBlockTypes(String[] blockTypes) Sets the block types filter.Sets the pagination cursor.setEndDate(String endDate) Sets the end date filter.setKakaoChannelIds(String[] kakaoChannelIds) Sets the Kakao channel IDs filter.Sets the page limit.setSenderNumber(String senderNumber) Sets the sender number filter.setStartDate(String startDate) Sets the start date filter.
-
Constructor Details
-
GetBlocklistBuilder
public GetBlocklistBuilder()
-
-
Method Details
-
setSenderNumber
Sets the sender number filter.- Parameters:
senderNumber- Filter by specific sender number.- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
setKakaoChannelIds
Sets the Kakao channel IDs filter.- Parameters:
kakaoChannelIds- Array of Kakao channel IDs to filter by.- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
setBlockTypes
Sets the block types filter.- Parameters:
blockTypes- Array of block types (WEB, API, ARS) to filter by.- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
setStartDate
Sets the start date filter.- Parameters:
startDate- Start date for filtering (YYYY-MM-DD HH:mm:ss format).- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
setEndDate
Sets the end date filter.- Parameters:
endDate- End date for filtering (YYYY-MM-DD HH:mm:ss format).- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
setCursor
Sets the pagination cursor.- Parameters:
cursor- The cursor for pagination (default: 0).- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
setLimit
Sets the page limit.- Parameters:
limit- The maximum number of entries to retrieve (default: 20).- Returns:
- The current instance of
ContactBuilder.GetBlocklistBuilder.
-
build
Builds the GetBlocklistRequest object.- Returns:
- A configured
GetBlocklistRequestinstance.
-