Interface GetBrowserSessionResponse.Builder

  • Method Details

    • browserIdentifier

      GetBrowserSessionResponse.Builder browserIdentifier(String browserIdentifier)

      The identifier of the browser.

      Parameters:
      browserIdentifier - The identifier of the browser.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionId

      The identifier of the browser session.

      Parameters:
      sessionId - The identifier of the browser session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the browser session.

      Parameters:
      name - The name of the browser session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      The time at which the browser session was created.

      Parameters:
      createdAt - The time at which the browser session was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • viewPort

      Sets the value of the ViewPort property for this object.
      Parameters:
      viewPort - The new value for the ViewPort property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • viewPort

      Sets the value of the ViewPort property for this object. This is a convenience method that creates an instance of the ViewPort.Builder avoiding the need to create one manually via ViewPort.builder().

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

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

      GetBrowserSessionResponse.Builder sessionTimeoutSeconds(Integer sessionTimeoutSeconds)

      The timeout period for the browser session in seconds.

      Parameters:
      sessionTimeoutSeconds - The timeout period for the browser session in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the browser session. Possible values include ACTIVE, STOPPING, and STOPPED.

      Parameters:
      status - The current status of the browser session. Possible values include ACTIVE, STOPPING, and STOPPED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the browser session. Possible values include ACTIVE, STOPPING, and STOPPED.

      Parameters:
      status - The current status of the browser session. Possible values include ACTIVE, STOPPING, and STOPPED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • streams

      The streams associated with this browser session. These include the automation stream and live view stream.

      Parameters:
      streams - The streams associated with this browser session. These include the automation stream and live view stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • streams

      The streams associated with this browser session. These include the automation stream and live view stream.

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

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

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

      GetBrowserSessionResponse.Builder sessionReplayArtifact(String sessionReplayArtifact)

      The artifact containing the session replay information.

      Parameters:
      sessionReplayArtifact - The artifact containing the session replay information.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedAt

      GetBrowserSessionResponse.Builder lastUpdatedAt(Instant lastUpdatedAt)

      The time at which the browser session was last updated.

      Parameters:
      lastUpdatedAt - The time at which the browser session was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.