Interface CustomHTTPHeader.Builder

    • Method Detail

      • name

        CustomHTTPHeader.Builder name​(String name)

        The name of the custom header.

        For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

        Parameters:
        name - The name of the custom header.

        For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

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

        CustomHTTPHeader.Builder value​(String value)

        The value of the custom header.

        Parameters:
        value - The value of the custom header.
        Returns:
        Returns a reference to this object so that method calls can be chained together.