Interface AsnMatchStatement.Builder

  • Method Details

    • asnList

      Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.

      Parameters:
      asnList - Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • asnList

      AsnMatchStatement.Builder asnList(Long... asnList)

      Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.

      Parameters:
      asnList - Contains one or more Autonomous System Numbers (ASNs). ASNs are unique identifiers assigned to large internet networks managed by organizations such as internet service providers, enterprises, universities, or government agencies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • forwardedIPConfig

      AsnMatchStatement.Builder forwardedIPConfig(ForwardedIPConfig forwardedIPConfig)

      The configuration for inspecting IP addresses to match against an ASN in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

      Parameters:
      forwardedIPConfig - The configuration for inspecting IP addresses to match against an ASN in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • forwardedIPConfig

      default AsnMatchStatement.Builder forwardedIPConfig(Consumer<ForwardedIPConfig.Builder> forwardedIPConfig)

      The configuration for inspecting IP addresses to match against an ASN in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to forwardedIPConfig(ForwardedIPConfig).

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