Package com.duffel.sdk.model
Class Place
java.lang.Object
com.duffel.sdk.model.Place
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class Place
extends Object
Place
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAirportsItem(Airport2 airportsItem) booleanThe airports associated to a city.@NotNull @Valid City3getCity()Get city@NotNull StringThe name of the city (or cities separated by a `/`) where the airport is located@NotNull StringThe 3-letter IATA code for the city where the place is located.@NotNull StringThe 3-letter IATA code for the place@NotNull StringThe [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for the country where the city is located@NotNull StringThe four-character ICAO code for the airport@NotNull StringgetId()Duffel's unique identifier for the place@NotNull FloatThe latitude position of the airport represented in [Decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) with 6 decimal points with a range between -90° and 90°@NotNull FloatThe longitude position of the airport represented in [Decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) with 6 decimal points with a range between -180° and 180°@NotNull StringgetName()The name of the place@NotNull StringThe time zone of the airport, specified by name from the [tz database](https://en.wikipedia.org/wiki/Tz_database)@NotNull Place.TypeEnumgetType()The type of the placeinthashCode()iataCityCode(String iataCityCode) iataCountryCode(String iataCountryCode) voidsetAirports(List<Airport2> airports) voidsetAirports_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<Airport2>> airports) voidvoidsetCityName(String cityName) voidsetIataCityCode(String iataCityCode) voidsetIataCode(String iataCode) voidsetIataCountryCode(String iataCountryCode) voidsetIcaoCode(String icaoCode) voidvoidsetLatitude(Float latitude) voidsetLongitude(Float longitude) voidvoidsetTimeZone(String timeZone) voidsetType(Place.TypeEnum type) toString()type(Place.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_AIRPORTS
- See Also:
-
JSON_PROPERTY_CITY
- See Also:
-
JSON_PROPERTY_CITY_NAME
- See Also:
-
JSON_PROPERTY_IATA_CITY_CODE
- See Also:
-
JSON_PROPERTY_IATA_CODE
- See Also:
-
JSON_PROPERTY_IATA_COUNTRY_CODE
- See Also:
-
JSON_PROPERTY_ICAO_CODE
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LATITUDE
- See Also:
-
JSON_PROPERTY_LONGITUDE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_TIME_ZONE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
Place
public Place()
-
-
Method Details
-
airports
-
addAirportsItem
-
getAirports
The airports associated to a city. This will only be provided where the `type` is `city`.- Returns:
- airports
-
getAirports_JsonNullable
-
setAirports_JsonNullable
-
setAirports
-
city
-
getCity
Get city- Returns:
- city
-
setCity
-
cityName
-
getCityName
The name of the city (or cities separated by a `/`) where the airport is located- Returns:
- cityName
-
setCityName
-
iataCityCode
-
getIataCityCode
The 3-letter IATA code for the city where the place is located. Only present for airports which are registered with IATA as belonging to a [metropolitan area](https://portal.iata.org/faq/articles/en_US/FAQ/How-do-I-create-a-new-Metropolitan-Area).- Returns:
- iataCityCode
-
setIataCityCode
-
iataCode
-
getIataCode
The 3-letter IATA code for the place- Returns:
- iataCode
-
setIataCode
-
iataCountryCode
-
getIataCountryCode
The [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for the country where the city is located- Returns:
- iataCountryCode
-
setIataCountryCode
-
icaoCode
-
getIcaoCode
The four-character ICAO code for the airport- Returns:
- icaoCode
-
setIcaoCode
-
id
-
getId
Duffel's unique identifier for the place- Returns:
- id
-
setId
-
latitude
-
getLatitude
The latitude position of the airport represented in [Decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) with 6 decimal points with a range between -90° and 90°- Returns:
- latitude
-
setLatitude
-
longitude
-
getLongitude
The longitude position of the airport represented in [Decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees) with 6 decimal points with a range between -180° and 180°- Returns:
- longitude
-
setLongitude
-
name
-
getName
The name of the place- Returns:
- name
-
setName
-
timeZone
-
getTimeZone
The time zone of the airport, specified by name from the [tz database](https://en.wikipedia.org/wiki/Tz_database)- Returns:
- timeZone
-
setTimeZone
-
type
-
getType
The type of the place- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-