Interface Activity.Builder

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

@Mutable @NotThreadSafe public static interface Activity.Builder extends SdkPojo, CopyableBuilder<Activity.Builder,Activity>
  • Method Details

    • type

      The type of the observed activity.

      Parameters:
      type - The type of the observed activity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of the observed activity.

      Parameters:
      type - The type of the observed activity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • api

      Contains information about the API call that was observed, when the activity type is API_CALL.

      Parameters:
      api - Contains information about the API call that was observed, when the activity type is API_CALL.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • api

      Contains information about the API call that was observed, when the activity type is API_CALL.

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

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

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