Class InboundInboxesImpl

java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.inbound.InboundInboxesImpl
All Implemented Interfaces:
InboundInboxes

public class InboundInboxesImpl extends ApiResource implements InboundInboxes
  • Constructor Details

    • InboundInboxesImpl

      public InboundInboxesImpl(MailtrapConfig config)
  • Method Details

    • getList

      public List<InboundInbox> getList(long folderId)
      Description copied from interface: InboundInboxes
      List all inboxes in an inbound folder.
      Specified by:
      getList in interface InboundInboxes
      Parameters:
      folderId - the folder ID
      Returns:
      the list of inboxes
    • getById

      public InboundInbox getById(long folderId, long inboxId)
      Description copied from interface: InboundInboxes
      Get an inbound inbox by ID.
      Specified by:
      getById in interface InboundInboxes
      Parameters:
      folderId - the folder ID
      inboxId - the inbox ID
      Returns:
      the inbox
    • create

      public InboundInbox create(long folderId, CreateInboundInboxRequest request)
      Description copied from interface: InboundInboxes
      Create a new inbound inbox in a folder.
      Specified by:
      create in interface InboundInboxes
      Parameters:
      folderId - the folder ID
      request - the create request
      Returns:
      the created inbox
    • update

      public InboundInbox update(long folderId, long inboxId, UpdateInboundInboxRequest request)
      Description copied from interface: InboundInboxes
      Rename an inbound inbox.
      Specified by:
      update in interface InboundInboxes
      Parameters:
      folderId - the folder ID
      inboxId - the inbox ID
      request - the update request
      Returns:
      the updated inbox
    • delete

      public void delete(long folderId, long inboxId)
      Description copied from interface: InboundInboxes
      Delete an inbound inbox.
      Specified by:
      delete in interface InboundInboxes
      Parameters:
      folderId - the folder ID
      inboxId - the inbox ID