public RelayAction withActionFailurePolicy(String actionFailurePolicy) {
        setActionFailurePolicy(actionFailurePolicy);
        return this;
    }
<p>
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.
</p>

@param 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.
@return Returns a reference to this object so that method calls can be chained together.
@see ActionFailurePolicy
aws-java-sdk-mailmanager/src/main/java/com/amazonaws/services/mailmanager/model/RelayAction.java