org.jclouds.openstack.nova.v2_0.domain
Class Server.Builder<T extends Server.Builder<T>>

java.lang.Object
  extended by org.jclouds.openstack.v2_0.domain.Resource.Builder<T>
      extended by org.jclouds.openstack.nova.v2_0.domain.Server.Builder<T>
Direct Known Subclasses:
ServerWithSecurityGroups.Builder
Enclosing class:
Server

public abstract static class Server.Builder<T extends Server.Builder<T>>
extends Resource.Builder<T>


Field Summary
protected  String accessIPv4
           
protected  String accessIPv6
           
protected  com.google.common.collect.Multimap<String,Address> addresses
           
protected  String configDrive
           
protected  Date created
           
protected  String diskConfig
           
protected  ServerExtendedAttributes extendedAttributes
           
protected  ServerExtendedStatus extendedStatus
           
protected  Resource flavor
           
protected  String hostId
           
protected  Resource image
           
protected  String keyName
           
protected  Map<String,String> metadata
           
protected  Server.Status status
           
protected  String tenantId
           
protected  Date updated
           
protected  String userId
           
protected  String uuid
           
 
Fields inherited from class org.jclouds.openstack.v2_0.domain.Resource.Builder
id, links, name
 
Constructor Summary
Server.Builder()
           
 
Method Summary
 T accessIPv4(String accessIPv4)
           
 T accessIPv6(String accessIPv6)
           
 T addresses(com.google.common.collect.Multimap<String,Address> addresses)
           
 Server build()
           
 T configDrive(String configDrive)
           
 T created(Date created)
           
 T diskConfig(String diskConfig)
           
 T extendedAttributes(ServerExtendedAttributes extendedAttributes)
           
 T extendedStatus(ServerExtendedStatus extendedStatus)
           
 T flavor(Resource flavor)
           
 T fromServer(Server in)
           
 T hostId(String hostId)
           
 T image(Resource image)
           
 T keyName(String keyName)
           
 T metadata(Map<String,String> metadata)
           
 T status(Server.Status status)
           
 T tenantId(String tenantId)
           
 T updated(Date updated)
           
 T userId(String userId)
           
 T uuid(String uuid)
           
 
Methods inherited from class org.jclouds.openstack.v2_0.domain.Resource.Builder
fromResource, id, links, links, name, self
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uuid

protected String uuid

tenantId

protected String tenantId

userId

protected String userId

updated

protected Date updated

created

protected Date created

hostId

protected String hostId

accessIPv4

protected String accessIPv4

accessIPv6

protected String accessIPv6

status

protected Server.Status status

image

protected Resource image

flavor

protected Resource flavor

keyName

protected String keyName

configDrive

protected String configDrive

addresses

protected com.google.common.collect.Multimap<String,Address> addresses

metadata

protected Map<String,String> metadata

extendedStatus

protected ServerExtendedStatus extendedStatus

extendedAttributes

protected ServerExtendedAttributes extendedAttributes

diskConfig

protected String diskConfig
Constructor Detail

Server.Builder

public Server.Builder()
Method Detail

uuid

public T uuid(String uuid)
See Also:
Server.getUuid()

tenantId

public T tenantId(String tenantId)
See Also:
Server.getTenantId()

userId

public T userId(String userId)
See Also:
Server.getUserId()

updated

public T updated(Date updated)
See Also:
Server.getUpdated()

created

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

hostId

public T hostId(String hostId)
See Also:
Server.getHostId()

accessIPv4

public T accessIPv4(String accessIPv4)
See Also:
Server.getAccessIPv4()

accessIPv6

public T accessIPv6(String accessIPv6)
See Also:
Server.getAccessIPv6()

status

public T status(Server.Status status)
See Also:
Server.getStatus()

image

public T image(Resource image)
See Also:
Server.getImage()

flavor

public T flavor(Resource flavor)
See Also:
Server.getFlavor()

keyName

public T keyName(String keyName)
See Also:
Server.getKeyName()

configDrive

public T configDrive(String configDrive)
See Also:
Server.getConfigDrive()

addresses

public T addresses(com.google.common.collect.Multimap<String,Address> addresses)
See Also:
Server.getAddresses()

metadata

public T metadata(Map<String,String> metadata)
See Also:
Server.getMetadata()

extendedStatus

public T extendedStatus(ServerExtendedStatus extendedStatus)
See Also:
Server.getExtendedStatus()

extendedAttributes

public T extendedAttributes(ServerExtendedAttributes extendedAttributes)
See Also:
Server.getExtendedAttributes()

diskConfig

public T diskConfig(String diskConfig)
See Also:
Server.getDiskConfig()

build

public Server build()
Overrides:
build in class Resource.Builder<T extends Server.Builder<T>>

fromServer

public T fromServer(Server in)


Copyright © 2009-2012 jclouds. All Rights Reserved.