Package org.jclouds.apis.internal
Class BaseApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- java.lang.Object
-
- org.jclouds.apis.internal.BaseApiMetadata.Builder<T>
-
- All Implemented Interfaces:
ApiMetadata.Builder<T>
- Direct Known Subclasses:
BaseHttpApiMetadata.Builder
,BYONApiMetadata.Builder
,FilesystemApiMetadata.Builder
,ServerManagerApiMetadata.Builder
,StubApiMetadata.Builder
,TransientApiMetadata.Builder
- Enclosing class:
- BaseApiMetadata
public abstract static class BaseApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>> extends Object implements ApiMetadata.Builder<T>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
buildVersion(String buildVersion)
T
context(com.google.common.reflect.TypeToken<? extends Context> context)
T
credentialName(String credentialName)
T
defaultCredential(String defaultCredential)
T
defaultEndpoint(String defaultEndpoint)
T
defaultIdentity(String defaultIdentity)
T
defaultModule(Class<? extends com.google.inject.Module> defaultModule)
T
defaultModules(Set<Class<? extends com.google.inject.Module>> defaultModules)
T
defaultProperties(Properties defaultProperties)
T
documentation(URI documentation)
T
endpointName(String endpointName)
T
fromApiMetadata(ApiMetadata in)
T
id(String id)
T
identityName(String identityName)
T
name(String name)
protected abstract T
self()
T
version(String version)
T
view(com.google.common.reflect.TypeToken<? extends View> view)
T
view(Class<? extends View> view)
T
views(Set<com.google.common.reflect.TypeToken<? extends View>> views)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jclouds.apis.ApiMetadata.Builder
build
-
-
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(String id)
- Specified by:
id
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getId()
-
name
public T name(String name)
- Specified by:
name
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getName()
-
view
public T view(Class<? extends View> view)
- Specified by:
view
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getViews()
-
view
public T view(com.google.common.reflect.TypeToken<? extends View> view)
- Specified by:
view
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getViews()
-
views
public T views(Set<com.google.common.reflect.TypeToken<? extends View>> views)
- Specified by:
views
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getViews()
-
endpointName
public T endpointName(String endpointName)
- Specified by:
endpointName
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getEndpointName()
-
identityName
public T identityName(String identityName)
- Specified by:
identityName
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getIdentityName()
-
credentialName
public T credentialName(String credentialName)
- Specified by:
credentialName
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getCredentialName()
-
version
public T version(String version)
- Specified by:
version
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getVersion()
-
buildVersion
public T buildVersion(String buildVersion)
- Specified by:
buildVersion
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getBuildVersion()
-
defaultEndpoint
public T defaultEndpoint(String defaultEndpoint)
- Specified by:
defaultEndpoint
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDefaultEndpoint()
-
defaultIdentity
public T defaultIdentity(String defaultIdentity)
- Specified by:
defaultIdentity
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDefaultIdentity()
-
defaultCredential
public T defaultCredential(String defaultCredential)
- Specified by:
defaultCredential
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDefaultCredential()
-
defaultProperties
public T defaultProperties(Properties defaultProperties)
- Specified by:
defaultProperties
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDefaultProperties()
-
documentation
public T documentation(URI documentation)
- Specified by:
documentation
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDocumentation()
-
context
public T context(com.google.common.reflect.TypeToken<? extends Context> context)
- Specified by:
context
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getContext()
-
defaultModule
public T defaultModule(Class<? extends com.google.inject.Module> defaultModule)
- Specified by:
defaultModule
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDefaultModules()
-
defaultModules
public T defaultModules(Set<Class<? extends com.google.inject.Module>> defaultModules)
- Specified by:
defaultModules
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
- See Also:
ApiMetadata.getDefaultModules()
-
fromApiMetadata
public T fromApiMetadata(ApiMetadata in)
- Specified by:
fromApiMetadata
in interfaceApiMetadata.Builder<T extends BaseApiMetadata.Builder<T>>
-
-