3 #include <launchdarkly/config/shared/built/service_endpoints.hpp>
4 #include <launchdarkly/error.hpp>
6 #include "tl/expected.hpp"
12 namespace launchdarkly::config::shared::builders {
14 template <
typename SDK>
15 class EndpointsBuilder;
17 template <
typename SDK>
18 bool operator==(EndpointsBuilder<SDK>
const& lhs,
19 EndpointsBuilder<SDK>
const& rhs);
27 template <
typename SDK>
72 [[nodiscard]] tl::expected<built::ServiceEndpoints, Error>
Build()
const;
75 std::optional<std::string> polling_base_url_;
76 std::optional<std::string> streaming_base_url_;
77 std::optional<std::string> events_base_url_;
Definition: endpoints_builder.hpp:28
EndpointsBuilder & StreamingBaseUrl(std::string url)
Definition: endpoints_builder.cpp:14
EndpointsBuilder & EventsBaseUrl(std::string url)
Definition: endpoints_builder.cpp:20
EndpointsBuilder()=default
tl::expected< built::ServiceEndpoints, Error > Build() const
Definition: endpoints_builder.cpp:46
EndpointsBuilder & PollingBaseUrl(std::string url)
Definition: endpoints_builder.cpp:9
EndpointsBuilder & RelayProxyBaseURL(std::string const &url)
Definition: endpoints_builder.cpp:26