Creates a builder object that can be used to build an Amadeus com.amadeus.client. Amadeus amadeus = Amadeus.builder("CLIENT_ID", "CLIENT_SECRET").build(); @param clientId Your API com.amadeus.client credential ID @param clientSecret Your API com.amadeus.client credential secret @r
(String clientId, String clientSecret)
| 130 | * @return a Configuration object |
| 131 | */ |
| 132 | public static Configuration builder(String clientId, String clientSecret) { |
| 133 | if (clientId == null) { |
| 134 | throw new IllegalArgumentException("clientId can't be null"); |
| 135 | } |
| 136 | if (clientSecret == null) { |
| 137 | throw new IllegalArgumentException("clientSecret can't be null"); |
| 138 | } |
| 139 | return new Configuration(clientId, clientSecret); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Creates a builder object initialized with the environment variables that can be used to build |