public abstract static class ServiceOffering.Builder<T extends ServiceOffering.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
cpuNumber |
protected int |
cpuSpeed |
protected boolean |
cpuUseLimited |
protected Date |
created |
protected boolean |
defaultUse |
protected String |
displayText |
protected String |
domain |
protected String |
domainId |
protected boolean |
haSupport |
protected String |
id |
protected int |
memory |
protected String |
name |
protected long |
networkRate |
protected StorageType |
storageType |
protected boolean |
systemOffering |
protected boolean |
systemVmType |
protected com.google.common.collect.ImmutableSet.Builder<String> |
tags |
Constructor and Description |
---|
ServiceOffering.Builder() |
Modifier and Type | Method and Description |
---|---|
ServiceOffering |
build() |
T |
cpuNumber(int cpuNumber) |
T |
cpuSpeed(int cpuSpeed) |
T |
cpuUseLimited(boolean cpuUseLimited) |
T |
created(Date created) |
T |
defaultUse(boolean defaultUse) |
T |
displayText(String displayText) |
T |
domain(String domain) |
T |
domainId(String domainId) |
T |
fromServiceOffering(ServiceOffering in) |
T |
id(String id) |
T |
memory(int memory) |
T |
name(String name) |
T |
networkRate(long networkRate) |
protected abstract T |
self() |
T |
storageType(StorageType storageType) |
T |
supportsHA(boolean haSupport) |
T |
systemOffering(boolean systemOffering) |
T |
systemVmType(boolean systemVmType) |
T |
tag(String tag) |
T |
tags(Iterable<String> tags) |
protected String id
protected String name
protected String displayText
protected Date created
protected String domain
protected String domainId
protected int cpuNumber
protected int cpuSpeed
protected int memory
protected boolean haSupport
protected StorageType storageType
protected boolean defaultUse
protected boolean systemOffering
protected boolean cpuUseLimited
protected long networkRate
protected boolean systemVmType
protected com.google.common.collect.ImmutableSet.Builder<String> tags
protected abstract T self()
public T id(String id)
ServiceOffering.getId()
public T name(String name)
ServiceOffering.getName()
public T displayText(String displayText)
ServiceOffering.getDisplayText()
public T created(Date created)
ServiceOffering.getCreated()
public T domain(String domain)
ServiceOffering.getDomain()
public T domainId(String domainId)
ServiceOffering.getDomainId()
public T cpuNumber(int cpuNumber)
ServiceOffering.getCpuNumber()
public T cpuSpeed(int cpuSpeed)
ServiceOffering.getCpuSpeed()
public T memory(int memory)
ServiceOffering.getMemory()
public T supportsHA(boolean haSupport)
ServiceOffering.supportsHA()
public T storageType(StorageType storageType)
ServiceOffering.getStorageType()
public T tags(Iterable<String> tags)
ServiceOffering.getTags()
public T tag(String tag)
ServiceOffering.getTags()
public T defaultUse(boolean defaultUse)
ServiceOffering.isDefaultUse()
public T systemOffering(boolean systemOffering)
ServiceOffering.isSystemOffering()
public T cpuUseLimited(boolean cpuUseLimited)
ServiceOffering.isCpuUseLimited()
public T networkRate(long networkRate)
ServiceOffering.getNetworkRate()
public T systemVmType(boolean systemVmType)
ServiceOffering.isSystemVmType()
public ServiceOffering build()
public T fromServiceOffering(ServiceOffering in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.