public FargateProfile withSubnets(java.util.Collection<String> subnets) {
        setSubnets(subnets);
        return this;
    }
<p>
The IDs of subnets to launch a <code>Pod</code> into.
</p>

@param subnets
       The IDs of subnets to launch a <code>Pod</code> into.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/FargateProfile.java