public CreateEndpointAccessResult withSubnetGroupName(String subnetGroupName) {
        setSubnetGroupName(subnetGroupName);
        return this;
    }
<p>
The subnet group name where Amazon Redshift chooses to deploy the endpoint.
</p>

@param subnetGroupName
       The subnet group name where Amazon Redshift chooses to deploy the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/CreateEndpointAccessResult.java