Interface RequestInspection.Builder

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

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

    • payloadType

      RequestInspection.Builder payloadType(String payloadType)

      The payload type for your login endpoint, either JSON or form encoded.

      Parameters:
      payloadType - The payload type for your login endpoint, either JSON or form encoded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • payloadType

      RequestInspection.Builder payloadType(PayloadType payloadType)

      The payload type for your login endpoint, either JSON or form encoded.

      Parameters:
      payloadType - The payload type for your login endpoint, either JSON or form encoded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • usernameField

      RequestInspection.Builder usernameField(UsernameField usernameField)

      The name of the field in the request payload that contains your customer's username.

      How you specify this depends on the request inspection payload type.

      • For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.

        For example, for the JSON payload { "form": { "username": "THE_USERNAME" } }, the username field specification is /form/username.

      • For form encoded payload types, use the HTML form names.

        For example, for an HTML form with the input element named username1, the username field specification is username1

      Parameters:
      usernameField - The name of the field in the request payload that contains your customer's username.

      How you specify this depends on the request inspection payload type.

      • For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.

        For example, for the JSON payload { "form": { "username": "THE_USERNAME" } }, the username field specification is /form/username.

      • For form encoded payload types, use the HTML form names.

        For example, for an HTML form with the input element named username1, the username field specification is username1

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

      default RequestInspection.Builder usernameField(Consumer<UsernameField.Builder> usernameField)

      The name of the field in the request payload that contains your customer's username.

      How you specify this depends on the request inspection payload type.

      • For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.

        For example, for the JSON payload { "form": { "username": "THE_USERNAME" } }, the username field specification is /form/username.

      • For form encoded payload types, use the HTML form names.

        For example, for an HTML form with the input element named username1, the username field specification is username1

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

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

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

      RequestInspection.Builder passwordField(PasswordField passwordField)

      The name of the field in the request payload that contains your customer's password.

      How you specify this depends on the request inspection payload type.

      • For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.

        For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } }, the password field specification is /form/password.

      • For form encoded payload types, use the HTML form names.

        For example, for an HTML form with the input element named password1, the password field specification is password1.

      Parameters:
      passwordField - The name of the field in the request payload that contains your customer's password.

      How you specify this depends on the request inspection payload type.

      • For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.

        For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } }, the password field specification is /form/password.

      • For form encoded payload types, use the HTML form names.

        For example, for an HTML form with the input element named password1, the password field specification is password1.

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

      default RequestInspection.Builder passwordField(Consumer<PasswordField.Builder> passwordField)

      The name of the field in the request payload that contains your customer's password.

      How you specify this depends on the request inspection payload type.

      • For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.

        For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } }, the password field specification is /form/password.

      • For form encoded payload types, use the HTML form names.

        For example, for an HTML form with the input element named password1, the password field specification is password1.

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

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

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