public static class Server.Builder extends Item.Builder
Modifier and Type | Field and 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 |
name, tags, userMetadata, uuid
Constructor and Description |
---|
Server.Builder() |
Modifier and Type | Method and 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) |
equals, hashCode
protected int cpu
protected Integer smp
protected int mem
protected boolean persistent
protected VNC vnc
public Server.Builder cpu(int cpu)
public Server.Builder smp(Integer smp)
public Server.Builder mem(int mem)
public Server.Builder persistent(boolean persistent)
public Server.Builder devices(Map<String,? extends Device> devices)
public Server.Builder bootDeviceIds(Iterable<String> bootDeviceIds)
public Server.Builder nics(Iterable<NIC> nics)
public Server.Builder vnc(VNC vnc)
public Server.Builder uuid(String uuid)
uuid
in class Item.Builder
public Server.Builder name(String name)
name
in class Item.Builder
public Server.Builder tags(Iterable<String> tags)
tags
in class Item.Builder
public Server.Builder userMetadata(Map<String,String> userMetadata)
userMetadata
in class Item.Builder
public Server build()
build
in class Item.Builder
public static Server.Builder fromServer(Server in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.