public abstract static class BaseInstance.Builder<T extends BaseInstance.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
allocatedStorageGB |
protected String |
engine |
protected String |
instanceClass |
protected String |
masterUsername |
protected com.google.common.base.Optional<String> |
name |
Constructor and Description |
---|
BaseInstance.Builder() |
Modifier and Type | Method and Description |
---|---|
T |
allocatedStorageGB(int allocatedStorageGB) |
BaseInstance |
build() |
T |
engine(String engine) |
T |
fromBaseInstance(BaseInstance in) |
T |
instanceClass(String instanceClass) |
T |
masterUsername(String masterUsername) |
T |
name(String name) |
protected abstract T |
self() |
protected com.google.common.base.Optional<String> name
protected String instanceClass
protected String engine
protected String masterUsername
protected int allocatedStorageGB
protected abstract T self()
public T name(String name)
BaseInstance.getName()
public T instanceClass(String instanceClass)
BaseInstance.getInstanceClass()
public T engine(String engine)
BaseInstance.getEngine()
public T masterUsername(String masterUsername)
BaseInstance.getMasterUsername()
public T allocatedStorageGB(int allocatedStorageGB)
BaseInstance.getAllocatedStorageGB()
public BaseInstance build()
public T fromBaseInstance(BaseInstance in)
Copyright © 2009-2013 jclouds. All Rights Reserved.