org.jclouds.cloudstack.domain
Class ServiceOffering.Builder<T extends ServiceOffering.Builder<T>>

java.lang.Object
  extended by org.jclouds.cloudstack.domain.ServiceOffering.Builder<T>
Enclosing class:
ServiceOffering

public abstract static class ServiceOffering.Builder<T extends ServiceOffering.Builder<T>>
extends Object


Field Summary
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 Summary
ServiceOffering.Builder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

name

protected String name

displayText

protected String displayText

created

protected Date created

domain

protected String domain

domainId

protected String domainId

cpuNumber

protected int cpuNumber

cpuSpeed

protected int cpuSpeed

memory

protected int memory

haSupport

protected boolean haSupport

storageType

protected StorageType storageType

defaultUse

protected boolean defaultUse

systemOffering

protected boolean systemOffering

cpuUseLimited

protected boolean cpuUseLimited

networkRate

protected long networkRate

systemVmType

protected boolean systemVmType

tags

protected com.google.common.collect.ImmutableSet.Builder<String> tags
Constructor Detail

ServiceOffering.Builder

public ServiceOffering.Builder()
Method Detail

self

protected abstract T self()

id

public T id(String id)
See Also:
ServiceOffering.getId()

name

public T name(String name)
See Also:
ServiceOffering.getName()

displayText

public T displayText(String displayText)
See Also:
ServiceOffering.getDisplayText()

created

public T created(Date created)
See Also:
ServiceOffering.getCreated()

domain

public T domain(String domain)
See Also:
ServiceOffering.getDomain()

domainId

public T domainId(String domainId)
See Also:
ServiceOffering.getDomainId()

cpuNumber

public T cpuNumber(int cpuNumber)
See Also:
ServiceOffering.getCpuNumber()

cpuSpeed

public T cpuSpeed(int cpuSpeed)
See Also:
ServiceOffering.getCpuSpeed()

memory

public T memory(int memory)
See Also:
ServiceOffering.getMemory()

supportsHA

public T supportsHA(boolean haSupport)
See Also:
ServiceOffering.supportsHA()

storageType

public T storageType(StorageType storageType)
See Also:
ServiceOffering.getStorageType()

tags

public T tags(Iterable<String> tags)
See Also:
ServiceOffering.getTags()

tag

public T tag(String tag)
See Also:
ServiceOffering.getTags()

defaultUse

public T defaultUse(boolean defaultUse)
See Also:
ServiceOffering.isDefaultUse()

systemOffering

public T systemOffering(boolean systemOffering)
See Also:
ServiceOffering.isSystemOffering()

cpuUseLimited

public T cpuUseLimited(boolean cpuUseLimited)
See Also:
ServiceOffering.isCpuUseLimited()

networkRate

public T networkRate(long networkRate)
See Also:
ServiceOffering.getNetworkRate()

systemVmType

public T systemVmType(boolean systemVmType)
See Also:
ServiceOffering.isSystemVmType()

build

public ServiceOffering build()

fromServiceOffering

public T fromServiceOffering(ServiceOffering in)


Copyright © 2009-2013 jclouds. All Rights Reserved.