public class SafetyRatedLocation
extends java.lang.Object
A namespaced client for the
/v1/safety/safety-rated-locations endpoints.
Access via the Amadeus client object.
Amadeus amadeus = Amadeus.builder("clientId", "secret").build();
amadeus.safety.safetyRatedLocations;| Constructor and Description |
|---|
SafetyRatedLocation(Amadeus client,
java.lang.String safetyRatedLocationId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SafePlace |
get()
Convenience method for calling
get without any parameters. |
SafePlace |
get(Params params)
Returns safety information of a location based on it's Id.
|
public SafetyRatedLocation(Amadeus client, java.lang.String safetyRatedLocationId)
public SafePlace get(Params params) throws ResponseException
Returns safety information of a location based on it's Id.
amadeus.safety.safetyRatedLocation("Q930402719").get();params - the parameters to send to the APIResponseException - when an exception occurspublic SafePlace get() throws ResponseException
get without any parameters.ResponseExceptionget()