public static class ServerInfo.Builder extends Server.Builder
Modifier and Type | Field and Description |
---|---|
protected ServerMetrics |
metrics |
protected Date |
started |
protected ServerStatus |
status |
protected String |
user |
bootDeviceIds, cpu, description, devices, mem, nics, persistent, smp, vnc
name, use, uuid
Constructor and Description |
---|
ServerInfo.Builder() |
Modifier and Type | Method and Description |
---|---|
ServerInfo.Builder |
bootDeviceIds(Iterable<String> bootDeviceIds) |
ServerInfo |
build() |
ServerInfo.Builder |
cpu(int cpu) |
ServerInfo.Builder |
description(String description) |
ServerInfo.Builder |
devices(Map<String,? extends Device> devices) |
ServerInfo.Builder |
mem(int mem) |
ServerInfo.Builder |
metrics(ServerMetrics metrics) |
ServerInfo.Builder |
name(String name) |
ServerInfo.Builder |
nics(Iterable<NIC> nics) |
ServerInfo.Builder |
persistent(boolean persistent) |
ServerInfo.Builder |
smp(Integer smp) |
ServerInfo.Builder |
started(Date started) |
ServerInfo.Builder |
status(ServerStatus status) |
ServerInfo.Builder |
use(Iterable<String> use) |
ServerInfo.Builder |
user(String user) |
ServerInfo.Builder |
uuid(String uuid) |
ServerInfo.Builder |
vnc(VNC vnc) |
fromServer
equals, hashCode
protected ServerStatus status
protected Date started
protected String user
protected ServerMetrics metrics
public ServerInfo.Builder status(ServerStatus status)
public ServerInfo.Builder started(Date started)
public ServerInfo.Builder user(String user)
public ServerInfo.Builder metrics(ServerMetrics metrics)
public ServerInfo.Builder cpu(int cpu)
cpu
in class Server.Builder
public ServerInfo.Builder smp(Integer smp)
smp
in class Server.Builder
public ServerInfo.Builder mem(int mem)
mem
in class Server.Builder
public ServerInfo.Builder persistent(boolean persistent)
persistent
in class Server.Builder
public ServerInfo.Builder devices(Map<String,? extends Device> devices)
devices
in class Server.Builder
public ServerInfo.Builder bootDeviceIds(Iterable<String> bootDeviceIds)
bootDeviceIds
in class Server.Builder
public ServerInfo.Builder nics(Iterable<NIC> nics)
nics
in class Server.Builder
public ServerInfo.Builder vnc(VNC vnc)
vnc
in class Server.Builder
public ServerInfo.Builder description(String description)
description
in class Server.Builder
public ServerInfo.Builder uuid(String uuid)
uuid
in class Server.Builder
public ServerInfo.Builder name(String name)
name
in class Server.Builder
public ServerInfo.Builder use(Iterable<String> use)
use
in class Server.Builder
public ServerInfo build()
build
in class Server.Builder
Copyright © 2009-2012 jclouds. All Rights Reserved.