org.jclouds.elasticstack.domain
Class Server.Builder

java.lang.Object
  extended by org.jclouds.elasticstack.domain.Item.Builder
      extended by org.jclouds.elasticstack.domain.Server.Builder
Direct Known Subclasses:
ServerInfo.Builder
Enclosing class:
Server

public static class Server.Builder
extends Item.Builder


Field Summary
protected  Set<String> bootDeviceIds
           
protected  int cpu
           
protected  Map<String,? extends Device> devices
           
protected  int mem
           
protected  List<NIC> nics
           
protected  boolean persistent
           
protected  Integer smp
           
protected  VNC vnc
           
 
Fields inherited from class org.jclouds.elasticstack.domain.Item.Builder
name, tags, userMetadata, uuid
 
Constructor Summary
Server.Builder()
           
 
Method Summary
 Server.Builder bootDeviceIds(Iterable<String> bootDeviceIds)
           
 Server build()
           
 Server.Builder cpu(int cpu)
           
 Server.Builder devices(Map<String,? extends Device> devices)
           
static Server.Builder fromServer(Server in)
           
 Server.Builder mem(int mem)
           
 Server.Builder name(String name)
          
 Server.Builder nics(Iterable<NIC> nics)
           
 Server.Builder persistent(boolean persistent)
           
 Server.Builder smp(Integer smp)
           
 Server.Builder tags(Iterable<String> tags)
          
 Server.Builder userMetadata(Map<String,String> userMetadata)
          
 Server.Builder uuid(String uuid)
          
 Server.Builder vnc(VNC vnc)
           
 
Methods inherited from class org.jclouds.elasticstack.domain.Item.Builder
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cpu

protected int cpu

smp

protected Integer smp

mem

protected int mem

persistent

protected boolean persistent

devices

protected Map<String,? extends Device> devices

bootDeviceIds

protected Set<String> bootDeviceIds

nics

protected List<NIC> nics

vnc

protected VNC vnc
Constructor Detail

Server.Builder

public Server.Builder()
Method Detail

cpu

public Server.Builder cpu(int cpu)

smp

public Server.Builder smp(Integer smp)

mem

public Server.Builder mem(int mem)

persistent

public Server.Builder persistent(boolean persistent)

devices

public Server.Builder devices(Map<String,? extends Device> devices)

bootDeviceIds

public Server.Builder bootDeviceIds(Iterable<String> bootDeviceIds)

nics

public Server.Builder nics(Iterable<NIC> nics)

vnc

public Server.Builder vnc(VNC vnc)

uuid

public Server.Builder uuid(String uuid)

Overrides:
uuid in class Item.Builder

name

public Server.Builder name(String name)

Overrides:
name in class Item.Builder

tags

public Server.Builder tags(Iterable<String> tags)

Overrides:
tags in class Item.Builder

userMetadata

public Server.Builder userMetadata(Map<String,String> userMetadata)

Overrides:
userMetadata in class Item.Builder

build

public Server build()
Overrides:
build in class Item.Builder

fromServer

public static Server.Builder fromServer(Server in)


Copyright © 2009-2011 jclouds. All Rights Reserved.