Interface IPSet.Builder

All Superinterfaces:
Buildable, CopyableBuilder<IPSet.Builder,IPSet>, SdkBuilder<IPSet.Builder,IPSet>, SdkPojo
Enclosing class:
IPSet

public static interface IPSet.Builder extends SdkPojo, CopyableBuilder<IPSet.Builder,IPSet>
  • Method Details

    • ipSetId

      IPSet.Builder ipSetId(String ipSetId)

      The IPSetId for an IPSet. You use IPSetId to get information about an IPSet (see GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from AWS WAF (see DeleteIPSet).

      IPSetId is returned by CreateIPSet and by ListIPSets.

      Parameters:
      ipSetId - The IPSetId for an IPSet. You use IPSetId to get information about an IPSet (see GetIPSet), update an IPSet (see UpdateIPSet), insert an IPSet into a Rule or delete one from a Rule (see UpdateRule), and delete an IPSet from AWS WAF (see DeleteIPSet).

      IPSetId is returned by CreateIPSet and by ListIPSets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      IPSet.Builder name(String name)

      A friendly name or description of the IPSet. You can't change the name of an IPSet after you create it.

      Parameters:
      name - A friendly name or description of the IPSet. You can't change the name of an IPSet after you create it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipSetDescriptors

      IPSet.Builder ipSetDescriptors(Collection<IPSetDescriptor> ipSetDescriptors)

      The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL 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.

      Parameters:
      ipSetDescriptors - The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipSetDescriptors

      IPSet.Builder ipSetDescriptors(IPSetDescriptor... ipSetDescriptors)

      The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL 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.

      Parameters:
      ipSetDescriptors - The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ipSetDescriptors

      IPSet.Builder ipSetDescriptors(Consumer<IPSetDescriptor.Builder>... ipSetDescriptors)

      The IP address type (IPV4 or IPV6) and the IP address range (in CIDR notation) that web requests originate from. If the WebACL 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.

      This is a convenience method that creates an instance of the IPSetDescriptor.Builder avoiding the need to create one manually via IPSetDescriptor.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ipSetDescriptors(List<IPSetDescriptor>).

      Parameters:
      ipSetDescriptors - a consumer that will call methods on IPSetDescriptor.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: