public CreateClusterRequest withSubnetGroupName(String subnetGroupName) {
        setSubnetGroupName(subnetGroupName);
        return this;
    }
<p>
The name of the subnet group to be used for the cluster.
</p>

@param subnetGroupName
       The name of the subnet group to be used for the cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/CreateClusterRequest.java