public DescribeReplicationInstancesResult withReplicationInstances(ReplicationInstance... replicationInstances) {
        if (this.replicationInstances == null) {
            setReplicationInstances(new java.util.ArrayList<ReplicationInstance>(replicationInstances.length));
        }
        for (ReplicationInstance ele : replicationInstances) {
            this.replicationInstances.add(ele);
        }
        return this;
    }
<p>
The replication instances described.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReplicationInstances(java.util.Collection)} or {@link #withReplicationInstances(java.util.Collection)}
if you want to override the existing values.
</p>

@param replicationInstances
       The replication instances described.
@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/DescribeReplicationInstancesResult.java