Interface SuppressionAttributes.Builder

  • Method Details

    • suppressedReasonsWithStrings

      SuppressionAttributes.Builder suppressedReasonsWithStrings(Collection<String> suppressedReasons)

      A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Parameters:
      suppressedReasons - A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suppressedReasonsWithStrings

      SuppressionAttributes.Builder suppressedReasonsWithStrings(String... suppressedReasons)

      A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Parameters:
      suppressedReasons - A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suppressedReasons

      SuppressionAttributes.Builder suppressedReasons(Collection<SuppressionListReason> suppressedReasons)

      A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Parameters:
      suppressedReasons - A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suppressedReasons

      SuppressionAttributes.Builder suppressedReasons(SuppressionListReason... suppressedReasons)

      A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Parameters:
      suppressedReasons - A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:

      • COMPLAINT – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint.

      • BOUNCE – Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validationAttributes

      SuppressionAttributes.Builder validationAttributes(SuppressionValidationAttributes validationAttributes)
      Sets the value of the ValidationAttributes property for this object.
      Parameters:
      validationAttributes - The new value for the ValidationAttributes property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • validationAttributes

      default SuppressionAttributes.Builder validationAttributes(Consumer<SuppressionValidationAttributes.Builder> validationAttributes)
      Sets the value of the ValidationAttributes property for this object. This is a convenience method that creates an instance of the SuppressionValidationAttributes.Builder avoiding the need to create one manually via SuppressionValidationAttributes.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to validationAttributes(SuppressionValidationAttributes).

      Parameters:
      validationAttributes - a consumer that will call methods on SuppressionValidationAttributes.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: