public void setSubnetConfigurations(java.util.Collection<SubnetConfiguration> subnetConfigurations) {
        if (subnetConfigurations == null) {
            this.subnetConfigurations = null;
            return;
        }

        this.subnetConfigurations = new com.amazonaws.internal.SdkInternalList<SubnetConfiguration>(subnetConfigurations);
    }
<p>
The subnet configurations for the endpoint.
</p>

@param subnetConfigurations
       The subnet configurations for the endpoint.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ModifyVpcEndpointRequest.java