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

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

package com.amadeus.resources;

import lombok.Getter;
import lombok.ToString;

/**
 * A Hotel object as returned by the Hotel List API.
 * @see com.amadeus.referencedata.locations.hotels.ByHotels#get()
 * @see com.amadeus.referencedata.locations.hotels.ByCity#get()
 * @see com.amadeus.referencedata.locations.hotels.ByGeocode#get()
 */
@ToString
public class Hotel extends Resource {
  private @Getter String subtype;
  private @Getter String name;
  private @Getter String timeZoneName;
  private @Getter String iataCode;
  private @Getter Address address;
  private @Getter GeoCode geoCode;
  private @Getter String googlePlaceId;
  private @Getter String openjetAirportId;
  private @Getter String uicCode;
  private @Getter String hotelId;
  private @Getter String chainCode;
  private @Getter Distance distance;
  private @Getter String lastUpdate;

  protected Hotel() {}

  @ToString
  public class Address {
    private @Getter String category;
    private @Getter String[] lines;
    private @Getter String postalCode;
    private @Getter String countryCode;
    private @Getter String cityName;
    private @Getter String stateCode;
    private @Getter String postalBox;
    private @Getter String text;
    private @Getter String state;

    protected Address() {}
  }

  @ToString
  public class GeoCode {
    private @Getter float latitude;
    private @Getter float longitude;

    protected GeoCode() {}
  }

  @ToString
  public class Distance {
    private @Getter String unit;
    private @Getter double value;
    private @Getter String displayValue;
    private @Getter String isUnlimited;

    protected Distance() {}
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy