Package cloud.dnation.hetznerclient
Class ServerType
- java.lang.Object
-
- cloud.dnation.hetznerclient.IdentifiableResource
-
- cloud.dnation.hetznerclient.ServerType
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-08-17T03:32:29.204871Z[Etc/UTC]") public class ServerType extends IdentifiableResourceServerType
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CORESstatic StringSERIALIZED_NAME_DEPRECATEDstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_DISKstatic StringSERIALIZED_NAME_MEMORYstatic StringSERIALIZED_NAME_NAME-
Fields inherited from class cloud.dnation.hetznerclient.IdentifiableResource
SERIALIZED_NAME_ID
-
-
Constructor Summary
Constructors Constructor Description ServerType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerTypecores(Integer cores)ServerTypedeprecated(Boolean deprecated)ServerTypedescription(String description)ServerTypedisk(Integer disk)booleanequals(Object o)IntegergetCores()Number of cpu cores a Server of this type will haveBooleangetDeprecated()True if Server type is deprecated,StringgetDescription()Description of the Server typeIntegergetDisk()Disk size a Server of this type will have in GBIntegergetMemory()Memory a Server of this type will have in GB,StringgetName()Get nameinthashCode()ServerTypememory(Integer memory)ServerTypename(String name)voidsetCores(Integer cores)voidsetDeprecated(Boolean deprecated)voidsetDescription(String description)voidsetDisk(Integer disk)voidsetMemory(Integer memory)voidsetName(String name)StringtoString()-
Methods inherited from class cloud.dnation.hetznerclient.IdentifiableResource
getId, id, setId
-
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CORES
public static final String SERIALIZED_NAME_CORES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MEMORY
public static final String SERIALIZED_NAME_MEMORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DISK
public static final String SERIALIZED_NAME_DISK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEPRECATED
public static final String SERIALIZED_NAME_DEPRECATED
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public ServerType name(String name)
-
getName
@Nullable public String getName()
Get name- Returns:
- name
-
setName
public void setName(String name)
-
description
public ServerType description(String description)
-
getDescription
@Nullable public String getDescription()
Description of the Server type- Returns:
- description
-
setDescription
public void setDescription(String description)
-
cores
public ServerType cores(Integer cores)
-
getCores
@Nullable public Integer getCores()
Number of cpu cores a Server of this type will have- Returns:
- cores
-
setCores
public void setCores(Integer cores)
-
memory
public ServerType memory(Integer memory)
-
getMemory
@Nullable public Integer getMemory()
Memory a Server of this type will have in GB,- Returns:
- memory
-
setMemory
public void setMemory(Integer memory)
-
disk
public ServerType disk(Integer disk)
-
getDisk
@Nullable public Integer getDisk()
Disk size a Server of this type will have in GB- Returns:
- disk
-
setDisk
public void setDisk(Integer disk)
-
deprecated
public ServerType deprecated(Boolean deprecated)
-
getDeprecated
@Nullable public Boolean getDeprecated()
True if Server type is deprecated,- Returns:
- deprecated
-
setDeprecated
public void setDeprecated(Boolean deprecated)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classIdentifiableResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIdentifiableResource
-
toString
public String toString()
- Overrides:
toStringin classIdentifiableResource
-
-