public java.util.List<String> getSubnets() {
        return subnets;
    }
<p>
The subnets that were specified for the Auto Scaling group that is associated with your node group.
</p>

@return The subnets that were specified for the Auto Scaling group that is associated with your node group.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/Nodegroup.java