Package com.duffel.sdk.model
Class City2
java.lang.Object
com.duffel.sdk.model.City2
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class City2
extends Object
Metadata about a city. This will only be provided where the `type` is `city`.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe three-character IATA code for the cityThe [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code for the country where the city is locatedgetId()Duffel's unique identifier for the citygetName()The name of the cityinthashCode()iataCountryCode(String iataCountryCode) voidsetIataCode(String iataCode) voidsetIataCountryCode(String iataCountryCode) voidvoidtoString()
-
Field Details
-
JSON_PROPERTY_IATA_CODE
- See Also:
-
JSON_PROPERTY_IATA_COUNTRY_CODE
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
City2
public City2()
-
-
Method Details
-
iataCode
-
getIataCode
The three-character IATA code for the city- 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
-
id
-
getId
Duffel's unique identifier for the city- Returns:
- id
-
setId
-
name
-
getName
The name of the city- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-