public static interface ReceiptRule.Builder extends SdkPojo, CopyableBuilder<ReceiptRule.Builder,ReceiptRule>
Modifier and Type | Method and Description |
---|---|
ReceiptRule.Builder |
actions(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.
|
ReceiptRule.Builder |
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.
|
ReceiptRule.Builder |
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.
|
ReceiptRule.Builder |
enabled(Boolean enabled)
If
true , the receipt rule is active. |
ReceiptRule.Builder |
name(String name)
The name of the receipt rule.
|
ReceiptRule.Builder |
recipients(Collection<String> recipients)
The recipient domains and email addresses that the receipt rule applies to.
|
ReceiptRule.Builder |
recipients(String... recipients)
The recipient domains and email addresses that the receipt rule applies to.
|
ReceiptRule.Builder |
scanEnabled(Boolean scanEnabled)
If
true , then messages that this receipt rule applies to are scanned for spam and viruses. |
ReceiptRule.Builder |
tlsPolicy(String tlsPolicy)
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with
Transport Layer Security (TLS).
|
ReceiptRule.Builder |
tlsPolicy(TlsPolicy tlsPolicy)
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with
Transport Layer Security (TLS).
|
copy
applyMutation, build
ReceiptRule.Builder name(String name)
The name of the receipt rule. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
name
- The name of the receipt rule. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
ReceiptRule.Builder enabled(Boolean enabled)
If true
, the receipt rule is active. The default value is false
.
enabled
- If true
, the receipt rule is active. The default value is false
.ReceiptRule.Builder tlsPolicy(String 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 will bounce
emails that are not received over TLS. The default is Optional
.
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 will bounce emails that are not received over TLS. The default is Optional
.TlsPolicy
,
TlsPolicy
ReceiptRule.Builder tlsPolicy(TlsPolicy 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 will bounce
emails that are not received over TLS. The default is Optional
.
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 will bounce emails that are not received over TLS. The default is Optional
.TlsPolicy
,
TlsPolicy
ReceiptRule.Builder recipients(Collection<String> recipients)
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule will match all recipients under all verified domains.
recipients
- The recipient domains and email addresses that the receipt rule applies to. If this field is not
specified, this rule will match all recipients under all verified domains.ReceiptRule.Builder recipients(String... recipients)
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule will match all recipients under all verified domains.
recipients
- The recipient domains and email addresses that the receipt rule applies to. If this field is not
specified, this rule will match all recipients under all verified domains.ReceiptRule.Builder actions(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
- 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.ReceiptRule.Builder 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.
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.ReceiptRule.Builder 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.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #actions(List)
.actions
- a consumer that will call methods on List.Builder
#actions(List)
ReceiptRule.Builder scanEnabled(Boolean scanEnabled)
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The
default value is false
.
scanEnabled
- If true
, then messages that this receipt rule applies to are scanned for spam and
viruses. The default value is false
.Copyright © 2019. All rights reserved.