Package org.jclouds.gogrid.domain
Class ServerImage.Builder<T extends ServerImage.Builder<T>>
- java.lang.Object
-
- org.jclouds.gogrid.domain.ServerImage.Builder<T>
-
- Enclosing class:
- ServerImage
public abstract static class ServerImage.Builder<T extends ServerImage.Builder<T>> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Optionarchitectureprotected Set<BillingToken>billingTokensprotected DatecreatedTimeprotected Stringdescriptionprotected StringfriendlyNameprotected longidprotected booleanisActiveprotected booleanisPublicprotected Stringlocationprotected Stringnameprotected Optionosprotected Customerownerprotected doublepriceprotected ServerImageStatestateprotected ServerImageTypetypeprotected DateupdatedTime
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Tarchitecture(Option architecture)TbillingTokens(Set<BillingToken> billingTokens)TbillingTokens(BillingToken... in)ServerImagebuild()TcreatedTime(Date createdTime)Tdescription(String description)TfriendlyName(String friendlyName)TfromServerImage(ServerImage in)Tid(long id)TisActive(boolean isActive)TisPublic(boolean isPublic)Tlocation(String location)Tname(String name)Tos(Option os)Towner(Customer owner)Tprice(double price)protected abstract Tself()Tstate(ServerImageState state)Ttype(ServerImageType type)TupdatedTime(Date updatedTime)
-
-
-
Field Detail
-
id
protected long id
-
name
protected String name
-
friendlyName
protected String friendlyName
-
description
protected String description
-
os
protected Option os
-
architecture
protected Option architecture
-
type
protected ServerImageType type
-
state
protected ServerImageState state
-
price
protected double price
-
location
protected String location
-
isActive
protected boolean isActive
-
isPublic
protected boolean isPublic
-
createdTime
protected Date createdTime
-
updatedTime
protected Date updatedTime
-
billingTokens
protected Set<BillingToken> billingTokens
-
owner
protected Customer owner
-
-
Method Detail
-
self
protected abstract T self()
-
id
public T id(long id)
- See Also:
ServerImage.getId()
-
name
public T name(String name)
- See Also:
ServerImage.getName()
-
friendlyName
public T friendlyName(String friendlyName)
- See Also:
ServerImage.getFriendlyName()
-
description
public T description(String description)
- See Also:
ServerImage.getDescription()
-
os
public T os(Option os)
- See Also:
ServerImage.getOs()
-
architecture
public T architecture(Option architecture)
- See Also:
ServerImage.getArchitecture()
-
type
public T type(ServerImageType type)
- See Also:
ServerImage.getType()
-
state
public T state(ServerImageState state)
- See Also:
ServerImage.getState()
-
price
public T price(double price)
- See Also:
ServerImage.getPrice()
-
location
public T location(String location)
- See Also:
ServerImage.getLocation()
-
isActive
public T isActive(boolean isActive)
- See Also:
ServerImage.isActive()
-
isPublic
public T isPublic(boolean isPublic)
- See Also:
ServerImage.isPublic()
-
createdTime
public T createdTime(Date createdTime)
- See Also:
ServerImage.getCreatedTime()
-
updatedTime
public T updatedTime(Date updatedTime)
- See Also:
ServerImage.getUpdatedTime()
-
billingTokens
public T billingTokens(Set<BillingToken> billingTokens)
- See Also:
ServerImage.getBillingTokens()
-
billingTokens
public T billingTokens(BillingToken... in)
-
owner
public T owner(Customer owner)
- See Also:
ServerImage.getOwner()
-
build
public ServerImage build()
-
fromServerImage
public T fromServerImage(ServerImage in)
-
-