@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReceiptRule extends Object implements Serializable, Cloneable
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 |
---|---|
ReceiptRule |
clone() |
boolean |
equals(Object obj) |
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.
|
Boolean |
getEnabled()
If
true , the receipt rule is active. |
String |
getName()
The name of the receipt rule.
|
List<String> |
getRecipients()
The recipient domains and email addresses that the receipt rule applies to.
|
Boolean |
getScanEnabled()
If
true , then messages that this receipt rule applies to are scanned for spam and viruses. |
String |
getTlsPolicy()
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with
Transport Layer Security (TLS).
|
int |
hashCode() |
Boolean |
isEnabled()
If
true , the receipt rule is active. |
Boolean |
isScanEnabled()
If
true , then messages that this receipt rule applies to are scanned for spam and viruses. |
void |
setActions(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(Boolean enabled)
If
true , the receipt rule is active. |
void |
setName(String name)
The name of the receipt rule.
|
void |
setRecipients(Collection<String> recipients)
The recipient domains and email addresses that the receipt rule applies to.
|
void |
setScanEnabled(Boolean scanEnabled)
If
true , then messages that this receipt rule applies to are scanned for spam and viruses. |
void |
setTlsPolicy(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).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ReceiptRule |
withActions(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(Boolean enabled)
If
true , the receipt rule is active. |
ReceiptRule |
withName(String name)
The name of the receipt rule.
|
ReceiptRule |
withRecipients(Collection<String> recipients)
The recipient domains and email addresses that the receipt rule applies to.
|
ReceiptRule |
withRecipients(String... recipients)
The recipient domains and email addresses that the receipt rule applies to.
|
ReceiptRule |
withScanEnabled(Boolean scanEnabled)
If
true , then messages that this receipt rule applies to are scanned for spam and viruses. |
ReceiptRule |
withTlsPolicy(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 void setName(String name)
The name of the receipt rule. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), 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:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
public String getName()
The name of the receipt rule. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
public ReceiptRule withName(String name)
The name of the receipt rule. The name must:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), 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:
Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
public void setEnabled(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 Boolean getEnabled()
If true
, the receipt rule is active. The default value is false
.
true
, the receipt rule is active. The default value is false
.public ReceiptRule withEnabled(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 Boolean isEnabled()
If true
, the receipt rule is active. The default value is false
.
true
, the receipt rule is active. The default value is false
.public void setTlsPolicy(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
public 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
.
Require
, Amazon SES will
bounce emails that are not received over TLS. The default is Optional
.TlsPolicy
public ReceiptRule withTlsPolicy(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
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
.
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
.
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 List<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.
public void setRecipients(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.public ReceiptRule withRecipients(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.
NOTE: This method appends the values to the existing list (if any). Use
setRecipients(java.util.Collection)
or withRecipients(java.util.Collection)
if you want to
override the existing values.
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(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.public 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.
public void setActions(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.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
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(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 void setScanEnabled(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 Boolean getScanEnabled()
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The
default value is false
.
true
, then messages that this receipt rule applies to are scanned for spam and viruses.
The default value is false
.public ReceiptRule withScanEnabled(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 Boolean isScanEnabled()
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The
default value is false
.
true
, then messages that this receipt rule applies to are scanned for spam and viruses.
The default value is false
.public String toString()
toString
in class Object
Object.toString()
public ReceiptRule clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.