azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/ServiceEndpointsProperties.java
public ServiceEndpoints getServiceEndpoints(String environment) {
        Assert.notEmpty(endpoints, "No service endpoints found");

        if (!endpoints.containsKey(environment)) {
            throw new IllegalArgumentException(environment + " is not found in the configuration," +
                    " only following environments are supported: " + endpoints.keySet());
        }

        return endpoints.get(environment);
    }
public ServiceEndpoints getServiceEndpoints(String environment) {
        Assert.notEmpty(endpoints, "No service endpoints found");

        if (!endpoints.containsKey(environment)) {
            throw new IllegalArgumentException(environment + " is not found in the configuration," +
                    " only following environments are supported: " + endpoints.keySet());
        }

        return endpoints.get(environment);
    }
public ServiceEndpoints getServiceEndpoints ( String environment ) { Assert . notEmpty ( endpoints , "No service endpoints found" ) ; if ( ! endpoints . containsKey ( environment ) ) { throw new IllegalArgumentException ( environment + " is not found in the configuration," + " only following environments are supported: " + endpoints . keySet ( ) ) ; } return endpoints . get ( environment ) ; }
Get ServiceEndpoints data for the given environment.

@param environment the environment of the cloud service
@return The ServiceEndpoints data for the given azure service <code>environment</code>
Get ServiceEndpoints data for the given environment .