public class ApiClientFactory
extends java.lang.Object
Constructor and Description |
---|
ApiClientFactory() |
Modifier and Type | Method and Description |
---|---|
ApiClientFactory |
apiKey(java.lang.String apiKey)
Sets the apiKey in header for each call to endpoint.
|
<T> T |
build(java.lang.Class<T> apiClass)
Instantiates a client for the given API.
|
ApiClientFactory |
clientConfiguration(ClientConfiguration clientConfiguration)
Specify the client configuration to use with this factory
|
ApiClientFactory |
credentialsProvider(AWSCredentialsProvider provider)
Sets the credentials provider, needed if APIs require authentication.
|
ApiClientFactory |
endpoint(java.lang.String endpoint)
Sets the endpoint of the APIs.
|
ApiClientFactory |
region(java.lang.String region)
Sets the region of the endpoint.
|
public ApiClientFactory endpoint(java.lang.String endpoint)
endpoint
- endpoint urlpublic ApiClientFactory apiKey(java.lang.String apiKey)
apiKey
- to send in headerpublic ApiClientFactory region(java.lang.String region)
region
- a region stringpublic ApiClientFactory clientConfiguration(ClientConfiguration clientConfiguration)
clientConfiguration
- Configuration to usepublic ApiClientFactory credentialsProvider(AWSCredentialsProvider provider)
provider
- an AWS credentials providerpublic <T> T build(java.lang.Class<T> apiClass)
T
- the api client interface.apiClass
- API class defined in API Gateway.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.