public class Covid19Report
extends java.lang.Object
A namespaced client for the
/v2/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.covid19Report;
| Constructor and Description |
|---|
Covid19Report(Amadeus client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DiseaseReport |
get()
Convenience method for calling
get without any parameters. |
DiseaseReport |
get(Params params)
Get up-to-date data on COVID-19 caseloads and travel restrictions
for a given country, city or region.
|
public Covid19Report(Amadeus client)
public DiseaseReport 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.covid19Report.get(Params
.with("countryCode", "US"));
params - the parameters to send to the APIResponseException - when an exception occurspublic DiseaseReport get() throws ResponseException
get without any parameters.ResponseExceptionget()