public VpcConnector withSubnets(java.util.Collection<String> subnets) {
        setSubnets(subnets);
        return this;
    }
<p>
A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon VPC.
</p>

@param subnets
       A list of IDs of subnets that App Runner uses for your service. All IDs are of subnets of a single Amazon
       VPC.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-apprunner/src/main/java/com/amazonaws/services/apprunner/model/VpcConnector.java