Package io.mailtrap.api.inbound
Class InboundFoldersImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.inbound.InboundFoldersImpl
- All Implemented Interfaces:
InboundFolders
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
InboundFoldersImpl
-
-
Method Details
-
getList
Description copied from interface:InboundFoldersList all inbound folders in the account.- Specified by:
getListin interfaceInboundFolders- Returns:
- the list of inbound folders
-
getById
Description copied from interface:InboundFoldersGet an inbound folder by ID.- Specified by:
getByIdin interfaceInboundFolders- Parameters:
folderId- the folder ID- Returns:
- the folder
-
create
Description copied from interface:InboundFoldersCreate a new inbound folder.- Specified by:
createin interfaceInboundFolders- Parameters:
request- the create request- Returns:
- the created folder
-
update
Description copied from interface:InboundFoldersRename an inbound folder.- Specified by:
updatein interfaceInboundFolders- Parameters:
folderId- the folder IDrequest- the update request- Returns:
- the updated folder
-
delete
public void delete(long folderId) Description copied from interface:InboundFoldersDelete an inbound folder along with all of its inboxes.- Specified by:
deletein interfaceInboundFolders- Parameters:
folderId- the folder ID
-