Class ReceiptRuleSet.Builder

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

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

    • create

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

      @Stability(Stable) public ReceiptRuleSet.Builder dropSpam(Boolean dropSpam)
      Whether to add a first rule to stop processing messages that have at least one spam indicator.

      Default: false

      Parameters:
      dropSpam - Whether to add a first rule to stop processing messages that have at least one spam indicator. This parameter is required.
      Returns:
      this
    • receiptRuleSetName

      @Stability(Stable) public ReceiptRuleSet.Builder receiptRuleSetName(String receiptRuleSetName)
      The name for the receipt rule set.

      Default: - A CloudFormation generated name.

      Parameters:
      receiptRuleSetName - The name for the receipt rule set. This parameter is required.
      Returns:
      this
    • rules

      @Stability(Stable) public ReceiptRuleSet.Builder rules(List<? extends ReceiptRuleOptions> rules)
      The list of rules to add to this rule set.

      Rules are added in the same order as they appear in the list.

      Default: - No rules are added to the rule set.

      Parameters:
      rules - The list of rules to add to this rule set. This parameter is required.
      Returns:
      this
    • build

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