Modifier and Type | Method and Description |
---|---|
T |
build()
Builds a new service object with the given parameters.
|
static <C,T extends Service<C>> |
forService(Class<T> serviceType)
Creates a new
ServiceBuilder for the given service interface
type. |
C |
getClient() |
ClientConfiguration |
getConfiguration() |
AWSCredentialsProvider |
getCredentials() |
String |
getEndpoint() |
Region |
getRegion() |
void |
setClient(C client) |
void |
setConfiguration(ClientConfiguration configuration) |
void |
setCredentials(AWSCredentialsProvider credentials) |
void |
setEndpoint(String endpoint) |
void |
setRegion(Region region) |
ServiceBuilder<C,T> |
withClient(C client) |
ServiceBuilder<C,T> |
withConfiguration(ClientConfiguration configuration) |
ServiceBuilder<C,T> |
withCredentials(AWSCredentialsProvider credentials) |
ServiceBuilder<C,T> |
withEndpoint(String endpoint) |
ServiceBuilder<C,T> |
withRegion(Region region) |
public static <C,T extends Service<C>> ServiceBuilder<C,T> forService(Class<T> serviceType)
ServiceBuilder
for the given service interface
type.serviceType
- the service interface typepublic C getClient()
public void setClient(C client)
client
- the client that the service being built will wrappublic ServiceBuilder<C,T> withClient(C client)
client
- the client that the service being built will wrappublic AWSCredentialsProvider getCredentials()
public void setCredentials(AWSCredentialsProvider credentials)
credentials
- the credentials this service will use to sign requestspublic ServiceBuilder<C,T> withCredentials(AWSCredentialsProvider credentials)
credentials
- the credentials this service will use to sign requestspublic ClientConfiguration getConfiguration()
public void setConfiguration(ClientConfiguration configuration)
configuration
- the client configuration for the service being builtpublic ServiceBuilder<C,T> withConfiguration(ClientConfiguration configuration)
configuration
- the client configuration for the service being builtpublic String getEndpoint()
public void setEndpoint(String endpoint)
endpoint
- the endpoint for this clientpublic ServiceBuilder<C,T> withEndpoint(String endpoint)
endpoint
- the endpoint for this clientpublic Region getRegion()
public void setRegion(Region region)
region
- the region for the service instance being builtpublic ServiceBuilder<C,T> withRegion(Region region)
region
- the region for the service instance being builtpublic T build()
Copyright © 2014. All rights reserved.