public static class Server.Builder extends Item.Builder
Modifier and Type | Field and Description |
---|---|
protected Owner |
owner |
protected ServerRuntime |
runtime |
protected ServerStatus |
status |
name, resourceUri, uuid
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Server |
build() |
static Server.Builder |
fromServer(Server in) |
Server.Builder |
name(String name) |
Server.Builder |
owner(Owner owner) |
Server.Builder |
resourceUri(URI resourceUri) |
Server.Builder |
runtime(ServerRuntime runtime) |
Server.Builder |
status(ServerStatus status) |
Server.Builder |
uuid(String uuid) |
equals, hashCode
protected Owner owner
protected ServerStatus status
protected ServerRuntime runtime
public Server.Builder owner(Owner owner)
owner
- server's owner.public Server.Builder status(ServerStatus status)
status
- Status of the guest.public Server.Builder runtime(ServerRuntime runtime)
runtime
- Runtime information of the guestpublic Server.Builder uuid(String uuid)
uuid
in class Item.Builder
public Server.Builder name(String name)
name
in class Item.Builder
public Server.Builder resourceUri(URI resourceUri)
resourceUri
in class Item.Builder
public Server build()
build
in class Item.Builder
public static Server.Builder fromServer(Server in)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.