code: public AddIpRoutesRequest withIpRoutes(IpRoute... ipRoutes) {
          if (this.ipRoutes == null) {
              setIpRoutes(new com.amazonaws.internal.SdkInternalList<IpRoute>(ipRoutes.length));
          }
          for (IpRoute ele : ipRoutes) {
              this.ipRoutes.add(ele);
          }
          return this;
      }
docs: <p>
  IP address blocks, using CIDR format, of the traffic to route. This is often the IP address block of the DNS
  server used for your on-premises domain.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setIpRoutes(java.util.Collection)} or {@link #withIpRoutes(java.util.Collection)} if you want to override
  the existing values.
  </p>
  
  @param ipRoutes
  IP address blocks, using CIDR format, of the traffic to route. This is often the IP address block of the
  DNS server used for your on-premises domain.
  @return Returns a reference to this object so that method calls can be chained together.