public class CreateReceiptRuleRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
after
The name of an existing rule after which the new rule will be placed.
|
private ReceiptRule |
rule
A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.
|
private java.lang.String |
ruleSetName
The name of the rule set to which to add the rule.
|
NOOP
Constructor and Description |
---|
CreateReceiptRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateReceiptRuleRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAfter()
The name of an existing rule after which the new rule will be placed.
|
ReceiptRule |
getRule()
A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.
|
java.lang.String |
getRuleSetName()
The name of the rule set to which to add the rule.
|
int |
hashCode() |
void |
setAfter(java.lang.String after)
The name of an existing rule after which the new rule will be placed.
|
void |
setRule(ReceiptRule rule)
A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.
|
void |
setRuleSetName(java.lang.String ruleSetName)
The name of the rule set to which to add the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateReceiptRuleRequest |
withAfter(java.lang.String after)
The name of an existing rule after which the new rule will be placed.
|
CreateReceiptRuleRequest |
withRule(ReceiptRule rule)
A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.
|
CreateReceiptRuleRequest |
withRuleSetName(java.lang.String ruleSetName)
The name of the rule set to which to add the rule.
|
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
private java.lang.String ruleSetName
The name of the rule set to which to add the rule.
private java.lang.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.
private ReceiptRule rule
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
public void setRuleSetName(java.lang.String ruleSetName)
The name of the rule set to which to add the rule.
ruleSetName
- The name of the rule set to which to add the rule.public java.lang.String getRuleSetName()
The name of the rule set to which to add the rule.
public CreateReceiptRuleRequest withRuleSetName(java.lang.String ruleSetName)
The name of the rule set to which to add the rule.
ruleSetName
- The name of the rule set to which to add the rule.public void setAfter(java.lang.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.
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.public java.lang.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.
public CreateReceiptRuleRequest withAfter(java.lang.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.
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.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.
rule
- A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.public ReceiptRule getRule()
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
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.
rule
- A data structure that contains the specified rule's name, actions,
recipients, domains, enabled status, scan status, and TLS policy.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateReceiptRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()