Interface RuleCondition.Builder

    • Method Detail

      • field

        RuleCondition.Builder field​(String field)

        The field in the HTTP request. The following are the possible values:

        • http-header

        • http-request-method

        • host-header

        • path-pattern

        • query-string

        • source-ip

        Parameters:
        field - The field in the HTTP request. The following are the possible values:

        • http-header

        • http-request-method

        • host-header

        • path-pattern

        • query-string

        • source-ip

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

        RuleCondition.Builder values​(Collection<String> values)

        The condition value. Specify only when Field is host-header or path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig or PathPatternConfig.

        If Field is host-header and you are not using HostHeaderConfig, you can specify a single host name (for example, my.example.com) in Values. A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • - .

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

        If Field is path-pattern and you are not using PathPatternConfig, you can specify a single path pattern (for example, /img/*) in Values. A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • _ - . $ / ~ " ' @ : +

        • & (using &amp;)

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

        Parameters:
        values - The condition value. Specify only when Field is host-header or path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig or PathPatternConfig.

        If Field is host-header and you are not using HostHeaderConfig, you can specify a single host name (for example, my.example.com) in Values. A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • - .

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

        If Field is path-pattern and you are not using PathPatternConfig, you can specify a single path pattern (for example, /img/*) in Values. A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • _ - . $ / ~ " ' @ : +

        • & (using &amp;)

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

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

        RuleCondition.Builder values​(String... values)

        The condition value. Specify only when Field is host-header or path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig or PathPatternConfig.

        If Field is host-header and you are not using HostHeaderConfig, you can specify a single host name (for example, my.example.com) in Values. A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • - .

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

        If Field is path-pattern and you are not using PathPatternConfig, you can specify a single path pattern (for example, /img/*) in Values. A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • _ - . $ / ~ " ' @ : +

        • & (using &amp;)

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

        Parameters:
        values - The condition value. Specify only when Field is host-header or path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig or PathPatternConfig.

        If Field is host-header and you are not using HostHeaderConfig, you can specify a single host name (for example, my.example.com) in Values. A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • - .

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

        If Field is path-pattern and you are not using PathPatternConfig, you can specify a single path pattern (for example, /img/*) in Values. A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.

        • A-Z, a-z, 0-9

        • _ - . $ / ~ " ' @ : +

        • & (using &amp;)

        • * (matches 0 or more characters)

        • ? (matches exactly 1 character)

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

        RuleCondition.Builder hostHeaderConfig​(HostHeaderConditionConfig hostHeaderConfig)

        Information for a host header condition. Specify only when Field is host-header.

        Parameters:
        hostHeaderConfig - Information for a host header condition. Specify only when Field is host-header.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pathPatternConfig

        RuleCondition.Builder pathPatternConfig​(PathPatternConditionConfig pathPatternConfig)

        Information for a path pattern condition. Specify only when Field is path-pattern.

        Parameters:
        pathPatternConfig - Information for a path pattern condition. Specify only when Field is path-pattern.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpHeaderConfig

        RuleCondition.Builder httpHeaderConfig​(HttpHeaderConditionConfig httpHeaderConfig)

        Information for an HTTP header condition. Specify only when Field is http-header.

        Parameters:
        httpHeaderConfig - Information for an HTTP header condition. Specify only when Field is http-header.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryStringConfig

        RuleCondition.Builder queryStringConfig​(QueryStringConditionConfig queryStringConfig)

        Information for a query string condition. Specify only when Field is query-string.

        Parameters:
        queryStringConfig - Information for a query string condition. Specify only when Field is query-string.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • httpRequestMethodConfig

        RuleCondition.Builder httpRequestMethodConfig​(HttpRequestMethodConditionConfig httpRequestMethodConfig)

        Information for an HTTP method condition. Specify only when Field is http-request-method.

        Parameters:
        httpRequestMethodConfig - Information for an HTTP method condition. Specify only when Field is http-request-method.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceIpConfig

        RuleCondition.Builder sourceIpConfig​(SourceIpConditionConfig sourceIpConfig)

        Information for a source IP condition. Specify only when Field is source-ip.

        Parameters:
        sourceIpConfig - Information for a source IP condition. Specify only when Field is source-ip.
        Returns:
        Returns a reference to this object so that method calls can be chained together.