org.jclouds.gogrid.domain
Class ServerImage.Builder<T extends ServerImage.Builder<T>>

java.lang.Object
  extended by 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
protected  Option architecture
           
protected  Set<BillingToken> billingTokens
           
protected  Date createdTime
           
protected  String description
           
protected  String friendlyName
           
protected  long id
           
protected  boolean isActive
           
protected  boolean isPublic
           
protected  String location
           
protected  String name
           
protected  Option os
           
protected  Customer owner
           
protected  double price
           
protected  ServerImageState state
           
protected  ServerImageType type
           
protected  Date updatedTime
           
 
Constructor Summary
ServerImage.Builder()
           
 
Method Summary
 T architecture(Option architecture)
           
 T billingTokens(BillingToken... in)
           
 T billingTokens(Set<BillingToken> billingTokens)
           
 ServerImage build()
           
 T createdTime(Date createdTime)
           
 T description(String description)
           
 T friendlyName(String friendlyName)
           
 T fromServerImage(ServerImage in)
           
 T id(long id)
           
 T isActive(boolean isActive)
           
 T isPublic(boolean isPublic)
           
 T location(String location)
           
 T name(String name)
           
 T os(Option os)
           
 T owner(Customer owner)
           
 T price(double price)
           
protected abstract  T self()
           
 T state(ServerImageState state)
           
 T type(ServerImageType type)
           
 T updatedTime(Date updatedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ServerImage.Builder

public ServerImage.Builder()
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)


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