Class ExecutionInfos.DataApiExecutionInfoBuilder
java.lang.Object
com.datastax.astra.internal.command.ExecutionInfos.DataApiExecutionInfoBuilder
- Enclosing class:
ExecutionInfos
Builder class for execution information
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Invoke constructor with the builder.void
withApiResponse
(ApiResponse response) Populate after http call.withCommand
(Command command) Populate after http call.void
withHttpResponse
(ApiResponseHttp httpResponse) Populate after http call.withRequestHeaders
(Map<String, List<String>> headers) Populate after http call.withRequestUrl
(String url) Populate after http call.
-
Constructor Details
-
DataApiExecutionInfoBuilder
public DataApiExecutionInfoBuilder()Default constructor.
-
-
Method Details
-
withCommand
Populate after http call.- Parameters:
command
- current command- Returns:
- current reference
-
withRequestUrl
Populate after http call.- Parameters:
url
- target url- Returns:
- current reference
-
withRequestHeaders
public ExecutionInfos.DataApiExecutionInfoBuilder withRequestHeaders(Map<String, List<String>> headers) Populate after http call.- Parameters:
headers
- request headers- Returns:
- current reference
-
withApiResponse
Populate after http call.- Parameters:
response
- current response
-
withHttpResponse
Populate after http call.- Parameters:
httpResponse
- http response
-
build
Invoke constructor with the builder.- Returns:
- immutable instance of execution infos.
-