Class CreateReceiptRuleRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.simpleemail.model.CreateReceiptRuleRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateReceiptRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateReceiptRuleRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateReceiptRuleRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAfter()The name of an existing rule after which the new rule will be placed.ReceiptRulegetRule()A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.StringgetRuleSetName()The name of the rule set to which to add the rule.inthashCode()voidsetAfter(String after)The name of an existing rule after which the new rule will be placed.voidsetRule(ReceiptRule rule)A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.voidsetRuleSetName(String ruleSetName)The name of the rule set to which to add the rule.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateReceiptRuleRequestwithAfter(String after)The name of an existing rule after which the new rule will be placed.CreateReceiptRuleRequestwithRule(ReceiptRule rule)A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.CreateReceiptRuleRequestwithRuleSetName(String ruleSetName)The name of the rule set to which to add the rule.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setRuleSetName
public void setRuleSetName(String ruleSetName)
The name of the rule set to which to add the rule.
- Parameters:
ruleSetName- The name of the rule set to which to add the rule.
-
getRuleSetName
public String getRuleSetName()
The name of the rule set to which to add the rule.
- Returns:
- The name of the rule set to which to add the rule.
-
withRuleSetName
public CreateReceiptRuleRequest withRuleSetName(String ruleSetName)
The name of the rule set to which to add the rule.
- Parameters:
ruleSetName- The name of the rule set to which to add the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAfter
public void setAfter(String after)
The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
- Parameters:
after- The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
-
getAfter
public String getAfter()
The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
- Returns:
- The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
-
withAfter
public CreateReceiptRuleRequest withAfter(String after)
The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.
- Parameters:
after- The name of an existing rule after which the new rule will be placed. If this parameter is null, the new rule will be inserted at the beginning of the rule list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRule
public void setRule(ReceiptRule rule)
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
- Parameters:
rule- A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
-
getRule
public ReceiptRule getRule()
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
- Returns:
- A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
-
withRule
public CreateReceiptRuleRequest withRule(ReceiptRule rule)
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
- Parameters:
rule- A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateReceiptRuleRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-