Interface WafResponseInspection.Builder

  • Method Details

    • successCodes

      WafResponseInspection.Builder successCodes(Collection<Integer> successCodes)

      The HTTP status codes that indicate a successful attempt (for example, 200).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in failureCodes.

      Parameters:
      successCodes - The HTTP status codes that indicate a successful attempt (for example, 200).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in failureCodes.

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

      WafResponseInspection.Builder successCodes(Integer... successCodes)

      The HTTP status codes that indicate a successful attempt (for example, 200).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in failureCodes.

      Parameters:
      successCodes - The HTTP status codes that indicate a successful attempt (for example, 200).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in failureCodes.

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

      WafResponseInspection.Builder failureCodes(Collection<Integer> failureCodes)

      The HTTP status codes that indicate a failed attempt (for example, 401).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in successCodes.

      Parameters:
      failureCodes - The HTTP status codes that indicate a failed attempt (for example, 401).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in successCodes.

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

      WafResponseInspection.Builder failureCodes(Integer... failureCodes)

      The HTTP status codes that indicate a failed attempt (for example, 401).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in successCodes.

      Parameters:
      failureCodes - The HTTP status codes that indicate a failed attempt (for example, 401).

      Constraints:

      • Must contain from 1 to 10 status codes.

      • Each status code must be from 0 to 999.

      • Can't contain a status code that is also in successCodes.

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