public interface ServerCreateBuilder extends Buildable.Builder<ServerCreateBuilder,ServerCreate>
Modifier and Type | Method and Description |
---|---|
ServerCreateBuilder |
addAdminPass(String adminPass)
Add admin password for launching the server.
|
ServerCreateBuilder |
addMetadata(Map<String,String> metadata)
Replaces and add the specified
metadata |
ServerCreateBuilder |
addMetadataItem(String key,
String value)
Adds a new metadata item to the Server
|
ServerCreateBuilder |
addNetworkPort(String portId)
Adds a network port
|
ServerCreateBuilder |
addPersonality(String path,
String contents)
Adds a Personality to the Server.
|
ServerCreateBuilder |
addSchedulerHint(String key,
List<String> value)
Adds a scheduler hint (array based) used for boot up
|
ServerCreateBuilder |
addSchedulerHint(String key,
String value)
Adds a scheduler hint used for boot up
|
ServerCreateBuilder |
addSchedulerHints(Map<String,Object> schedulerHints)
Adds/Replaces scheduler hints used for bootup
|
ServerCreateBuilder |
addSecurityGroup(String name)
Adds the security group.
|
ServerCreateBuilder |
availabilityZone(String availabilityZone)
The availability zone in which to launch the server.
|
ServerCreateBuilder |
blockDevice(BlockDeviceMappingCreate blockDevice) |
ServerCreateBuilder |
configDrive(boolean configDrive)
Sets the config drive parameter.
|
ServerCreateBuilder |
flavor(Flavor flavor) |
ServerCreateBuilder |
flavor(String flavorId) |
ServerCreateBuilder |
image(Image image) |
ServerCreateBuilder |
image(String imageId) |
ServerCreateBuilder |
keypairName(String name)
Associates this Server with a public keypair name
|
ServerCreateBuilder |
name(String name) |
ServerCreateBuilder |
networks(List<String> networks)
Adds list of networks (by id) to server
|
ServerCreateBuilder |
userData(String userData)
Cloud-init userdata
|
build, from
ServerCreateBuilder name(String name)
Server.getName()
ServerCreateBuilder flavor(String flavorId)
Server.getFlavor()
ServerCreateBuilder flavor(Flavor flavor)
Server.getFlavor()
ServerCreateBuilder image(String imageId)
Server.getImage()
ServerCreateBuilder image(Image image)
Server.getImage()
ServerCreateBuilder networks(List<String> networks)
networks
- list of network idsServerCreateBuilder addNetworkPort(String portId)
portId
- id of portServerCreateBuilder addPersonality(String path, String contents)
path
- the path (max is 255 bytes)contents
- the contents of the file path
ServerCreateBuilder addSecurityGroup(String name)
name
- the nameServerCreateBuilder addMetadataItem(String key, String value)
key
- the metadata keyvalue
- the metadata valueServerCreateBuilder addMetadata(Map<String,String> metadata)
metadata
metadata
- the metadata for this serverServerCreateBuilder addSchedulerHint(String key, String value)
key
- the scheduler hint keyvalue
- the scheduler hint valueServerCreateBuilder addSchedulerHint(String key, List<String> value)
key
- the scheduler hint keyvalue
- the scheduler hint valueServerCreateBuilder addSchedulerHints(Map<String,Object> schedulerHints)
schedulerHints
- map of key and value scheduler hintsServerCreateBuilder keypairName(String name)
name
- the name of the public keypairServerCreateBuilder blockDevice(BlockDeviceMappingCreate blockDevice)
ServerCreateBuilder availabilityZone(String availabilityZone)
availabilityZone
- the availability zoneServerCreateBuilder userData(String userData)
userData
- a base64 encoded string containing the userdataServerCreateBuilder addAdminPass(String adminPass)
password
- the passwordServerCreateBuilder configDrive(boolean configDrive)
configDrive
- the configDrive valueCopyright © 2017. All rights reserved.