org.jclouds.softlayer.domain
Class Datacenter.Builder<T extends Datacenter.Builder<T>>

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

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


Field Summary
protected  int id
           
protected  Address locationAddress
           
protected  String longName
           
protected  String name
           
protected  Set<Region> regions
           
 
Constructor Summary
Datacenter.Builder()
           
 
Method Summary
 Datacenter build()
           
 T fromDatacenter(Datacenter in)
           
 T id(int id)
           
 T locationAddress(Address locationAddress)
           
 T longName(String longName)
           
 T name(String name)
           
 T regions(Region... in)
           
 T regions(Set<Region> regions)
           
protected abstract  T self()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id

name

protected String name

longName

protected String longName

locationAddress

protected Address locationAddress

regions

protected Set<Region> regions
Constructor Detail

Datacenter.Builder

public Datacenter.Builder()
Method Detail

self

protected abstract T self()

id

public T id(int id)
See Also:
Datacenter.getId()

name

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

longName

public T longName(String longName)
See Also:
Datacenter.getLongName()

locationAddress

public T locationAddress(Address locationAddress)
See Also:
Datacenter.getLocationAddress()

regions

public T regions(Set<Region> regions)
See Also:
Datacenter.getRegions()

regions

public T regions(Region... in)

build

public Datacenter build()

fromDatacenter

public T fromDatacenter(Datacenter in)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.