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.Builder
ApiMetadata.getId()
public BaseApiMetadata.Builder name(String name)
name
in interface ApiMetadata.Builder
ApiMetadata.getName()
public BaseApiMetadata.Builder view(Class<? extends View> view)
view
in interface ApiMetadata.Builder
ApiMetadata.getViews()
public BaseApiMetadata.Builder view(com.google.common.reflect.TypeToken<? extends View> view)
view
in interface ApiMetadata.Builder
ApiMetadata.getViews()
public BaseApiMetadata.Builder views(Set<com.google.common.reflect.TypeToken<? extends View>> views)
views
in interface ApiMetadata.Builder
ApiMetadata.getViews()
public BaseApiMetadata.Builder endpointName(String endpointName)
endpointName
in interface ApiMetadata.Builder
ApiMetadata.getEndpointName()
public BaseApiMetadata.Builder identityName(String identityName)
identityName
in interface ApiMetadata.Builder
ApiMetadata.getIdentityName()
public BaseApiMetadata.Builder credentialName(String credentialName)
credentialName
in interface ApiMetadata.Builder
ApiMetadata.getCredentialName()
public BaseApiMetadata.Builder version(String version)
version
in interface ApiMetadata.Builder
ApiMetadata.getVersion()
public BaseApiMetadata.Builder buildVersion(String buildVersion)
buildVersion
in interface ApiMetadata.Builder
ApiMetadata.getBuildVersion()
public BaseApiMetadata.Builder defaultEndpoint(String defaultEndpoint)
defaultEndpoint
in interface ApiMetadata.Builder
ApiMetadata.getDefaultEndpoint()
public BaseApiMetadata.Builder defaultIdentity(String defaultIdentity)
defaultIdentity
in interface ApiMetadata.Builder
ApiMetadata.getDefaultIdentity()
public BaseApiMetadata.Builder defaultCredential(String defaultCredential)
defaultCredential
in interface ApiMetadata.Builder
ApiMetadata.getDefaultCredential()
public BaseApiMetadata.Builder defaultProperties(Properties defaultProperties)
defaultProperties
in interface ApiMetadata.Builder
ApiMetadata.getDefaultProperties()
public BaseApiMetadata.Builder documentation(URI documentation)
documentation
in interface ApiMetadata.Builder
ApiMetadata.getDocumentation()
public BaseApiMetadata.Builder context(com.google.common.reflect.TypeToken<? extends Context> context)
context
in interface ApiMetadata.Builder
ApiMetadata.getContext()
public BaseApiMetadata.Builder defaultModule(Class<? extends com.google.inject.Module> defaultModule)
defaultModule
in interface ApiMetadata.Builder
ApiMetadata.getDefaultModules()
public BaseApiMetadata.Builder defaultModules(Set<Class<? extends com.google.inject.Module>> defaultModules)
defaultModules
in interface ApiMetadata.Builder
ApiMetadata.getDefaultModules()
public BaseApiMetadata.Builder fromApiMetadata(ApiMetadata in)
fromApiMetadata
in interface ApiMetadata.Builder
public ApiMetadata build()
build
in interface ApiMetadata.Builder
Copyright © 2009-2013 jclouds. All Rights Reserved.