public void setSubnetId(String subnetId) {
        this.subnetId = subnetId;
    }
<p>
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
</p>

@param subnetId
       The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateInstanceConnectEndpointRequest.java