code: public void setSubnets(java.util.Collection<Subnet> subnets) {
          if (subnets == null) {
              this.subnets = null;
              return;
          }
  
          this.subnets = new com.amazonaws.internal.SdkInternalList<Subnet>(subnets);
      }
docs: <p>
  A list of subnets associated with the cache subnet group.
  </p>
  
  @param subnets
  A list of subnets associated with the cache subnet group.