code: public CreateResolverEndpointRequest withIpAddresses(IpAddressRequest... ipAddresses) {
          if (this.ipAddresses == null) {
              setIpAddresses(new java.util.ArrayList<IpAddressRequest>(ipAddresses.length));
          }
          for (IpAddressRequest ele : ipAddresses) {
              this.ipAddresses.add(ele);
          }
          return this;
      }
docs: <p>
  The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to
  your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound resolver
  endpoints).
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setIpAddresses(java.util.Collection)} or {@link #withIpAddresses(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param ipAddresses
  The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your
  VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound
  resolver endpoints).
  @return Returns a reference to this object so that method calls can be chained together.