Package org.jclouds.elasticstack.domain
Class ServerInfo.Builder
- java.lang.Object
-
- org.jclouds.elasticstack.domain.Item.Builder
-
- org.jclouds.elasticstack.domain.Server.Builder
-
- org.jclouds.elasticstack.domain.ServerInfo.Builder
-
- Enclosing class:
- ServerInfo
public static class ServerInfo.Builder extends Server.Builder
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerMetrics
metrics
protected Date
started
protected ServerStatus
status
protected String
user
-
Fields inherited from class org.jclouds.elasticstack.domain.Server.Builder
bootDeviceIds, cpu, devices, mem, nics, persistent, smp, 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 Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.jclouds.elasticstack.domain.Server.Builder
fromServer
-
Methods inherited from class org.jclouds.elasticstack.domain.Item.Builder
equals, hashCode
-
-
-
-
Field Detail
-
status
protected ServerStatus status
-
started
protected Date started
-
user
protected String user
-
metrics
protected ServerMetrics metrics
-
-
Method Detail
-
status
public ServerInfo.Builder status(ServerStatus status)
-
started
public ServerInfo.Builder started(Date started)
-
user
public ServerInfo.Builder user(String user)
-
metrics
public ServerInfo.Builder metrics(ServerMetrics metrics)
-
cpu
public ServerInfo.Builder cpu(int cpu)
- Overrides:
cpu
in classServer.Builder
-
smp
public ServerInfo.Builder smp(Integer smp)
- Overrides:
smp
in classServer.Builder
-
mem
public ServerInfo.Builder mem(int mem)
- Overrides:
mem
in classServer.Builder
-
persistent
public ServerInfo.Builder persistent(boolean persistent)
- Overrides:
persistent
in classServer.Builder
-
devices
public ServerInfo.Builder devices(Map<String,? extends Device> devices)
- Overrides:
devices
in classServer.Builder
-
bootDeviceIds
public ServerInfo.Builder bootDeviceIds(Iterable<String> bootDeviceIds)
- Overrides:
bootDeviceIds
in classServer.Builder
-
nics
public ServerInfo.Builder nics(Iterable<NIC> nics)
- Overrides:
nics
in classServer.Builder
-
vnc
public ServerInfo.Builder vnc(VNC vnc)
- Overrides:
vnc
in classServer.Builder
-
uuid
public ServerInfo.Builder uuid(String uuid)
- Overrides:
uuid
in classServer.Builder
-
name
public ServerInfo.Builder name(String name)
- Overrides:
name
in classServer.Builder
-
tags
public ServerInfo.Builder tags(Iterable<String> tags)
- Overrides:
tags
in classServer.Builder
-
userMetadata
public ServerInfo.Builder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in classServer.Builder
-
build
public ServerInfo build()
- Overrides:
build
in classServer.Builder
-
-