Class NovaServerCreate
- java.lang.Object
-
- org.openstack4j.openstack.compute.domain.NovaServerCreate
-
- All Implemented Interfaces:
Serializable,Buildable<ServerCreateBuilder>,ServerCreate,ModelEntity
public class NovaServerCreate extends Object implements ServerCreate
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNovaServerCreate.ServerCreateConcreteBuilder-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Constructor Summary
Constructors Constructor Description NovaServerCreate()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNetwork(String id, String fixedIP)Adds the network.voidaddNetworkPort(String id)Adds network portvoidaddPersonality(String path, String contents)Adds the personality.voidaddSecurityGroup(String name)Adds the security group.static ServerCreateBuilderbuilder()StringgetAccessIPv4()StringgetAccessIPv6()StringgetAdminPass()StringgetAvailabilityZone()Gets the availability zone.Server.DiskConfiggetDiskConfig()Controls how the disk is partitionedStringgetFlavorRef()The resources/flavor to be assignedStringgetImageRef()A reference to the boot ImageStringgetKeyName()name of keypair to inject into the instanceIntegergetMax()Gets the max.Map<String,String>getMetaData()Gets the meta data.IntegergetMin()StringgetName()The descriptive name for the ServerList<? 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 bootupList<? extends SecurityGroup>getSecurityGroups()Gets the security groups.StringgetUserData()Gets the user data.booleanisConfigDrive()The value for config driveServerCreateBuildertoBuilder()
-
-
-
Method Detail
-
builder
public static ServerCreateBuilder builder()
-
toBuilder
public ServerCreateBuilder toBuilder()
- Specified by:
toBuilderin interfaceBuildable<ServerCreateBuilder>
-
getName
public String getName()
Description copied from interface:ServerCreateThe descriptive name for the Server- Specified by:
getNamein interfaceServerCreate- Returns:
- the name of the server
-
getAdminPass
public String getAdminPass()
- Specified by:
getAdminPassin interfaceServerCreate- Returns:
- the administrative password
-
getImageRef
public String getImageRef()
Description copied from interface:ServerCreateA reference to the boot Image- Specified by:
getImageRefin interfaceServerCreate- Returns:
- the image identifier
-
getFlavorRef
public String getFlavorRef()
Description copied from interface:ServerCreateThe resources/flavor to be assigned- Specified by:
getFlavorRefin interfaceServerCreate- Returns:
- the flavor identifier
-
getAccessIPv4
public String getAccessIPv4()
- Specified by:
getAccessIPv4in interfaceServerCreate- Returns:
- the accessible IPV4 address
-
getAccessIPv6
public String getAccessIPv6()
- Specified by:
getAccessIPv6in interfaceServerCreate- Returns:
- the accessible IPV6 address
-
getMin
public Integer getMin()
- Specified by:
getMinin interfaceServerCreate- Returns:
- the min
-
getMax
public Integer getMax()
Description copied from interface:ServerCreateGets the max.- Specified by:
getMaxin interfaceServerCreate- Returns:
- the max
-
getDiskConfig
public Server.DiskConfig getDiskConfig()
Description copied from interface:ServerCreateControls how the disk is partitioned- Specified by:
getDiskConfigin interfaceServerCreate- Returns:
- the disk configuration
-
getKeyName
public String getKeyName()
Description copied from interface:ServerCreatename of keypair to inject into the instance- Specified by:
getKeyNamein interfaceServerCreate- Returns:
- the keypair name
-
getUserData
public String getUserData()
Description copied from interface:ServerCreateGets the user data.- Specified by:
getUserDatain interfaceServerCreate- Returns:
- the user data
-
getMetaData
public Map<String,String> getMetaData()
Description copied from interface:ServerCreateGets the meta data.- Specified by:
getMetaDatain interfaceServerCreate- Returns:
- the meta data
-
getSecurityGroups
public List<? extends SecurityGroup> getSecurityGroups()
Description copied from interface:ServerCreateGets the security groups.- Specified by:
getSecurityGroupsin interfaceServerCreate- Returns:
- the security groups
-
getAvailabilityZone
public String getAvailabilityZone()
Description copied from interface:ServerCreateGets the availability zone.- Specified by:
getAvailabilityZonein interfaceServerCreate- Returns:
- the availability zone
-
getSchedulerHints
public Map<String,Object> getSchedulerHints()
Description copied from interface:ServerCreateA Map of Key and Value used for scheduler hints on bootup- Specified by:
getSchedulerHintsin interfaceServerCreate- Returns:
- scheduler hints or null
-
isConfigDrive
public boolean isConfigDrive()
Description copied from interface:ServerCreateThe value for config drive- Specified by:
isConfigDrivein interfaceServerCreate- Returns:
- true, if this is a config based drive
-
getNetworks
public List<? extends NetworkCreate> getNetworks()
Description copied from interface:ServerCreateGets the networks.- Specified by:
getNetworksin interfaceServerCreate- Returns:
- the networks
-
getPersonality
public List<Personality> getPersonality()
Description copied from interface:ServerCreatePersonality is a list of Files which will be injected onto the server.- Specified by:
getPersonalityin interfaceServerCreate- Returns:
- the personality
- See Also:
Personality
-
addPersonality
public void addPersonality(String path, String contents)
Description copied from interface:ServerCreateAdds the personality.- Specified by:
addPersonalityin interfaceServerCreate- Parameters:
path- the pathcontents- the contents
-
addSecurityGroup
public void addSecurityGroup(String name)
Description copied from interface:ServerCreateAdds the security group.- Specified by:
addSecurityGroupin interfaceServerCreate- Parameters:
name- the name
-
addNetwork
public void addNetwork(String id, String fixedIP)
Description copied from interface:ServerCreateAdds the network.- Specified by:
addNetworkin interfaceServerCreate- Parameters:
id- the idfixedIP- the fixed ip
-
addNetworkPort
public void addNetworkPort(String id)
Description copied from interface:ServerCreateAdds network port- Specified by:
addNetworkPortin interfaceServerCreate- Parameters:
id- id of a premade neutron port
-
-