26#include <olp/core/porting/optional.h>
27#include <olp/dataservice/read/DataServiceReadApi.h>
28#include <olp/dataservice/read/FetchOptions.h>
31namespace dataservice {
62 template <
class T = porting::optional<std::
string>>
64 billing_tag_ = std::forward<T>(tag);
89 fetch_option_ = fetch_option;
99 std::stringstream out;
100 if (GetBillingTag()) {
101 out <<
"$" << *GetBillingTag();
103 out <<
"^" << GetFetchOption();
108 porting::optional<std::string> billing_tag_;
109 FetchOptions fetch_option_{OnlineIfNotFound};
Encapsulates the fields required to request catalog configuration.
Definition CatalogRequest.h:37
FetchOptions GetFetchOption() const
Gets the fetch option that controls how requests are handled.
Definition CatalogRequest.h:76
const porting::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition CatalogRequest.h:49
std::string CreateKey() const
Creates a readable format of the request.
Definition CatalogRequest.h:98
CatalogRequest & WithBillingTag(T &&tag)
Sets the billing tag for the request.
Definition CatalogRequest.h:63
CatalogRequest & WithFetchOption(const FetchOptions fetch_option)
Sets the fetch option that you can use to set the source from which data should be fetched.
Definition CatalogRequest.h:88
Rules all the other namespaces.
Definition AppleSignInProperties.h:24