Class ApiExecutionInfos.ApiExecutionInfoBuilder
java.lang.Object
com.dtsx.astra.sdk.utils.observability.ApiExecutionInfos.ApiExecutionInfoBuilder
- Enclosing class:
ApiExecutionInfos
Builder class for execution information
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Invoke constructor with the builder.withHttpRequest(org.apache.hc.client5.http.classic.methods.HttpUriRequestBase req) Populate after http call.voidwithHttpResponse(ApiResponseHttp httpResponse) Populate after http call.withOperationName(String operationName) Operation Name.withRequestPayload(Object payload) Populate after http call.
-
Constructor Details
-
ApiExecutionInfoBuilder
public ApiExecutionInfoBuilder()Default constructor.
-
-
Method Details
-
withRequestPayload
Populate after http call.- Parameters:
payload- current payload- Returns:
- current reference
-
withOperationName
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
Populate after http call.- Parameters:
httpResponse- http response
-
build
Invoke constructor with the builder.- Returns:
- immutable instance of execution infos.
-