public void setSubnetId(String subnetId) {
        this.subnetId = subnetId;
    }
<p>
The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon S3 on
Outposts provisioned.
</p>

@param subnetId
       The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon
       S3 on Outposts provisioned.
aws-java-sdk-s3outposts/src/main/java/com/amazonaws/services/s3outposts/model/CreateEndpointRequest.java