public static class DeliveryOptions.DeliveryOptionsBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
DeliveryOptions |
build() |
DeliveryOptions.DeliveryOptionsBuilder |
customHeaders(java.util.List<Header> customHeaders)
Include custom request headers.
|
DeliveryOptions.DeliveryOptionsBuilder |
previewApiKey(java.lang.String previewApiKey)
The Preview API key configured with your Kontent.ai account.
|
DeliveryOptions.DeliveryOptionsBuilder |
previewEndpoint(java.lang.String previewEndpoint)
The Preview endpoint address.
|
DeliveryOptions.DeliveryOptionsBuilder |
productionApiKey(java.lang.String productionApiKey)
The Production API key (Secured access API key) configured with your Kontent.ai account.
|
DeliveryOptions.DeliveryOptionsBuilder |
productionEndpoint(java.lang.String productionEndpoint)
The Production endpoint address.
|
DeliveryOptions.DeliveryOptionsBuilder |
projectId(java.lang.String projectId)
The Project ID associated with your Kontent.ai account.
|
DeliveryOptions.DeliveryOptionsBuilder |
proxyServer(java.net.Proxy proxyServer)
Sets the proxy server used by the http client.
|
DeliveryOptions.DeliveryOptionsBuilder |
retryAttempts(int retryAttempts)
Sets the number of retry attempts the client should make when a request to the API fails.
|
java.lang.String |
toString() |
DeliveryOptions.DeliveryOptionsBuilder |
usePreviewApi(boolean usePreviewApi)
This boolean flag determines if this client will use the preview API instead of the production API.
|
DeliveryOptions.DeliveryOptionsBuilder |
waitForLoadingNewContent(boolean waitForLoadingNewContent)
If the requested content has changed since the last request, the header determines whether to wait while fetching
content.
|
public DeliveryOptions.DeliveryOptionsBuilder productionEndpoint(java.lang.String productionEndpoint)
This defaults to "https://deliver.kontent.ai"
productionEndpoint - New value for the productionEndpoint in this DeliveryOptions instance.
Kontent.this.Formatterpublic DeliveryOptions.DeliveryOptionsBuilder previewEndpoint(java.lang.String previewEndpoint)
This defaults to "https://assets-us-01.kc-usercontent.com/"
previewEndpoint - New value for the productionEndpoint in this DeliveryOptions instance.this.Formatterpublic DeliveryOptions.DeliveryOptionsBuilder projectId(java.lang.String projectId)
UUID.projectId - The Project ID associated with your Kontent.ai account. Must be in the format of an
UUID.this.public DeliveryOptions.DeliveryOptionsBuilder productionApiKey(java.lang.String productionApiKey)
productionApiKey - Sets the value of the production API key (Secured access API key) in this DeliveryOptions instance.this.public DeliveryOptions.DeliveryOptionsBuilder previewApiKey(java.lang.String previewApiKey)
this.public DeliveryOptions.DeliveryOptionsBuilder usePreviewApi(boolean usePreviewApi)
usePreviewApi - Whether the preview API should be used instead of the production API. Defaults to 'false'.
production API.this.public DeliveryOptions.DeliveryOptionsBuilder waitForLoadingNewContent(boolean waitForLoadingNewContent)
waitForLoadingNewContent - New value for this DeliveryOptions instance.this.public DeliveryOptions.DeliveryOptionsBuilder retryAttempts(int retryAttempts)
retryAttempts - New value for this DeliveryOptions instance.this.public DeliveryOptions.DeliveryOptionsBuilder proxyServer(java.net.Proxy proxyServer)
Proxy.proxyServer - The Proxy instance to use with the client each request.this.public DeliveryOptions.DeliveryOptionsBuilder customHeaders(java.util.List<Header> customHeaders)
DeliveryClient.HEADER_ACCEPT, DeliveryClient.HEADER_AUTHORIZATION, DeliveryClient.HEADER_X_KC_SDK_ID, DeliveryClient.HEADER_X_KC_WAIT_FOR_LOADING_NEW_CONTENT will be ignored.this.public DeliveryOptions build()
public java.lang.String toString()
toString in class java.lang.Object