public DeleteReplicationGroupRequest withRetainPrimaryCluster(Boolean retainPrimaryCluster) {
        setRetainPrimaryCluster(retainPrimaryCluster);
        return this;
    }
<p>
If set to <code>true</code>, all of the read replicas are deleted, but the primary node is retained.
</p>

@param retainPrimaryCluster
       If set to <code>true</code>, all of the read replicas are deleted, but the primary node is retained.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/DeleteReplicationGroupRequest.java