public class NovaServerCreate extends Object implements ServerCreate
Modifier and Type | Class and Description |
---|---|
static class |
NovaServerCreate.ServerCreateConcreteBuilder |
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
Constructor and Description |
---|
NovaServerCreate() |
Modifier and Type | Method and Description |
---|---|
void |
addNetwork(String id,
String fixedIP)
Adds the network.
|
void |
addNetworkPort(String id)
Adds network port
|
void |
addPersonality(String path,
String contents)
Adds the personality.
|
void |
addSecurityGroup(String name)
Adds the security group.
|
static ServerCreateBuilder |
builder() |
String |
getAccessIPv4() |
String |
getAccessIPv6() |
String |
getAdminPass() |
String |
getAvailabilityZone()
Gets the availability zone.
|
Server.DiskConfig |
getDiskConfig()
Controls how the disk is partitioned
|
String |
getFlavorRef()
The resources/flavor to be assigned
|
String |
getImageRef()
A reference to the boot Image
|
String |
getKeyName()
name of keypair to inject into the instance
|
Integer |
getMax()
Gets the max.
|
Map<String,String> |
getMetaData()
Gets the meta data.
|
Integer |
getMin() |
String |
getName()
The descriptive name for the Server
|
List<? extends NetworkCreate> |
getNetworks()
Gets the networks.
|
List<Personality> |
getPersonality()
Personality is a list of Files which will be injected onto the server.
|
Map<String,Object> |
getSchedulerHints()
A Map of Key and Value used for scheduler hints on bootup
|
List<? extends SecurityGroup> |
getSecurityGroups()
Gets the security groups.
|
String |
getUserData()
Gets the user data.
|
boolean |
isConfigDrive()
The value for config drive
|
ServerCreateBuilder |
toBuilder() |
public static ServerCreateBuilder builder()
public ServerCreateBuilder toBuilder()
toBuilder
in interface Buildable<ServerCreateBuilder>
public String getName()
ServerCreate
getName
in interface ServerCreate
public String getAdminPass()
getAdminPass
in interface ServerCreate
public String getImageRef()
ServerCreate
getImageRef
in interface ServerCreate
public String getFlavorRef()
ServerCreate
getFlavorRef
in interface ServerCreate
public String getAccessIPv4()
getAccessIPv4
in interface ServerCreate
public String getAccessIPv6()
getAccessIPv6
in interface ServerCreate
public Integer getMin()
getMin
in interface ServerCreate
public Integer getMax()
ServerCreate
getMax
in interface ServerCreate
public Server.DiskConfig getDiskConfig()
ServerCreate
getDiskConfig
in interface ServerCreate
public String getKeyName()
ServerCreate
getKeyName
in interface ServerCreate
public String getUserData()
ServerCreate
getUserData
in interface ServerCreate
public Map<String,String> getMetaData()
ServerCreate
getMetaData
in interface ServerCreate
public List<? extends SecurityGroup> getSecurityGroups()
ServerCreate
getSecurityGroups
in interface ServerCreate
public String getAvailabilityZone()
ServerCreate
getAvailabilityZone
in interface ServerCreate
public Map<String,Object> getSchedulerHints()
ServerCreate
getSchedulerHints
in interface ServerCreate
public boolean isConfigDrive()
ServerCreate
isConfigDrive
in interface ServerCreate
public List<? extends NetworkCreate> getNetworks()
ServerCreate
getNetworks
in interface ServerCreate
public List<Personality> getPersonality()
ServerCreate
getPersonality
in interface ServerCreate
Personality
public void addPersonality(String path, String contents)
ServerCreate
addPersonality
in interface ServerCreate
path
- the pathcontents
- the contentspublic void addSecurityGroup(String name)
ServerCreate
addSecurityGroup
in interface ServerCreate
name
- the namepublic void addNetwork(String id, String fixedIP)
ServerCreate
addNetwork
in interface ServerCreate
id
- the idfixedIP
- the fixed ippublic void addNetworkPort(String id)
ServerCreate
addNetworkPort
in interface ServerCreate
id
- id of a premade neutron portCopyright © 2017. All rights reserved.