Interface Location.Builder

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

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

    • codeLocation

      Location.Builder codeLocation(CodeLocation codeLocation)

      A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.

      Parameters:
      codeLocation - A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codeLocation

      default Location.Builder codeLocation(Consumer<CodeLocation.Builder> codeLocation)

      A code location for code-level instrumentation, including language, code unit, class, method, file path, and optional line number.

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

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

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