@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RelayAction extends Object implements Serializable, Cloneable, StructuredPojo
The action relays the email via SMTP to another specific SMTP server.
| Constructor and Description |
|---|
RelayAction() |
| Modifier and Type | Method and Description |
|---|---|
RelayAction |
clone() |
boolean |
equals(Object obj) |
String |
getActionFailurePolicy()
A policy that states what to do in the case of failure.
|
String |
getMailFrom()
This action specifies whether to preserve or replace original mail from address while relaying received emails to
a destination server.
|
String |
getRelay()
The identifier of the relay resource to be used when relaying an email.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setActionFailurePolicy(String actionFailurePolicy)
A policy that states what to do in the case of failure.
|
void |
setMailFrom(String mailFrom)
This action specifies whether to preserve or replace original mail from address while relaying received emails to
a destination server.
|
void |
setRelay(String relay)
The identifier of the relay resource to be used when relaying an email.
|
String |
toString()
Returns a string representation of this object.
|
RelayAction |
withActionFailurePolicy(ActionFailurePolicy actionFailurePolicy)
A policy that states what to do in the case of failure.
|
RelayAction |
withActionFailurePolicy(String actionFailurePolicy)
A policy that states what to do in the case of failure.
|
RelayAction |
withMailFrom(MailFrom mailFrom)
This action specifies whether to preserve or replace original mail from address while relaying received emails to
a destination server.
|
RelayAction |
withMailFrom(String mailFrom)
This action specifies whether to preserve or replace original mail from address while relaying received emails to
a destination server.
|
RelayAction |
withRelay(String relay)
The identifier of the relay resource to be used when relaying an email.
|
public void setActionFailurePolicy(String actionFailurePolicy)
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.
actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration
errors. For example, the specified relay has been deleted.ActionFailurePolicypublic String getActionFailurePolicy()
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.
ActionFailurePolicypublic RelayAction withActionFailurePolicy(String actionFailurePolicy)
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.
actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration
errors. For example, the specified relay has been deleted.ActionFailurePolicypublic RelayAction withActionFailurePolicy(ActionFailurePolicy actionFailurePolicy)
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.
actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration
errors. For example, the specified relay has been deleted.ActionFailurePolicypublic void setMailFrom(String mailFrom)
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
mailFrom - This action specifies whether to preserve or replace original mail from address while relaying received
emails to a destination server.MailFrompublic String getMailFrom()
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
MailFrompublic RelayAction withMailFrom(String mailFrom)
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
mailFrom - This action specifies whether to preserve or replace original mail from address while relaying received
emails to a destination server.MailFrompublic RelayAction withMailFrom(MailFrom mailFrom)
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
mailFrom - This action specifies whether to preserve or replace original mail from address while relaying received
emails to a destination server.MailFrompublic void setRelay(String relay)
The identifier of the relay resource to be used when relaying an email.
relay - The identifier of the relay resource to be used when relaying an email.public String getRelay()
The identifier of the relay resource to be used when relaying an email.
public RelayAction withRelay(String relay)
The identifier of the relay resource to be used when relaying an email.
relay - The identifier of the relay resource to be used when relaying an email.public String toString()
toString in class ObjectObject.toString()public RelayAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.