Package io.mailtrap.api.inbound
Interface InboundFolders
- All Known Implementing Classes:
InboundFoldersImpl
public interface InboundFolders
Interface representing the Mailtrap Inbound Email API for managing folders.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateInboundFolderRequest request) Create a new inbound folder.voiddelete(long folderId) Delete an inbound folder along with all of its inboxes.getById(long folderId) Get an inbound folder by ID.getList()List all inbound folders in the account.update(long folderId, UpdateInboundFolderRequest request) Rename an inbound folder.
-
Method Details
-
getList
List<InboundFolder> getList()List all inbound folders in the account.- Returns:
- the list of inbound folders
-
getById
Get an inbound folder by ID.- Parameters:
folderId- the folder ID- Returns:
- the folder
-
create
Create a new inbound folder.- Parameters:
request- the create request- Returns:
- the created folder
-
update
Rename an inbound folder.- Parameters:
folderId- the folder IDrequest- the update request- Returns:
- the updated folder
-
delete
void delete(long folderId) Delete an inbound folder along with all of its inboxes.- Parameters:
folderId- the folder ID
-