org.jclouds.elasticstack.domain
Class Server.Builder
java.lang.Object
org.jclouds.elasticstack.domain.Item.Builder
org.jclouds.elasticstack.domain.Server.Builder
- Direct Known Subclasses:
- ServerInfo.Builder
- Enclosing class:
- Server
public static class Server.Builder
- extends Item.Builder
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
Server.Builder
public Server.Builder()
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.