public static interface RequestOverrideConfiguration.Builder<B extends RequestOverrideConfiguration.Builder>
| Modifier and Type | Method and Description |
|---|---|
B |
addApiName(ApiName apiName)
Set the optional name of the higher level library that constructed the request.
|
B |
addApiName(Consumer<ApiName.Builder> apiNameConsumer)
Set the optional name of the higher level library that constructed the request.
|
List<ApiName> |
apiNames()
The optional names of the higher level libraries that constructed the request.
|
RequestOverrideConfiguration |
build()
Create a new
SdkRequestOverrideConfiguration with the properties set on this builder. |
Map<String,List<String>> |
headers()
Optional additional headers to be added to the HTTP request.
|
B |
headers(Map<String,List<String>> headers)
Add additional headers to be set on the HTTP request.
|
B |
putHeader(String name,
List<String> values)
Add a single header with multiple values to be set on the HTTP request.
|
default B |
putHeader(String name,
String value)
Add a single header to be set on the HTTP request.
|
B |
putRawQueryParameter(String name,
List<String> values)
Add a single query parameter with multiple values to be set on the HTTP request.
|
default B |
putRawQueryParameter(String name,
String value)
Add a single query parameter to be set on the HTTP request.
|
Map<String,List<String>> |
rawQueryParameters()
Optional additional query parameters to be added to the HTTP request.
|
B |
rawQueryParameters(Map<String,List<String>> rawQueryParameters)
Configure query parameters to be set on the HTTP request.
|
Map<String,List<String>> headers()
default B putHeader(String name, String value)
This overrides any values already configured with this header name in the builder.
name - The name of the header.value - The value of the header.B putHeader(String name, List<String> values)
This overrides any values already configured with this header name in the builder.
name - The name of the header.values - The values of the header.B headers(Map<String,List<String>> headers)
This completely overrides any values currently configured in the builder.
headers - The set of additional headers.Map<String,List<String>> rawQueryParameters()
default B putRawQueryParameter(String name, String value)
This overrides any values already configured with this query name in the builder.
name - The query parameter name.value - The query parameter value.B putRawQueryParameter(String name, List<String> values)
This overrides any values already configured with this query name in the builder.
name - The query parameter name.values - The query parameter values.B rawQueryParameters(Map<String,List<String>> rawQueryParameters)
This completely overrides any query parameters currently configured in the builder.
rawQueryParameters - The set of additional query parameters.List<ApiName> apiNames()
B addApiName(ApiName apiName)
apiName - The name of the library.B addApiName(Consumer<ApiName.Builder> apiNameConsumer)
apiNameConsumer - A Consumer that accepts a ApiName.Builder.RequestOverrideConfiguration build()
SdkRequestOverrideConfiguration with the properties set on this builder.SdkRequestOverrideConfiguration.Copyright © 2018. All rights reserved.