@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAddHeader() != null)
            sb.append("AddHeader: ").append(getAddHeader()).append(",");
        if (getArchive() != null)
            sb.append("Archive: ").append(getArchive()).append(",");
        if (getDeliverToMailbox() != null)
            sb.append("DeliverToMailbox: ").append(getDeliverToMailbox()).append(",");
        if (getDrop() != null)
            sb.append("Drop: ").append(getDrop()).append(",");
        if (getRelay() != null)
            sb.append("Relay: ").append(getRelay()).append(",");
        if (getReplaceRecipient() != null)
            sb.append("ReplaceRecipient: ").append(getReplaceRecipient()).append(",");
        if (getSend() != null)
            sb.append("Send: ").append(getSend()).append(",");
        if (getWriteToS3() != null)
            sb.append("WriteToS3: ").append(getWriteToS3());
        sb.append("}");
        return sb.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.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-mailmanager/src/main/java/com/amazonaws/services/mailmanager/model/RuleAction.java