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

        this.subnets = new java.util.ArrayList<String>(subnets);
    }
<p>
Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as
many as 16 subnets.
</p>

@param subnets
       Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify
       as many as 16 subnets.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/AwsVpcConfiguration.java