public PropertiesEndpointGroup build() {
        if (resourceUrl != null) {
            return new PropertiesEndpointGroup(selectionStrategy,
                                               loadEndpoints(resourceUrl, endpointKeyPrefix, defaultPort));
        }

        if (properties != null) {
            return new PropertiesEndpointGroup(selectionStrategy,
                                               loadEndpoints(properties, endpointKeyPrefix, defaultPort));
        }

        assert path != null;
        return new PropertiesEndpointGroup(selectionStrategy, path, endpointKeyPrefix, defaultPort);
    }
Returns a new {@link PropertiesEndpointGroup} built from the properties set so far.
core/src/main/java/com/linecorp/armeria/client/endpoint/PropertiesEndpointGroupBuilder.java