Interface InboundFolders

All Known Implementing Classes:
InboundFoldersImpl

public interface InboundFolders
Interface representing the Mailtrap Inbound Email API for managing folders.
  • Method Details

    • getList

      List<InboundFolder> getList()
      List all inbound folders in the account.
      Returns:
      the list of inbound folders
    • getById

      InboundFolder getById(long folderId)
      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

      InboundFolder update(long folderId, UpdateInboundFolderRequest request)
      Rename an inbound folder.
      Parameters:
      folderId - the folder ID
      request - 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