public abstract static class Datacenter.Builder<T extends Datacenter.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
id |
protected Address |
locationAddress |
protected String |
longName |
protected String |
name |
protected Set<Region> |
regions |
Constructor and Description |
---|
Datacenter.Builder() |
Modifier and Type | Method and Description |
---|---|
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() |
protected int id
protected String name
protected String longName
protected Address locationAddress
protected abstract T self()
public T id(int id)
Datacenter.getId()
public T name(String name)
Datacenter.getName()
public T longName(String longName)
Datacenter.getLongName()
public T locationAddress(Address locationAddress)
Datacenter.getLocationAddress()
public T regions(Set<Region> regions)
Datacenter.getRegions()
public Datacenter build()
public T fromDatacenter(Datacenter in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.