26 #include <olp/core/porting/deprecated.h>
27 #include <olp/dataservice/read/DataServiceReadApi.h>
28 #include <olp/dataservice/read/FetchOptions.h>
29 #include <boost/optional.hpp>
32 namespace dataservice {
55 start_version_ = version;
83 end_version_ = version;
120 billing_tag_ = std::move(tag);
135 billing_tag_ = std::move(tag);
145 std::stringstream out;
147 out << GetStartVersion() <<
", " << GetEndVersion();
149 if (GetBillingTag()) {
150 out <<
"$" << GetBillingTag().get();
156 std::int64_t start_version_;
157 std::int64_t end_version_;
158 boost::optional<std::string> billing_tag_;
Encapsulates the fields required to request a list of versions for the given catalog.
Definition: VersionsRequest.h:39
const boost::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition: VersionsRequest.h:106
std::int64_t GetStartVersion() const
Gets the catalog metadata start version of the requested versions list.
Definition: VersionsRequest.h:66
VersionsRequest & WithBillingTag(boost::optional< std::string > tag)
Sets the billing tag for the request.
Definition: VersionsRequest.h:119
VersionsRequest & WithBillingTag(std::string tag)
Sets the billing tag for the request.
Definition: VersionsRequest.h:134
VersionsRequest & WithEndVersion(std::int64_t version)
Sets the catalog metadata end version.
Definition: VersionsRequest.h:82
VersionsRequest & WithStartVersion(std::int64_t version)
Sets the catalog metadata start version.
Definition: VersionsRequest.h:54
std::string CreateKey() const
Creates a readable format for the request.
Definition: VersionsRequest.h:144
std::int64_t GetEndVersion() const
Gets the catalog metadata end version of the requested versions list.
Definition: VersionsRequest.h:94
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24