public java.util.List<String> getSubnets() {
        return subnets;
    }
<p>
The IDs of subnets to launch a <code>Pod</code> into. A <code>Pod</code> running on Fargate isn't assigned a
public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this
parameter.
</p>

@return The IDs of subnets to launch a <code>Pod</code> into. A <code>Pod</code> running on Fargate isn't
        assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are
        accepted for this parameter.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/CreateFargateProfileRequest.java