26 #include <olp/dataservice/read/DataServiceReadApi.h>
27 #include <olp/dataservice/read/FetchOptions.h>
28 #include <boost/optional.hpp>
31 namespace dataservice {
63 billing_tag_ = std::move(tag);
78 billing_tag_ = std::move(tag);
103 fetch_option_ = fetch_option;
113 std::stringstream out;
114 if (GetBillingTag()) {
115 out <<
"$" << GetBillingTag().get();
117 out <<
"^" << GetFetchOption();
122 boost::optional<std::string> billing_tag_;
123 FetchOptions fetch_option_{OnlineIfNotFound};
Encapsulates the fields required to request catalog configuration.
Definition: CatalogRequest.h:37
CatalogRequest & WithBillingTag(std::string &&tag)
Sets the billing tag for the request.
Definition: CatalogRequest.h:77
FetchOptions GetFetchOption() const
Gets the fetch option that controls how requests are handled.
Definition: CatalogRequest.h:90
CatalogRequest & WithFetchOption(FetchOptions fetch_option)
Sets the fetch option that you can use to set the source from which data should be fetched.
Definition: CatalogRequest.h:102
const boost::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition: CatalogRequest.h:49
CatalogRequest & WithBillingTag(boost::optional< std::string > tag)
Sets the billing tag for the request.
Definition: CatalogRequest.h:62
std::string CreateKey() const
Creates a readable format of the request.
Definition: CatalogRequest.h:112
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24