Package io.mailtrap.api.inbound
Class InboundInboxesImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.inbound.InboundInboxesImpl
- All Implemented Interfaces:
InboundInboxes
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(long folderId, CreateInboundInboxRequest request) Create a new inbound inbox in a folder.voiddelete(long folderId, long inboxId) Delete an inbound inbox.getById(long folderId, long inboxId) Get an inbound inbox by ID.getList(long folderId) List all inboxes in an inbound folder.update(long folderId, long inboxId, UpdateInboundInboxRequest request) Rename an inbound inbox.
-
Constructor Details
-
InboundInboxesImpl
-
-
Method Details
-
getList
Description copied from interface:InboundInboxesList all inboxes in an inbound folder.- Specified by:
getListin interfaceInboundInboxes- Parameters:
folderId- the folder ID- Returns:
- the list of inboxes
-
getById
Description copied from interface:InboundInboxesGet an inbound inbox by ID.- Specified by:
getByIdin interfaceInboundInboxes- Parameters:
folderId- the folder IDinboxId- the inbox ID- Returns:
- the inbox
-
create
Description copied from interface:InboundInboxesCreate a new inbound inbox in a folder.- Specified by:
createin interfaceInboundInboxes- Parameters:
folderId- the folder IDrequest- the create request- Returns:
- the created inbox
-
update
Description copied from interface:InboundInboxesRename an inbound inbox.- Specified by:
updatein interfaceInboundInboxes- Parameters:
folderId- the folder IDinboxId- the inbox IDrequest- the update request- Returns:
- the updated inbox
-
delete
public void delete(long folderId, long inboxId) Description copied from interface:InboundInboxesDelete an inbound inbox.- Specified by:
deletein interfaceInboundInboxes- Parameters:
folderId- the folder IDinboxId- the inbox ID
-