26#include <olp/core/porting/optional.h>
27#include "DataServiceReadApi.h"
28#include "FetchOptions.h"
31namespace dataservice {
60 start_version_ = startVersion;
87 template <
class T = porting::optional<std::
string>>
89 billing_tag_ = std::forward<T>(billingTag);
114 fetch_option_ = fetchoption;
124 std::stringstream out;
126 out <<
"@" << GetStartVersion();
128 if (GetBillingTag()) {
129 out <<
"$" << *GetBillingTag();
132 out <<
"^" << GetFetchOption();
138 int64_t start_version_{-1};
139 porting::optional<std::string> billing_tag_;
140 FetchOptions fetch_option_{OnlineIfNotFound};
Encapsulates the fields required to request catalog configuration.
Definition CatalogVersionRequest.h:37
const porting::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition CatalogVersionRequest.h:74
CatalogVersionRequest & WithStartVersion(int64_t startVersion)
Sets the catalog start version.
Definition CatalogVersionRequest.h:59
CatalogVersionRequest & WithFetchOption(FetchOptions fetchoption)
Sets the fetch option that you can use to set the source from which data should be fetched.
Definition CatalogVersionRequest.h:113
FetchOptions GetFetchOption() const
Gets the fetch option that controls how requests are handled.
Definition CatalogVersionRequest.h:101
int64_t GetStartVersion() const
Gets the catalog start version (exclusive) for the request.
Definition CatalogVersionRequest.h:48
std::string CreateKey() const
Creates a readable format of the request.
Definition CatalogVersionRequest.h:123
CatalogVersionRequest & WithBillingTag(T &&billingTag)
Sets the billing tag for the request.
Definition CatalogVersionRequest.h:88
Rules all the other namespaces.
Definition AppleSignInProperties.h:24