26 #include <boost/optional.hpp>
28 #include "DataServiceReadApi.h"
29 #include "FetchOptions.h"
32 namespace dataservice {
61 start_version_ = startVersion;
89 boost::optional<std::string> billingTag) {
90 billing_tag_ = std::move(billingTag);
105 billing_tag_ = std::move(billingTag);
130 fetch_option_ = fetchoption;
140 std::stringstream out;
142 out <<
"@" << GetStartVersion();
144 if (GetBillingTag()) {
145 out <<
"$" << GetBillingTag().get();
148 out <<
"^" << GetFetchOption();
154 int64_t start_version_{-1};
155 boost::optional<std::string> billing_tag_;
156 FetchOptions fetch_option_{OnlineIfNotFound};
Encapsulates the fields required to request catalog configuration.
Definition: CatalogVersionRequest.h:38
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:129
FetchOptions GetFetchOption() const
Gets the fetch option that controls how requests are handled.
Definition: CatalogVersionRequest.h:117
int64_t GetStartVersion() const
Gets the catalog start version (exclusive) for the request.
Definition: CatalogVersionRequest.h:49
std::string CreateKey() const
Creates a readable format of the request.
Definition: CatalogVersionRequest.h:139
CatalogVersionRequest & WithBillingTag(boost::optional< std::string > billingTag)
Sets the billing tag for the request.
Definition: CatalogVersionRequest.h:88
const boost::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition: CatalogVersionRequest.h:75
CatalogVersionRequest & WithStartVersion(int64_t startVersion)
Sets the catalog start version.
Definition: CatalogVersionRequest.h:60
CatalogVersionRequest & WithBillingTag(std::string &&billingTag)
Sets the billing tag for the request.
Definition: CatalogVersionRequest.h:104
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24