Package cloud.dnation.hetznerclient
Class VolumeDetail
- java.lang.Object
-
- cloud.dnation.hetznerclient.IdentifiableResource
-
- cloud.dnation.hetznerclient.VolumeDetail
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-26T18:25:35.290404Z[Etc/UTC]") public class VolumeDetail extends IdentifiableResourceVolumeDetail
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_FORMATstatic StringSERIALIZED_NAME_LABELSstatic StringSERIALIZED_NAME_LINUX_DEVICEstatic StringSERIALIZED_NAME_LOCATIONstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_SERVERstatic StringSERIALIZED_NAME_SIZEstatic StringSERIALIZED_NAME_STATUS-
Fields inherited from class cloud.dnation.hetznerclient.IdentifiableResource
SERIALIZED_NAME_ID
-
-
Constructor Summary
Constructors Constructor Description VolumeDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)VolumeDetailformat(String format)StringgetFormat()Filesystem of the Volume if formatted on creation, null if not formatted on creationMap<String,String>getLabels()User-defined labels (key-value pairs)StringgetLinuxDevice()Device path on the file system for the VolumeLocationDetailgetLocation()Get locationStringgetName()Name of the Resource.LonggetServer()Object identifier/unique keyIntegergetSize()Size in GB of the VolumeStringgetStatus()Current status of the VolumeinthashCode()VolumeDetaillabels(Map<String,String> labels)VolumeDetaillinuxDevice(String linuxDevice)VolumeDetaillocation(LocationDetail location)VolumeDetailname(String name)VolumeDetailputLabelsItem(String key, String labelsItem)VolumeDetailserver(Long server)voidsetFormat(String format)voidsetLabels(Map<String,String> labels)voidsetLinuxDevice(String linuxDevice)voidsetLocation(LocationDetail location)voidsetName(String name)voidsetServer(Long server)voidsetSize(Integer size)voidsetStatus(String status)VolumeDetailsize(Integer size)VolumeDetailstatus(String status)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_FORMAT
public static final String SERIALIZED_NAME_FORMAT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVER
public static final String SERIALIZED_NAME_SERVER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIZE
public static final String SERIALIZED_NAME_SIZE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINUX_DEVICE
public static final String SERIALIZED_NAME_LINUX_DEVICE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_LOCATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABELS
public static final String SERIALIZED_NAME_LABELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public VolumeDetail name(String name)
-
getName
@Nullable public String getName()
Name of the Resource. Must be unique per Project.- Returns:
- name
-
setName
public void setName(String name)
-
format
public VolumeDetail format(String format)
-
getFormat
@Nullable public String getFormat()
Filesystem of the Volume if formatted on creation, null if not formatted on creation- Returns:
- format
-
setFormat
public void setFormat(String format)
-
server
public VolumeDetail server(Long server)
-
getServer
@Nullable public Long getServer()
Object identifier/unique key- Returns:
- server
-
setServer
public void setServer(Long server)
-
size
public VolumeDetail size(Integer size)
-
getSize
@Nullable public Integer getSize()
Size in GB of the Volume- Returns:
- size
-
setSize
public void setSize(Integer size)
-
linuxDevice
public VolumeDetail linuxDevice(String linuxDevice)
-
getLinuxDevice
@Nullable public String getLinuxDevice()
Device path on the file system for the Volume- Returns:
- linuxDevice
-
setLinuxDevice
public void setLinuxDevice(String linuxDevice)
-
status
public VolumeDetail status(String status)
-
getStatus
@Nullable public String getStatus()
Current status of the Volume- Returns:
- status
-
setStatus
public void setStatus(String status)
-
location
public VolumeDetail location(LocationDetail location)
-
getLocation
@Nullable public LocationDetail getLocation()
Get location- Returns:
- location
-
setLocation
public void setLocation(LocationDetail location)
-
labels
public VolumeDetail labels(Map<String,String> labels)
-
putLabelsItem
public VolumeDetail putLabelsItem(String key, String labelsItem)
-
getLabels
@Nullable public Map<String,String> getLabels()
User-defined labels (key-value pairs)- Returns:
- labels
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classIdentifiableResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIdentifiableResource
-
toString
public String toString()
- Overrides:
toStringin classIdentifiableResource
-
-