Class RelayAction
- java.lang.Object
-
- software.amazon.awssdk.services.mailmanager.model.RelayAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RelayAction.Builder,RelayAction>
@Generated("software.amazon.awssdk:codegen") public final class RelayAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RelayAction.Builder,RelayAction>
The action relays the email via SMTP to another specific SMTP server.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRelayAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionFailurePolicyactionFailurePolicy()A policy that states what to do in the case of failure.StringactionFailurePolicyAsString()A policy that states what to do in the case of failure.static RelayAction.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MailFrommailFrom()This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.StringmailFromAsString()This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.Stringrelay()The identifier of the relay resource to be used when relaying an email.List<SdkField<?>>sdkFields()static Class<? extends RelayAction.Builder>serializableBuilderClass()RelayAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
actionFailurePolicy
public final 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.
If the service returns an enum value that is not available in the current SDK version,
actionFailurePolicywill returnActionFailurePolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionFailurePolicyAsString().- Returns:
- 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.
- See Also:
ActionFailurePolicy
-
actionFailurePolicyAsString
public final String actionFailurePolicyAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
actionFailurePolicywill returnActionFailurePolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionFailurePolicyAsString().- Returns:
- 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.
- See Also:
ActionFailurePolicy
-
mailFrom
public final MailFrom mailFrom()
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
If the service returns an enum value that is not available in the current SDK version,
mailFromwill returnMailFrom.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommailFromAsString().- Returns:
- This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
- See Also:
MailFrom
-
mailFromAsString
public final String mailFromAsString()
This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
If the service returns an enum value that is not available in the current SDK version,
mailFromwill returnMailFrom.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommailFromAsString().- Returns:
- This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.
- See Also:
MailFrom
-
relay
public final String relay()
The identifier of the relay resource to be used when relaying an email.
- Returns:
- The identifier of the relay resource to be used when relaying an email.
-
toBuilder
public RelayAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RelayAction.Builder,RelayAction>
-
builder
public static RelayAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends RelayAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-