public static class BaseApiMetadata.Builder extends Object implements ApiMetadata.Builder
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Optional<String> |
buildVersion |
protected com.google.common.reflect.TypeToken<? extends Context> |
context |
protected com.google.common.base.Optional<String> |
credentialName |
protected com.google.common.base.Optional<String> |
defaultCredential |
protected com.google.common.base.Optional<String> |
defaultEndpoint |
protected com.google.common.base.Optional<String> |
defaultIdentity |
protected Set<Class<? extends com.google.inject.Module>> |
defaultModules |
protected Properties |
defaultProperties |
protected URI |
documentation |
protected String |
endpointName |
protected String |
id |
protected String |
identityName |
protected String |
name |
protected String |
version |
protected Set<com.google.common.reflect.TypeToken<? extends View>> |
views |
| Constructor and Description |
|---|
BaseApiMetadata.Builder() |
protected String id
protected String name
protected String endpointName
protected String identityName
protected com.google.common.base.Optional<String> credentialName
protected String version
protected com.google.common.base.Optional<String> buildVersion
protected com.google.common.base.Optional<String> defaultEndpoint
protected com.google.common.base.Optional<String> defaultIdentity
protected com.google.common.base.Optional<String> defaultCredential
protected Properties defaultProperties
protected URI documentation
protected com.google.common.reflect.TypeToken<? extends Context> context
public BaseApiMetadata.Builder id(String id)
id in interface ApiMetadata.BuilderApiMetadata.getId()public BaseApiMetadata.Builder name(String name)
name in interface ApiMetadata.BuilderApiMetadata.getName()public BaseApiMetadata.Builder view(Class<? extends View> view)
view in interface ApiMetadata.BuilderApiMetadata.getViews()public BaseApiMetadata.Builder view(com.google.common.reflect.TypeToken<? extends View> view)
view in interface ApiMetadata.BuilderApiMetadata.getViews()public BaseApiMetadata.Builder views(Set<com.google.common.reflect.TypeToken<? extends View>> views)
views in interface ApiMetadata.BuilderApiMetadata.getViews()public BaseApiMetadata.Builder endpointName(String endpointName)
endpointName in interface ApiMetadata.BuilderApiMetadata.getEndpointName()public BaseApiMetadata.Builder identityName(String identityName)
identityName in interface ApiMetadata.BuilderApiMetadata.getIdentityName()public BaseApiMetadata.Builder credentialName(String credentialName)
credentialName in interface ApiMetadata.BuilderApiMetadata.getCredentialName()public BaseApiMetadata.Builder version(String version)
version in interface ApiMetadata.BuilderApiMetadata.getVersion()public BaseApiMetadata.Builder buildVersion(String buildVersion)
buildVersion in interface ApiMetadata.BuilderApiMetadata.getBuildVersion()public BaseApiMetadata.Builder defaultEndpoint(String defaultEndpoint)
defaultEndpoint in interface ApiMetadata.BuilderApiMetadata.getDefaultEndpoint()public BaseApiMetadata.Builder defaultIdentity(String defaultIdentity)
defaultIdentity in interface ApiMetadata.BuilderApiMetadata.getDefaultIdentity()public BaseApiMetadata.Builder defaultCredential(String defaultCredential)
defaultCredential in interface ApiMetadata.BuilderApiMetadata.getDefaultCredential()public BaseApiMetadata.Builder defaultProperties(Properties defaultProperties)
defaultProperties in interface ApiMetadata.BuilderApiMetadata.getDefaultProperties()public BaseApiMetadata.Builder documentation(URI documentation)
documentation in interface ApiMetadata.BuilderApiMetadata.getDocumentation()public BaseApiMetadata.Builder context(com.google.common.reflect.TypeToken<? extends Context> context)
context in interface ApiMetadata.BuilderApiMetadata.getContext()public BaseApiMetadata.Builder defaultModule(Class<? extends com.google.inject.Module> defaultModule)
defaultModule in interface ApiMetadata.BuilderApiMetadata.getDefaultModules()public BaseApiMetadata.Builder defaultModules(Set<Class<? extends com.google.inject.Module>> defaultModules)
defaultModules in interface ApiMetadata.BuilderApiMetadata.getDefaultModules()public BaseApiMetadata.Builder fromApiMetadata(ApiMetadata in)
fromApiMetadata in interface ApiMetadata.Builderpublic ApiMetadata build()
build in interface ApiMetadata.BuilderCopyright © 2009-2013 jclouds. All Rights Reserved.