public class Covid19AreaReport
extends java.lang.Object
A namespaced client for the
/v1/duty-of-care/diseases/covid19-area-report endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder(API_KEY, API_SECRET).build(); amadeus.dutyOfCare.diseases.covid19AreaReport;
| Constructor and Description |
|---|
Covid19AreaReport(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DiseaseAreaReport |
get()
Convenience method for calling
get without any parameters. |
DiseaseAreaReport |
get(Params params)
Get up-to-date data on COVID-19 caseloads and travel restrictions
for a given country, city or region.
|
public Covid19AreaReport(Amadeus client)
public DiseaseAreaReport get(Params params) throws ResponseException
Get up-to-date data on COVID-19 caseloads and travel restrictions for a given country, city or region.
amadeus.dutyOfCare.diseases.covid19AreaReport.get(Params
.with("countryCode", "US"));
params - the parameters to send to the APIResponseException - when an exception occurspublic DiseaseAreaReport get() throws ResponseException
get without any parameters.ResponseExceptionget()