public static class NovaServerCreate.ServerCreateConcreteBuilder extends Object implements ServerCreateBuilder
public NovaServerCreate.ServerCreateConcreteBuilder name(String name)
name
in interface ServerCreateBuilder
Server.getName()
public NovaServerCreate.ServerCreateConcreteBuilder flavor(String flavorId)
flavor
in interface ServerCreateBuilder
Server.getFlavor()
public NovaServerCreate.ServerCreateConcreteBuilder flavor(Flavor flavor)
flavor
in interface ServerCreateBuilder
Server.getFlavor()
public NovaServerCreate.ServerCreateConcreteBuilder image(String imageId)
image
in interface ServerCreateBuilder
Server.getImage()
public NovaServerCreate.ServerCreateConcreteBuilder image(Image image)
image
in interface ServerCreateBuilder
Server.getImage()
public NovaServerCreate.ServerCreateConcreteBuilder zone(String availabilityZone)
public NovaServerCreate.ServerCreateConcreteBuilder networks(List<String> idList)
ServerCreateBuilder
networks
in interface ServerCreateBuilder
idList
- list of network idspublic ServerCreateBuilder addNetworkPort(String portId)
ServerCreateBuilder
addNetworkPort
in interface ServerCreateBuilder
portId
- id of portpublic ServerCreateBuilder addSecurityGroup(String name)
ServerCreateBuilder
addSecurityGroup
in interface ServerCreateBuilder
name
- the namepublic ServerCreateBuilder addPersonality(String path, String contents)
ServerCreateBuilder
addPersonality
in interface ServerCreateBuilder
path
- the path (max is 255 bytes)contents
- the contents of the file path
public ServerCreateBuilder keypairName(String name)
ServerCreateBuilder
keypairName
in interface ServerCreateBuilder
name
- the name of the public keypairpublic ServerCreateBuilder availabilityZone(String availabilityZone)
ServerCreateBuilder
availabilityZone
in interface ServerCreateBuilder
availabilityZone
- the availability zonepublic ServerCreate build()
Buildable.Builder
build
in interface Buildable.Builder<ServerCreateBuilder,ServerCreate>
public NovaServerCreate.ServerCreateConcreteBuilder from(ServerCreate in)
Buildable.Builder
from
in interface Buildable.Builder<ServerCreateBuilder,ServerCreate>
public ServerCreateBuilder blockDevice(BlockDeviceMappingCreate blockDevice)
blockDevice
in interface ServerCreateBuilder
public ServerCreateBuilder userData(String userData)
ServerCreateBuilder
userData
in interface ServerCreateBuilder
userData
- a base64 encoded string containing the userdatapublic ServerCreateBuilder addMetadataItem(String key, String value)
ServerCreateBuilder
addMetadataItem
in interface ServerCreateBuilder
key
- the metadata keyvalue
- the metadata valuepublic ServerCreateBuilder addMetadata(Map<String,String> metadata)
ServerCreateBuilder
metadata
addMetadata
in interface ServerCreateBuilder
metadata
- the metadata for this serverpublic ServerCreateBuilder addSchedulerHint(String key, String value)
ServerCreateBuilder
addSchedulerHint
in interface ServerCreateBuilder
key
- the scheduler hint keyvalue
- the scheduler hint valuepublic ServerCreateBuilder addSchedulerHint(String key, List<String> value)
ServerCreateBuilder
addSchedulerHint
in interface ServerCreateBuilder
key
- the scheduler hint keyvalue
- the scheduler hint valuepublic ServerCreateBuilder addSchedulerHints(Map<String,Object> schedulerHints)
ServerCreateBuilder
addSchedulerHints
in interface ServerCreateBuilder
schedulerHints
- map of key and value scheduler hintspublic ServerCreateBuilder addAdminPass(String adminPass)
ServerCreateBuilder
addAdminPass
in interface ServerCreateBuilder
public ServerCreateBuilder configDrive(boolean configDrive)
ServerCreateBuilder
configDrive
in interface ServerCreateBuilder
configDrive
- the configDrive valueCopyright © 2017. All rights reserved.