Package cloud.dnation.hetznerclient
Class ServerDetail
- java.lang.Object
-
- cloud.dnation.hetznerclient.IdentifiableResource
-
- cloud.dnation.hetznerclient.ServerDetail
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-26T18:25:35.290404Z[Etc/UTC]") public class ServerDetail extends IdentifiableResourceServerDetail
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CREATEDstatic StringSERIALIZED_NAME_DATACENTERstatic StringSERIALIZED_NAME_IMAGEstatic StringSERIALIZED_NAME_LABELSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PLACEMENT_GROUPstatic StringSERIALIZED_NAME_PRIVATE_NETstatic StringSERIALIZED_NAME_PUBLIC_NETstatic StringSERIALIZED_NAME_SERVER_TYPEstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_VOLUMES-
Fields inherited from class cloud.dnation.hetznerclient.IdentifiableResource
SERIALIZED_NAME_ID
-
-
Constructor Summary
Constructors Constructor Description ServerDetail()
-
Method Summary
-
Methods inherited from class cloud.dnation.hetznerclient.IdentifiableResource
getId, id, setId
-
-
-
-
Field Detail
-
SERIALIZED_NAME_CREATED
public static final String SERIALIZED_NAME_CREATED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATACENTER
public static final String SERIALIZED_NAME_DATACENTER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IMAGE
public static final String SERIALIZED_NAME_IMAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LABELS
public static final String SERIALIZED_NAME_LABELS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PLACEMENT_GROUP
public static final String SERIALIZED_NAME_PLACEMENT_GROUP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIVATE_NET
public static final String SERIALIZED_NAME_PRIVATE_NET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PUBLIC_NET
public static final String SERIALIZED_NAME_PUBLIC_NET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SERVER_TYPE
public static final String SERIALIZED_NAME_SERVER_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VOLUMES
public static final String SERIALIZED_NAME_VOLUMES
- See Also:
- Constant Field Values
-
-
Method Detail
-
created
public ServerDetail created(String created)
-
getCreated
@Nullable public String getCreated()
Point in time when the Resource was created (in ISO-8601 format)- Returns:
- created
-
setCreated
public void setCreated(String created)
-
datacenter
public ServerDetail datacenter(DatacenterDetail datacenter)
-
getDatacenter
@Nullable public DatacenterDetail getDatacenter()
Get datacenter- Returns:
- datacenter
-
setDatacenter
public void setDatacenter(DatacenterDetail datacenter)
-
image
public ServerDetail image(ImageDetail image)
-
getImage
@Nullable public ImageDetail getImage()
Get image- Returns:
- image
-
setImage
public void setImage(ImageDetail image)
-
labels
public ServerDetail labels(Map<String,String> labels)
-
putLabelsItem
public ServerDetail putLabelsItem(String key, String labelsItem)
-
getLabels
@Nullable public Map<String,String> getLabels()
User-defined labels (key-value pairs)- Returns:
- labels
-
name
public ServerDetail name(String name)
-
getName
@Nullable public String getName()
Name of the Server (must be unique per Project and a valid hostname as per RFC 1123)- Returns:
- name
-
setName
public void setName(String name)
-
placementGroup
public ServerDetail placementGroup(PlacementGroupDetail placementGroup)
-
getPlacementGroup
@Nullable public PlacementGroupDetail getPlacementGroup()
Get placementGroup- Returns:
- placementGroup
-
setPlacementGroup
public void setPlacementGroup(PlacementGroupDetail placementGroup)
-
privateNet
public ServerDetail privateNet(List<PrivateNetDetail> privateNet)
-
addPrivateNetItem
public ServerDetail addPrivateNetItem(PrivateNetDetail privateNetItem)
-
getPrivateNet
@Nullable public List<PrivateNetDetail> getPrivateNet()
Private networks information- Returns:
- privateNet
-
setPrivateNet
public void setPrivateNet(List<PrivateNetDetail> privateNet)
-
publicNet
public ServerDetail publicNet(PublicNetDetail publicNet)
-
getPublicNet
@Nullable public PublicNetDetail getPublicNet()
Get publicNet- Returns:
- publicNet
-
setPublicNet
public void setPublicNet(PublicNetDetail publicNet)
-
serverType
public ServerDetail serverType(ServerType serverType)
-
getServerType
@Nullable public ServerType getServerType()
Get serverType- Returns:
- serverType
-
setServerType
public void setServerType(ServerType serverType)
-
status
public ServerDetail status(String status)
-
getStatus
@Nullable public String getStatus()
Status of the Server- Returns:
- status
-
setStatus
public void setStatus(String status)
-
volumes
public ServerDetail volumes(List<Long> volumes)
-
addVolumesItem
public ServerDetail addVolumesItem(Long volumesItem)
-
getVolumes
@Nullable public List<Long> getVolumes()
IDs of Volumes assigned to this Server- Returns:
- volumes
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classIdentifiableResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIdentifiableResource
-
toString
public String toString()
- Overrides:
toStringin classIdentifiableResource
-
-