@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.ActionFailurePolicy
public 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.
ActionFailurePolicy
public 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.ActionFailurePolicy
public 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.ActionFailurePolicy
public 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.MailFrom
public String getMailFrom()
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
MailFrom
public 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.MailFrom
public 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.MailFrom
public 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 Object
Object.toString()
public RelayAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.