code: public void setIpAddresses(java.util.Collection<IpAddressRequest> ipAddresses) {
          if (ipAddresses == null) {
              this.ipAddresses = null;
              return;
          }
  
          this.ipAddresses = new java.util.ArrayList<IpAddressRequest>(ipAddresses);
      }
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>
  
  @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).