public class ReceiptRule
extends java.lang.Object
implements java.io.Serializable
Receipt rules enable you to specify which actions Amazon SES should take when it receives mail on behalf of one or more email addresses or domains that you own.
Each receipt rule defines a set of email addresses or domains that it applies to. If the email addresses or domains match at least one recipient address of the message, Amazon SES executes all of the receipt rule's actions on the message.
For information about setting up receipt rules, see the Amazon SES Developer Guide.
Constructor and Description |
---|
ReceiptRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<ReceiptAction> |
getActions()
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.
|
java.lang.Boolean |
getEnabled()
If
true , the receipt rule is active. |
java.lang.String |
getName()
The name of the receipt rule.
|
java.util.List<java.lang.String> |
getRecipients()
The recipient domains and email addresses that the receipt rule applies
to.
|
java.lang.Boolean |
getScanEnabled()
If
true , then messages that this receipt rule applies to are
scanned for spam and viruses. |
java.lang.String |
getTlsPolicy()
Specifies whether Amazon SES should require that incoming email is
delivered over a connection encrypted with Transport Layer Security
(TLS).
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
If
true , the receipt rule is active. |
java.lang.Boolean |
isScanEnabled()
If
true , then messages that this receipt rule applies to are
scanned for spam and viruses. |
void |
setActions(java.util.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.
|
void |
setEnabled(java.lang.Boolean enabled)
If
true , the receipt rule is active. |
void |
setName(java.lang.String name)
The name of the receipt rule.
|
void |
setRecipients(java.util.Collection<java.lang.String> recipients)
The recipient domains and email addresses that the receipt rule applies
to.
|
void |
setScanEnabled(java.lang.Boolean scanEnabled)
If
true , then messages that this receipt rule applies to are
scanned for spam and viruses. |
void |
setTlsPolicy(java.lang.String tlsPolicy)
Specifies whether Amazon SES should require that incoming email is
delivered over a connection encrypted with Transport Layer Security
(TLS).
|
void |
setTlsPolicy(TlsPolicy tlsPolicy)
Specifies whether Amazon SES should require that incoming email is
delivered over a connection encrypted with Transport Layer Security
(TLS).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReceiptRule |
withActions(java.util.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 |
withActions(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 |
withEnabled(java.lang.Boolean enabled)
If
true , the receipt rule is active. |
ReceiptRule |
withName(java.lang.String name)
The name of the receipt rule.
|
ReceiptRule |
withRecipients(java.util.Collection<java.lang.String> recipients)
The recipient domains and email addresses that the receipt rule applies
to.
|
ReceiptRule |
withRecipients(java.lang.String... recipients)
The recipient domains and email addresses that the receipt rule applies
to.
|
ReceiptRule |
withScanEnabled(java.lang.Boolean scanEnabled)
If
true , then messages that this receipt rule applies to are
scanned for spam and viruses. |
ReceiptRule |
withTlsPolicy(java.lang.String tlsPolicy)
Specifies whether Amazon SES should require that incoming email is
delivered over a connection encrypted with Transport Layer Security
(TLS).
|
ReceiptRule |
withTlsPolicy(TlsPolicy tlsPolicy)
Specifies whether Amazon SES should require that incoming email is
delivered over a connection encrypted with Transport Layer Security
(TLS).
|
public java.lang.String getName()
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.
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.
public void setName(java.lang.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.
public ReceiptRule withName(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.Boolean isEnabled()
If true
, the receipt rule is active. The default value is
false
.
If true
, the receipt rule is active. The default
value is false
.
public java.lang.Boolean getEnabled()
If true
, the receipt rule is active. The default value is
false
.
If true
, the receipt rule is active. The default
value is false
.
public void setEnabled(java.lang.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
.
public ReceiptRule withEnabled(java.lang.Boolean enabled)
If true
, the receipt rule is active. The default value is
false
.
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 is false
.
public java.lang.String getTlsPolicy()
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
.
Constraints:
Allowed Values: Require, Optional
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
public void setTlsPolicy(java.lang.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
.
Constraints:
Allowed Values: Require, 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
public ReceiptRule withTlsPolicy(java.lang.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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Require, 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
public void setTlsPolicy(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
.
Constraints:
Allowed Values: Require, 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
public ReceiptRule withTlsPolicy(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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Require, 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
public java.util.List<java.lang.String> getRecipients()
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.
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.
public void setRecipients(java.util.Collection<java.lang.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.
public ReceiptRule withRecipients(java.lang.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.
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 will match all recipients under all verified domains.
public ReceiptRule withRecipients(java.util.Collection<java.lang.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.
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 will match all recipients under all verified domains.
public java.util.List<ReceiptAction> getActions()
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.
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.
public void setActions(java.util.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.
public ReceiptRule withActions(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.
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.
public ReceiptRule withActions(java.util.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.
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.
public java.lang.Boolean isScanEnabled()
If true
, then messages that this receipt rule applies to are
scanned for spam and viruses. The default value is false
.
If true
, then messages that this receipt rule
applies to are scanned for spam and viruses. The default value is
false
.
public java.lang.Boolean getScanEnabled()
If true
, then messages that this receipt rule applies to are
scanned for spam and viruses. The default value is false
.
If true
, then messages that this receipt rule
applies to are scanned for spam and viruses. The default value is
false
.
public void setScanEnabled(java.lang.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
.
public ReceiptRule withScanEnabled(java.lang.Boolean scanEnabled)
If true
, then messages that this receipt rule applies to are
scanned for spam and viruses. The default value is false
.
Returns a reference to this object so that method calls can be chained together.
scanEnabled
-
If true
, then messages that this receipt rule
applies to are scanned for spam and viruses. The default value
is false
.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.