Package cloud.dnation.hetznerclient
Class LocationDetail
- java.lang.Object
-
- cloud.dnation.hetznerclient.IdentifiableResource
-
- cloud.dnation.hetznerclient.LocationDetail
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-26T18:25:35.290404Z[Etc/UTC]") public class LocationDetail extends IdentifiableResourceLocationDetail
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_LATITUDEstatic StringSERIALIZED_NAME_LONGITUDEstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_NETWORK_ZONE-
Fields inherited from class cloud.dnation.hetznerclient.IdentifiableResource
SERIALIZED_NAME_ID
-
-
Constructor Summary
Constructors Constructor Description LocationDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationDetailcity(String city)LocationDetailcountry(String country)LocationDetaildescription(String description)booleanequals(Object o)StringgetCity()City the Location is closest toStringgetCountry()ISO 3166-1 alpha-2 code of the country the Location resides inStringgetDescription()Description of the LocationBigDecimalgetLatitude()Latitude of the city closest to the LocationBigDecimalgetLongitude()Longitude of the city closest to the LocationStringgetName()Unique identifier of the LocationStringgetNetworkZone()Name of network zone this Location resides ininthashCode()LocationDetaillatitude(BigDecimal latitude)LocationDetaillongitude(BigDecimal longitude)LocationDetailname(String name)LocationDetailnetworkZone(String networkZone)voidsetCity(String city)voidsetCountry(String country)voidsetDescription(String description)voidsetLatitude(BigDecimal latitude)voidsetLongitude(BigDecimal longitude)voidsetName(String name)voidsetNetworkZone(String networkZone)StringtoString()-
Methods inherited from class cloud.dnation.hetznerclient.IdentifiableResource
getId, id, setId
-
-
-
-
Field Detail
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LATITUDE
public static final String SERIALIZED_NAME_LATITUDE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LONGITUDE
public static final String SERIALIZED_NAME_LONGITUDE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NETWORK_ZONE
public static final String SERIALIZED_NAME_NETWORK_ZONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
city
public LocationDetail city(String city)
-
getCity
@Nullable public String getCity()
City the Location is closest to- Returns:
- city
-
setCity
public void setCity(String city)
-
country
public LocationDetail country(String country)
-
getCountry
@Nullable public String getCountry()
ISO 3166-1 alpha-2 code of the country the Location resides in- Returns:
- country
-
setCountry
public void setCountry(String country)
-
description
public LocationDetail description(String description)
-
getDescription
@Nullable public String getDescription()
Description of the Location- Returns:
- description
-
setDescription
public void setDescription(String description)
-
latitude
public LocationDetail latitude(BigDecimal latitude)
-
getLatitude
@Nullable public BigDecimal getLatitude()
Latitude of the city closest to the Location- Returns:
- latitude
-
setLatitude
public void setLatitude(BigDecimal latitude)
-
longitude
public LocationDetail longitude(BigDecimal longitude)
-
getLongitude
@Nullable public BigDecimal getLongitude()
Longitude of the city closest to the Location- Returns:
- longitude
-
setLongitude
public void setLongitude(BigDecimal longitude)
-
name
public LocationDetail name(String name)
-
getName
@Nullable public String getName()
Unique identifier of the Location- Returns:
- name
-
setName
public void setName(String name)
-
networkZone
public LocationDetail networkZone(String networkZone)
-
getNetworkZone
@Nullable public String getNetworkZone()
Name of network zone this Location resides in- Returns:
- networkZone
-
setNetworkZone
public void setNetworkZone(String networkZone)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classIdentifiableResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classIdentifiableResource
-
toString
public String toString()
- Overrides:
toStringin classIdentifiableResource
-
-