Class CreateServerRequest


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-08-17T03:32:29.204871Z[Etc/UTC]")
    public class CreateServerRequest
    extends Object
    CreateServerRequest
    • Constructor Detail

      • CreateServerRequest

        public CreateServerRequest()
    • Method Detail

      • getAutomount

        @Nullable
        public Boolean getAutomount()
        Auto-mount Volumes after attach
        Returns:
        automount
      • setAutomount

        public void setAutomount​(Boolean automount)
      • getDatacenter

        @Nullable
        public String getDatacenter()
        ID or name of Datacenter to create Server in (must not be used together with location)
        Returns:
        datacenter
      • setDatacenter

        public void setDatacenter​(String datacenter)
      • getImage

        @Nullable
        public String getImage()
        ID or name of the Image the Server is created from
        Returns:
        image
      • setImage

        public void setImage​(String image)
      • getLabels

        @Nullable
        public Map<String,​String> getLabels()
        User-defined labels (key-value pairs)
        Returns:
        labels
      • getLocation

        @Nullable
        public String getLocation()
        ID or name of Location to create Server in (must not be used together with datacenter)
        Returns:
        location
      • setLocation

        public void setLocation​(String location)
      • getName

        @Nullable
        public String getName()
        Name of the Server to create (must be unique per Project and a valid hostname as per RFC 1123)
        Returns:
        name
      • setName

        public void setName​(String name)
      • getNetworks

        @Nullable
        public List<Long> getNetworks()
        Network IDs which should be attached to the Server private network interface at the creation time
        Returns:
        networks
      • setNetworks

        public void setNetworks​(List<Long> networks)
      • getPlacementGroup

        @Nullable
        public Long getPlacementGroup()
        ID of the Placement Group the server should be in
        Returns:
        placementGroup
      • setPlacementGroup

        public void setPlacementGroup​(Long placementGroup)
      • getPublicNet

        @Nullable
        public PublicNetRequest getPublicNet()
        Get publicNet
        Returns:
        publicNet
      • getServerType

        @Nullable
        public String getServerType()
        ID or name of the Server type this Server should be created with
        Returns:
        serverType
      • setServerType

        public void setServerType​(String serverType)
      • getSshKeys

        @Nullable
        public List<String> getSshKeys()
        SSH key IDs (`long`) or names (`string`) which should be injected into the Server at creation time
        Returns:
        sshKeys
      • setSshKeys

        public void setSshKeys​(List<String> sshKeys)
      • getStartAfterCreate

        @Nullable
        public Boolean getStartAfterCreate()
        Start Server right after creation. Defaults to true.
        Returns:
        startAfterCreate
      • setStartAfterCreate

        public void setStartAfterCreate​(Boolean startAfterCreate)
      • getUserData

        @Nullable
        public String getUserData()
        Cloud-Init user data to use during Server creation. This field is limited to 32KiB.
        Returns:
        userData
      • setUserData

        public void setUserData​(String userData)
      • getVolumes

        @Nullable
        public List<Long> getVolumes()
        Volume IDs which should be attached to the Server at the creation time. Volumes must be in the same Location.
        Returns:
        volumes
      • setVolumes

        public void setVolumes​(List<Long> volumes)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object