/** * <p> * The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP address range (in CIDR notation) that web * requests originate from. If the <code>WebACL</code> is associated with a CloudFront distribution and the viewer * did not use an HTTP proxy or a load balancer to send the request, this is the value of the c-ip field in the * CloudFront access logs. * </p> * * @param iPSetDescriptors * The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP address range (in CIDR notation) * that web requests originate from. If the <code>WebACL</code> is associated with a CloudFront distribution * and the viewer did not use an HTTP proxy or a load balancer to send the request, this is the value of the * c-ip field in the CloudFront access logs. * @return Returns a reference to this object so that method calls can be chained together. */ public IPSet withIPSetDescriptors(java.util.Collection<IPSetDescriptor> iPSetDescriptors) { setIPSetDescriptors(iPSetDescriptors); return this; }
/** * <p> * The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP address range (in CIDR notation) that web * requests originate from. If the <code>WebACL</code> is associated with a CloudFront distribution and the viewer * did not use an HTTP proxy or a load balancer to send the request, this is the value of the c-ip field in the * CloudFront access logs. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIPSetDescriptors(java.util.Collection)} or {@link #withIPSetDescriptors(java.util.Collection)} if you * want to override the existing values. * </p> * * @param iPSetDescriptors * The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP address range (in CIDR notation) * that web requests originate from. If the <code>WebACL</code> is associated with a CloudFront distribution * and the viewer did not use an HTTP proxy or a load balancer to send the request, this is the value of the * c-ip field in the CloudFront access logs. * @return Returns a reference to this object so that method calls can be chained together. */ public IPSet withIPSetDescriptors(IPSetDescriptor... iPSetDescriptors) { if (this.iPSetDescriptors == null) { setIPSetDescriptors(new java.util.ArrayList<IPSetDescriptor>(iPSetDescriptors.length)); } for (IPSetDescriptor ele : iPSetDescriptors) { this.iPSetDescriptors.add(ele); } return this; }
iPSet.setIPSetDescriptors(new ListUnmarshaller<IPSetDescriptor>(IPSetDescriptorJsonUnmarshaller.getInstance()).unmarshall(context));
iPSet.setIPSetDescriptors(new ListUnmarshaller<IPSetDescriptor>(IPSetDescriptorJsonUnmarshaller.getInstance()).unmarshall(context));