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, devices, mem, nics, persistent, smp, vnc
name, tags, userMetadata, 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 |
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 |
tags(Iterable<String> tags) |
ServerInfo.Builder |
user(String user) |
ServerInfo.Builder |
userMetadata(Map<String,String> userMetadata) |
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 uuid(String uuid)
uuid
in class Server.Builder
public ServerInfo.Builder name(String name)
name
in class Server.Builder
public ServerInfo.Builder tags(Iterable<String> tags)
tags
in class Server.Builder
public ServerInfo.Builder userMetadata(Map<String,String> userMetadata)
userMetadata
in class Server.Builder
public ServerInfo build()
build
in class Server.Builder
Copyright © 2009-2012 jclouds. All Rights Reserved.