public static final class Tankerkoenig.ApiBuilder extends Object
| Constructor and Description |
|---|
ApiBuilder()
Creates a new API builder instances
|
| Modifier and Type | Method and Description |
|---|---|
Tankerkoenig.Api |
build()
Builds the final API instance.
|
Tankerkoenig.ApiBuilder |
withApiKey(String apiKey)
Sets the personal API key
|
Tankerkoenig.ApiBuilder |
withClientExecutor(ClientExecutor clientExecutor)
Uses the specified client executor
|
Tankerkoenig.ApiBuilder |
withDefaultClientExecutor()
Uses the default client executor
|
Tankerkoenig.ApiBuilder |
withDemoApiKey()
Sets the API Key to the default key as defined on the
official website
|
public Tankerkoenig.ApiBuilder withDemoApiKey()
public Tankerkoenig.ApiBuilder withApiKey(String apiKey)
public Tankerkoenig.ApiBuilder withDefaultClientExecutor()
public Tankerkoenig.ApiBuilder withClientExecutor(ClientExecutor clientExecutor)
public Tankerkoenig.Api build()
IllegalStateException.
If no client executor is explicitly specified, will build the default client executor.
Copyright © 2017. All rights reserved.