Package io.mailtrap.api.inbound
Class InboundForwardRulesImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.inbound.InboundForwardRulesImpl
- All Implemented Interfaces:
InboundForwardRules
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(long inboxId, CreateInboundForwardRuleRequest request) Create a new forward rule.voiddelete(long inboxId, long ruleId) Delete a forward rule.getById(long inboxId, long ruleId) Get a forward rule by ID.getList(long inboxId) List forward rules in an inbox.update(long inboxId, long ruleId, UpdateInboundForwardRuleRequest request) Update a forward rule.
-
Constructor Details
-
InboundForwardRulesImpl
-
-
Method Details
-
getList
Description copied from interface:InboundForwardRulesList forward rules in an inbox.- Specified by:
getListin interfaceInboundForwardRules- Parameters:
inboxId- the inbox ID- Returns:
- the list of forward rules
-
getById
Description copied from interface:InboundForwardRulesGet a forward rule by ID.- Specified by:
getByIdin interfaceInboundForwardRules- Parameters:
inboxId- the inbox IDruleId- the forward rule ID- Returns:
- the forward rule
-
create
Description copied from interface:InboundForwardRulesCreate a new forward rule.- Specified by:
createin interfaceInboundForwardRules- Parameters:
inboxId- the inbox IDrequest- the create request- Returns:
- the created forward rule
-
update
public InboundForwardRule update(long inboxId, long ruleId, UpdateInboundForwardRuleRequest request) Description copied from interface:InboundForwardRulesUpdate a forward rule.- Specified by:
updatein interfaceInboundForwardRules- Parameters:
inboxId- the inbox IDruleId- the forward rule IDrequest- the update request- Returns:
- the updated forward rule
-
delete
public void delete(long inboxId, long ruleId) Description copied from interface:InboundForwardRulesDelete a forward rule.- Specified by:
deletein interfaceInboundForwardRules- Parameters:
inboxId- the inbox IDruleId- the forward rule ID
-