Class DropSpamReceiptRule.Builder

java.lang.Object
software.amazon.awscdk.services.ses.DropSpamReceiptRule.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<DropSpamReceiptRule>
Enclosing class:
DropSpamReceiptRule

@Stability(Stable) public static final class DropSpamReceiptRule.Builder extends Object implements software.amazon.jsii.Builder<DropSpamReceiptRule>
A fluent builder for DropSpamReceiptRule.
  • Method Details

    • create

      @Stability(Stable) public static DropSpamReceiptRule.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of DropSpamReceiptRule.Builder.
    • actions

      @Stability(Stable) public DropSpamReceiptRule.Builder actions(List<? extends IReceiptRuleAction> actions)
      An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.

      Default: - No actions.

      Parameters:
      actions - An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule. This parameter is required.
      Returns:
      this
    • after

      @Stability(Stable) public DropSpamReceiptRule.Builder after(IReceiptRule after)
      An existing rule after which the new rule will be placed.

      Default: - The new rule is inserted at the beginning of the rule list.

      Parameters:
      after - An existing rule after which the new rule will be placed. This parameter is required.
      Returns:
      this
    • enabled

      @Stability(Stable) public DropSpamReceiptRule.Builder enabled(Boolean enabled)
      Whether the rule is active.

      Default: true

      Parameters:
      enabled - Whether the rule is active. This parameter is required.
      Returns:
      this
    • receiptRuleName

      @Stability(Stable) public DropSpamReceiptRule.Builder receiptRuleName(String receiptRuleName)
      The name for the rule.

      Default: - A CloudFormation generated name.

      Parameters:
      receiptRuleName - The name for the rule. This parameter is required.
      Returns:
      this
    • recipients

      @Stability(Stable) public DropSpamReceiptRule.Builder recipients(List<String> recipients)
      The recipient domains and email addresses that the receipt rule applies to.

      Default: - Match all recipients under all verified domains.

      Parameters:
      recipients - The recipient domains and email addresses that the receipt rule applies to. This parameter is required.
      Returns:
      this
    • scanEnabled

      @Stability(Stable) public DropSpamReceiptRule.Builder scanEnabled(Boolean scanEnabled)
      Whether to scan for spam and viruses.

      Default: false

      Parameters:
      scanEnabled - Whether to scan for spam and viruses. This parameter is required.
      Returns:
      this
    • tlsPolicy

      @Stability(Stable) public DropSpamReceiptRule.Builder tlsPolicy(TlsPolicy tlsPolicy)
      Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).

      Default: - Optional which will not check for TLS.

      Parameters:
      tlsPolicy - Whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). This parameter is required.
      Returns:
      this
    • ruleSet

      @Stability(Stable) public DropSpamReceiptRule.Builder ruleSet(IReceiptRuleSet ruleSet)
      The name of the rule set that the receipt rule will be added to.

      Parameters:
      ruleSet - The name of the rule set that the receipt rule will be added to. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public DropSpamReceiptRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<DropSpamReceiptRule>
      Returns:
      a newly built instance of DropSpamReceiptRule.