public Cluster withSubnetIds(java.util.Collection<String> subnetIds) {
        setSubnetIds(subnetIds);
        return this;
    }
<p>
The Amazon EC2 subnet IDs for the elastic cluster.
</p>

@param subnetIds
       The Amazon EC2 subnet IDs for the elastic cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdbelastic/src/main/java/com/amazonaws/services/docdbelastic/model/Cluster.java