Class ApiExecutionInfos.ApiExecutionInfoBuilder

java.lang.Object
com.dtsx.astra.sdk.utils.observability.ApiExecutionInfos.ApiExecutionInfoBuilder
Enclosing class:
ApiExecutionInfos

public static class ApiExecutionInfos.ApiExecutionInfoBuilder extends Object
Builder class for execution information
  • Constructor Details

    • ApiExecutionInfoBuilder

      public ApiExecutionInfoBuilder()
      Default constructor.
  • Method Details

    • withRequestPayload

      public ApiExecutionInfos.ApiExecutionInfoBuilder withRequestPayload(Object payload)
      Populate after http call.
      Parameters:
      payload - current payload
      Returns:
      current reference
    • withOperationName

      public ApiExecutionInfos.ApiExecutionInfoBuilder withOperationName(String operationName)
      Operation Name.
      Parameters:
      operationName - name of current operation
      Returns:
      current reference
    • withHttpRequest

      public ApiExecutionInfos.ApiExecutionInfoBuilder withHttpRequest(org.apache.hc.client5.http.classic.methods.HttpUriRequestBase req)
      Populate after http call.
      Parameters:
      req - input http request
      Returns:
      current reference
    • withHttpResponse

      public void withHttpResponse(ApiResponseHttp httpResponse)
      Populate after http call.
      Parameters:
      httpResponse - http response
    • build

      public ApiExecutionInfos build()
      Invoke constructor with the builder.
      Returns:
      immutable instance of execution infos.