public DescribeReplicationGroupsResult withReplicationGroups(ReplicationGroup... replicationGroups) {
        if (this.replicationGroups == null) {
            setReplicationGroups(new com.amazonaws.internal.SdkInternalList<ReplicationGroup>(replicationGroups.length));
        }
        for (ReplicationGroup ele : replicationGroups) {
            this.replicationGroups.add(ele);
        }
        return this;
    }
public DescribeReplicationGroupsResult withReplicationGroups ( ReplicationGroup ... replicationGroups ) { if ( this . replicationGroups == null ) { setReplicationGroups ( new com . amazonaws . internal . SdkInternalList < ReplicationGroup > ( replicationGroups . length ) ) ; } for ( ReplicationGroup ele : replicationGroups ) { this . replicationGroups . add ( ele ) ; } return this ; }
<p>
A list of replication groups. Each item in the list contains detailed information about one replication group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReplicationGroups(java.util.Collection)} or {@link #withReplicationGroups(java.util.Collection)} if
you want to override the existing values.
</p>

@param replicationGroups
A list of replication groups. Each item in the list contains detailed information about one replication
group.
@return Returns a reference to this object so that method calls can be chained together.