25 #include <boost/optional.hpp>
27 #include <olp/dataservice/write/DataServiceWriteApi.h>
28 #include <olp/dataservice/write/generated/model/Details.h>
29 #include <olp/dataservice/write/generated/model/VersionDependency.h>
32 namespace dataservice {
47 boost::optional<std::string> id_;
48 boost::optional<Details> details_;
49 boost::optional<std::vector<std::string>> layer_ids_;
50 boost::optional<int64_t> catalog_version_;
51 boost::optional<std::vector<VersionDependency>> version_dependencies_;
59 const boost::optional<std::string>&
GetId()
const {
return id_; }
73 void SetId(
const std::string& value) { this->id_ = value; }
80 const boost::optional<Details>&
GetDetails()
const {
return details_; }
101 const boost::optional<std::vector<std::string>>&
GetLayerIds()
const {
121 this->layer_ids_ = value;
130 return catalog_version_;
141 return catalog_version_;
150 this->catalog_version_ = value;
158 const boost::optional<std::vector<VersionDependency>>&
160 return version_dependencies_;
168 boost::optional<std::vector<VersionDependency>>&
170 return version_dependencies_;
179 this->version_dependencies_ = value;
Details of the publication.
Definition: Details.h:32
Contains information on a publication.
Definition: Publication.h:37
void SetCatalogVersion(const int64_t &value)
Sets the catalog version.
Definition: Publication.h:149
const boost::optional< Details > & GetDetails() const
Gets the details of the publication.
Definition: Publication.h:80
const boost::optional< std::vector< VersionDependency > > & GetVersionDependencies() const
Gets the version dependencies.
Definition: Publication.h:159
void SetVersionDependencies(const std::vector< VersionDependency > &value)
Sets the version dependencies.
Definition: Publication.h:178
boost::optional< std::vector< VersionDependency > > & GetMutableVersionDependencies()
Gets a mutable reference to the version dependencies.
Definition: Publication.h:169
const boost::optional< int64_t > & GetCatalogVersion() const
Gets the version of the catalog to be published.
Definition: Publication.h:129
void SetDetails(const Details &value)
Sets the details of the publication.
Definition: Publication.h:94
boost::optional< std::string > & GetMutableId()
Gets a mutable reference to the publication ID.
Definition: Publication.h:66
boost::optional< Details > & GetMutableDetails()
Gets a mutable reference to the details of the publication.
Definition: Publication.h:87
void SetId(const std::string &value)
Sets the publication ID.
Definition: Publication.h:73
void SetLayerIds(const std::vector< std::string > &value)
Sets the layer ID.
Definition: Publication.h:120
boost::optional< int64_t > & GetMutableCatalogVersion()
Gets a mutable reference to the version of the catalog to be published.
Definition: Publication.h:140
boost::optional< std::vector< std::string > > & GetMutableLayerIds()
Gets a mutable reference to the ID of the layer that should be published.
Definition: Publication.h:111
const boost::optional< std::vector< std::string > > & GetLayerIds() const
Gets the ID of the layer that should be published.
Definition: Publication.h:101
const boost::optional< std::string > & GetId() const
Gets the publication ID.
Definition: Publication.h:59
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24