Interface ReceiptRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReceiptRule.Builder,
,ReceiptRule> SdkBuilder<ReceiptRule.Builder,
,ReceiptRule> SdkPojo
- Enclosing class:
ReceiptRule
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<ReceiptAction> 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.actions
(Consumer<ReceiptAction.Builder>... 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.actions
(ReceiptAction... 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.Iftrue
, the receipt rule is active.The name of the receipt rule.recipients
(String... recipients) The recipient domains and email addresses that the receipt rule applies to.recipients
(Collection<String> recipients) The recipient domains and email addresses that the receipt rule applies to.scanEnabled
(Boolean scanEnabled) Iftrue
, then messages that this receipt rule applies to are scanned for spam and viruses.Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the receipt rule. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.).
-
Start and end with a letter or number.
-
Contain 64 characters or fewer.
- Parameters:
name
- The name of the receipt rule. The name must meet the following requirements:-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.).
-
Start and end with a letter or number.
-
Contain 64 characters or fewer.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
enabled
If
true
, the receipt rule is active. The default value isfalse
.- Parameters:
enabled
- Iftrue
, the receipt rule is active. The default value isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tlsPolicy
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to
Require
, Amazon SES bounces emails that are not received over TLS. The default isOptional
.- Parameters:
tlsPolicy
- Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set toRequire
, Amazon SES bounces emails that are not received over TLS. The default isOptional
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tlsPolicy
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to
Require
, Amazon SES bounces emails that are not received over TLS. The default isOptional
.- Parameters:
tlsPolicy
- Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set toRequire
, Amazon SES bounces emails that are not received over TLS. The default isOptional
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recipients
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.
- Parameters:
recipients
- The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recipients
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.
- Parameters:
recipients
- The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 is a convenience method that creates an instance of theReceiptAction.Builder
avoiding the need to create one manually viaReceiptAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<ReceiptAction>)
.- Parameters:
actions
- a consumer that will call methods onReceiptAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scanEnabled
If
true
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value isfalse
.- Parameters:
scanEnabled
- Iftrue
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-