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

        this.subnets = new com.amazonaws.internal.SdkInternalList<Subnet>(subnets);
    }
<p>
Information about the subnets.
</p>

@param subnets
       Information about the subnets.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeSubnetsResult.java