Package 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
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classItem.Builder
-
name
public Server.Builder name(String name)
- Overrides:
name
in classItem.Builder
-
tags
public Server.Builder tags(Iterable<String> tags)
- Overrides:
tags
in classItem.Builder
-
userMetadata
public Server.Builder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in classItem.Builder
-
build
public Server build()
- Overrides:
build
in classItem.Builder
-
fromServer
public static Server.Builder fromServer(Server in)
-
-