Interface InboundForwardRules

All Known Implementing Classes:
InboundForwardRulesImpl

public interface InboundForwardRules
Interface representing the Mailtrap Inbound Email API for managing forward rules.
  • Method Details

    • getList

      List<InboundForwardRule> getList(long inboxId)
      List forward rules in an inbox.
      Parameters:
      inboxId - the inbox ID
      Returns:
      the list of forward rules
    • getById

      InboundForwardRule getById(long inboxId, long ruleId)
      Get a forward rule by ID.
      Parameters:
      inboxId - the inbox ID
      ruleId - the forward rule ID
      Returns:
      the forward rule
    • create

      InboundForwardRule create(long inboxId, CreateInboundForwardRuleRequest request)
      Create a new forward rule.
      Parameters:
      inboxId - the inbox ID
      request - the create request
      Returns:
      the created forward rule
    • update

      InboundForwardRule update(long inboxId, long ruleId, UpdateInboundForwardRuleRequest request)
      Update a forward rule.
      Parameters:
      inboxId - the inbox ID
      ruleId - the forward rule ID
      request - the update request
      Returns:
      the updated forward rule
    • delete

      void delete(long inboxId, long ruleId)
      Delete a forward rule.
      Parameters:
      inboxId - the inbox ID
      ruleId - the forward rule ID