/* * Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.simpleemail.model; import 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. *
*/ public class ReceiptRule implements Serializable { /** ** 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. *
*
* If true
, the receipt rule is active. The default value is
* false
.
*
* 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
*/
private String tlsPolicy;
/**
*
* 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. *
*/ private java.util.List* 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. *
*/ private java.util.List
* If true
, then messages that this receipt rule applies to are
* scanned for spam and viruses. The default value is false
.
*
* 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. *
** 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. *
** 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. * * @param 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. *
*
* If true
, the receipt rule is active. The default value is
* false
.
*
* If true
, the receipt rule is active. The default
* value is false
.
*
* If true
, the receipt rule is active. The default value is
* false
.
*
* If true
, the receipt rule is active. The default
* value is false
.
*
* If true
, the receipt rule is active. The default value is
* false
.
*
* If true
, the receipt rule is active. The default
* value is false
.
*
* 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. * * @param enabled
* If true
, the receipt rule is active. The default
* value is false
.
*
* 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
*
* @return
* 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
.
*
* 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
*
* @param 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
.
*
* 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
*
* @param 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
.
*
* 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
*
* @param 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
.
*
* 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
*
* @param 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
.
*
* 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. *
* * @return* 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* 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. *
* * @param 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 void setRecipients(java.util.Collection* 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. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withRecipients(String... recipients) { if (getRecipients() == null) { this.recipients = new java.util.ArrayList* 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. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withRecipients(java.util.Collection* 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. *
* * @return* 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.util.List* 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. *
* * @param 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 setActions(java.util.Collection* 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. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withActions(ReceiptAction... actions) { if (getActions() == null) { this.actions = new java.util.ArrayList* 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. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withActions(java.util.Collection
* 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
.
*
* 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
.
*
* 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
.
*
* 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. * * @param scanEnabled
* If true
, then messages that this receipt rule
* applies to are scanned for spam and viruses. The default value
* is false
.
*