com.amadeus.ReferenceData Maven / Gradle / Ivy
package com.amadeus;
import com.amadeus.referenceData.Airlines;
import com.amadeus.referenceData.Location;
import com.amadeus.referenceData.Locations;
import com.amadeus.referenceData.RecommendedLocations;
import com.amadeus.referenceData.Urls;
/**
*
* A namespaced client for the
* /v2/reference-data
endpoints.
*
*
*
* Access via the Amadeus client object.
*
*
*
* Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
* amadeus.referenceData;
*
* @hide
*/
public class ReferenceData {
private Amadeus client;
/**
*
* A namespaced client for the
* /v2/reference-data/urls
endpoints.
*
*/
public Urls urls;
/**
*
* A namespaced client for the
* /v2/reference-data/locations
endpoints.
*
*/
public Locations locations;
/**
*
* A namespaced client for the
* /v2/reference-data/airlines
endpoints.
*
*/
public Airlines airlines;
/**
*
* A namespaced client for the
* /v1/reference-data/recommended-locations
endpoints.
*
*/
public RecommendedLocations recommendedLocations;
/**
* Constructor.
* @hide
*/
public ReferenceData(Amadeus client) {
this.client = client;
this.urls = new Urls(client);
this.locations = new Locations(client);
this.airlines = new Airlines(client);
this.recommendedLocations = new RecommendedLocations(client);
}
/**
*
* A namespaced client for the
* /v2/reference-data/location/:hotel_id
endpoints.
*
*/
public Location location(String locationId) {
return new Location(client, locationId);
}
}