public void setSubnets(java.util.Collection<String> subnets) {
        if (subnets == null) {
            this.subnets = null;
            return;
        }

        this.subnets = new java.util.ArrayList<String>(subnets);
    }
<p>
The IDs of the subnets associated with the task or service.
</p>
<p>
You can provide up to 16 subnets.
</p>

@param subnets
       The IDs of the subnets associated with the task or service.</p>
       <p>
       You can provide up to 16 subnets.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails.java