Class Client.Builder

All Implemented Interfaces:
WithJson<Client.Builder>, ObjectBuilder<Client>
Enclosing class:
Client

public static class Client.Builder extends WithJsonObjectBuilderBase<Client.Builder> implements ObjectBuilder<Client>
Builder for Client.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

      public final Client.Builder id(@Nullable Long value)
      Unique ID for the HTTP client.

      API name: id

    • agent

      public final Client.Builder agent(@Nullable String value)
      Reported agent for the HTTP client. If unavailable, this property is not included in the response.

      API name: agent

    • localAddress

      public final Client.Builder localAddress(@Nullable String value)
      Local address for the HTTP connection.

      API name: local_address

    • remoteAddress

      public final Client.Builder remoteAddress(@Nullable String value)
      Remote address for the HTTP connection.

      API name: remote_address

    • lastUri

      public final Client.Builder lastUri(@Nullable String value)
      The URI of the client’s most recent request.

      API name: last_uri

    • openedTimeMillis

      public final Client.Builder openedTimeMillis(@Nullable Long value)
      Time at which the client opened the connection.

      API name: opened_time_millis

    • closedTimeMillis

      public final Client.Builder closedTimeMillis(@Nullable Long value)
      Time at which the client closed the connection if the connection is closed.

      API name: closed_time_millis

    • lastRequestTimeMillis

      public final Client.Builder lastRequestTimeMillis(@Nullable Long value)
      Time of the most recent request from this client.

      API name: last_request_time_millis

    • requestCount

      public final Client.Builder requestCount(@Nullable Long value)
      Number of requests from this client.

      API name: request_count

    • requestSizeBytes

      public final Client.Builder requestSizeBytes(@Nullable Long value)
      Cumulative size in bytes of all requests from this client.

      API name: request_size_bytes

    • xOpaqueId

      public final Client.Builder xOpaqueId(@Nullable String value)
      Value from the client’s x-opaque-id HTTP header. If unavailable, this property is not included in the response.

      API name: x_opaque_id

    • self

      protected Client.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Client.Builder>
    • build

      public Client build()
      Builds a Client.
      Specified by:
      build in interface ObjectBuilder<Client>
      Throws:
      NullPointerException - if some of the required fields are null.