public static class BaseProviderMetadata.Builder extends Object implements ProviderMetadata.Builder
Modifier and Type | Field and Description |
---|---|
protected ApiMetadata |
api |
protected URI |
console |
protected Properties |
defaultProperties |
protected String |
endpoint |
protected URI |
homepage |
protected String |
id |
protected Set<String> |
iso3166Codes |
protected Set<String> |
linkedServices |
protected String |
name |
Constructor and Description |
---|
BaseProviderMetadata.Builder() |
Modifier and Type | Method and Description |
---|---|
BaseProviderMetadata.Builder |
apiMetadata(ApiMetadata api) |
ProviderMetadata |
build() |
BaseProviderMetadata.Builder |
console(URI console) |
BaseProviderMetadata.Builder |
defaultProperties(Properties defaultProperties) |
BaseProviderMetadata.Builder |
endpoint(String endpoint) |
BaseProviderMetadata.Builder |
fromProviderMetadata(ProviderMetadata in) |
BaseProviderMetadata.Builder |
homepage(URI homepage) |
BaseProviderMetadata.Builder |
id(String id) |
BaseProviderMetadata.Builder |
iso3166Code(String iso3166Code) |
BaseProviderMetadata.Builder |
iso3166Codes(Iterable<String> iso3166Codes) |
BaseProviderMetadata.Builder |
iso3166Codes(String... iso3166Codes) |
BaseProviderMetadata.Builder |
linkedService(String linkedService) |
BaseProviderMetadata.Builder |
linkedServices(Iterable<String> linkedServices) |
BaseProviderMetadata.Builder |
linkedServices(String... linkedServices) |
BaseProviderMetadata.Builder |
name(String name) |
protected String id
protected String name
protected ApiMetadata api
protected String endpoint
protected Properties defaultProperties
protected URI console
protected URI homepage
public BaseProviderMetadata.Builder id(String id)
id
in interface ProviderMetadata.Builder
ProviderMetadata.getId()
public BaseProviderMetadata.Builder name(String name)
name
in interface ProviderMetadata.Builder
ProviderMetadata.getName()
public BaseProviderMetadata.Builder apiMetadata(ApiMetadata api)
apiMetadata
in interface ProviderMetadata.Builder
ProviderMetadata.getApiMetadata()
public BaseProviderMetadata.Builder endpoint(String endpoint)
endpoint
in interface ProviderMetadata.Builder
ProviderMetadata.getEndpoint()
public BaseProviderMetadata.Builder defaultProperties(Properties defaultProperties)
defaultProperties
in interface ProviderMetadata.Builder
ProviderMetadata.getDefaultProperties()
public BaseProviderMetadata.Builder console(@Nullable URI console)
console
in interface ProviderMetadata.Builder
ProviderMetadata.getConsole()
public BaseProviderMetadata.Builder homepage(URI homepage)
homepage
in interface ProviderMetadata.Builder
ProviderMetadata.getHomepage()
public BaseProviderMetadata.Builder linkedServices(Iterable<String> linkedServices)
linkedServices
in interface ProviderMetadata.Builder
ProviderMetadata.getLinkedServices()
public BaseProviderMetadata.Builder linkedServices(String... linkedServices)
linkedServices
in interface ProviderMetadata.Builder
ProviderMetadata.getLinkedServices()
public BaseProviderMetadata.Builder linkedService(String linkedService)
linkedService
in interface ProviderMetadata.Builder
ProviderMetadata.getLinkedServices()
public BaseProviderMetadata.Builder iso3166Codes(Iterable<String> iso3166Codes)
iso3166Codes
in interface ProviderMetadata.Builder
ProviderMetadata#getIso3166Code()
public BaseProviderMetadata.Builder iso3166Codes(String... iso3166Codes)
iso3166Codes
in interface ProviderMetadata.Builder
ProviderMetadata#getIso3166Code()
public BaseProviderMetadata.Builder iso3166Code(String iso3166Code)
iso3166Code
in interface ProviderMetadata.Builder
ProviderMetadata#getIso3166Code()
public BaseProviderMetadata.Builder fromProviderMetadata(ProviderMetadata in)
fromProviderMetadata
in interface ProviderMetadata.Builder
public ProviderMetadata build()
build
in interface ProviderMetadata.Builder
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.