public Replication withFailureMessages(String... failureMessages) {
        if (this.failureMessages == null) {
            setFailureMessages(new java.util.ArrayList<String>(failureMessages.length));
        }
        for (String ele : failureMessages) {
            this.failureMessages.add(ele);
        }
        return this;
    }
<p>
Error and other information about why a serverless replication failed.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFailureMessages(java.util.Collection)} or {@link #withFailureMessages(java.util.Collection)} if you
want to override the existing values.
</p>

@param failureMessages
       Error and other information about why a serverless replication failed.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dms/src/main/java/com/amazonaws/services/databasemigrationservice/model/Replication.java