All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amadeus.resources.City Maven / Gradle / Ivy

package com.amadeus.resources;

import lombok.Getter;
import lombok.ToString;

/**
 * A City object as returned by the City Search API.
 * @see com.amadeus.referenceData.locations.Cities#get()
 */
@ToString
public class City extends Resource {
  protected City() {}

  private @Getter String type;
  private @Getter Relationship[] relationships;
  private @Getter String subType;
  private @Getter String name;
  private @Getter String iataCode;
  private @Getter Address address;
  private @Getter Location.GeoCode geoCode;

  @ToString
  public class Relationship {
    protected Relationship() {}

    private @Getter String id;
    private @Getter String type;
    private @Getter String href;
  }

  @ToString
  public class Address {
    protected Address() {}

    private @Getter String postalCode;
    private @Getter String countryCode;
    private @Getter String stateCode;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy