MCPcopy Index your code
hub / github.com/amadeus4dev/amadeus-java / builder

Method builder

src/main/java/com/amadeus/Amadeus.java:132–140  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Calls 2

parseEnvironmentMethod · 0.95
getMethod · 0.45