Package cloud.dnation.hetznerclient
Class CreateServerRequest
java.lang.Object
cloud.dnation.hetznerclient.CreateServerRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-21T08:14:59.463226706Z[Etc/UTC]")
public class CreateServerRequest
extends Object
CreateServerRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFirewallsItem(CreateServerFirewallsRequest firewallsItem) addNetworksItem(Long networksItem) addSshKeysItem(String sshKeysItem) addVolumesItem(Long volumesItem) datacenter(String datacenter) booleanfirewalls(List<CreateServerFirewallsRequest> firewalls) Auto-mount Volumes after attachID or name of Datacenter to create Server in (must not be used together with location)Firewalls which should be applied on the Server's public network interface at creation time.getImage()ID or name of the Image the Server is created fromUser-defined labels (key-value pairs)ID or name of Location to create Server in (must not be used together with datacenter)getName()Name of the Server to create (must be unique per Project and a valid hostname as per RFC 1123)Network IDs which should be attached to the Server private network interface at the creation timeID of the Placement Group the server should be inGet publicNetID or name of the Server type this Server should be created withSSH key IDs (`long`) or names (`string`) which should be injected into the Server at creation timeStart Server right after creation.Cloud-Init user data to use during Server creation.Volume IDs which should be attached to the Server at the creation time.inthashCode()placementGroup(Long placementGroup) publicNet(PublicNetRequest publicNet) putLabelsItem(String key, String labelsItem) serverType(String serverType) voidsetAutomount(Boolean automount) voidsetDatacenter(String datacenter) voidsetFirewalls(List<CreateServerFirewallsRequest> firewalls) voidvoidvoidsetLocation(String location) voidvoidsetNetworks(List<Long> networks) voidsetPlacementGroup(Long placementGroup) voidsetPublicNet(PublicNetRequest publicNet) voidsetServerType(String serverType) voidsetSshKeys(List<String> sshKeys) voidsetStartAfterCreate(Boolean startAfterCreate) voidsetUserData(String userData) voidsetVolumes(List<Long> volumes) startAfterCreate(Boolean startAfterCreate) toString()
-
Field Details
-
SERIALIZED_NAME_AUTOMOUNT
- See Also:
-
SERIALIZED_NAME_DATACENTER
- See Also:
-
SERIALIZED_NAME_FIREWALLS
- See Also:
-
SERIALIZED_NAME_IMAGE
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_LOCATION
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NETWORKS
- See Also:
-
SERIALIZED_NAME_PLACEMENT_GROUP
- See Also:
-
SERIALIZED_NAME_PUBLIC_NET
- See Also:
-
SERIALIZED_NAME_SERVER_TYPE
- See Also:
-
SERIALIZED_NAME_SSH_KEYS
- See Also:
-
SERIALIZED_NAME_START_AFTER_CREATE
- See Also:
-
SERIALIZED_NAME_USER_DATA
- See Also:
-
SERIALIZED_NAME_VOLUMES
- See Also:
-
-
Constructor Details
-
CreateServerRequest
public CreateServerRequest()
-
-
Method Details
-
automount
-
getAutomount
Auto-mount Volumes after attach- Returns:
- automount
-
setAutomount
-
datacenter
-
getDatacenter
ID or name of Datacenter to create Server in (must not be used together with location)- Returns:
- datacenter
-
setDatacenter
-
firewalls
-
addFirewallsItem
-
getFirewalls
Firewalls which should be applied on the Server's public network interface at creation time.- Returns:
- firewalls
-
setFirewalls
-
image
-
getImage
ID or name of the Image the Server is created from- Returns:
- image
-
setImage
-
labels
-
putLabelsItem
-
getLabels
User-defined labels (key-value pairs)- Returns:
- labels
-
setLabels
-
location
-
getLocation
ID or name of Location to create Server in (must not be used together with datacenter)- Returns:
- location
-
setLocation
-
name
-
getName
Name of the Server to create (must be unique per Project and a valid hostname as per RFC 1123)- Returns:
- name
-
setName
-
networks
-
addNetworksItem
-
getNetworks
Network IDs which should be attached to the Server private network interface at the creation time- Returns:
- networks
-
setNetworks
-
placementGroup
-
getPlacementGroup
ID of the Placement Group the server should be in- Returns:
- placementGroup
-
setPlacementGroup
-
publicNet
-
getPublicNet
Get publicNet- Returns:
- publicNet
-
setPublicNet
-
serverType
-
getServerType
ID or name of the Server type this Server should be created with- Returns:
- serverType
-
setServerType
-
sshKeys
-
addSshKeysItem
-
getSshKeys
SSH key IDs (`long`) or names (`string`) which should be injected into the Server at creation time- Returns:
- sshKeys
-
setSshKeys
-
startAfterCreate
-
getStartAfterCreate
Start Server right after creation. Defaults to true.- Returns:
- startAfterCreate
-
setStartAfterCreate
-
userData
-
getUserData
Cloud-Init user data to use during Server creation. This field is limited to 32KiB.- Returns:
- userData
-
setUserData
-
volumes
-
addVolumesItem
-
getVolumes
Volume IDs which should be attached to the Server at the creation time. Volumes must be in the same Location.- Returns:
- volumes
-
setVolumes
-
equals
-
hashCode
public int hashCode() -
toString
-