25#include <olp/core/porting/optional.h>
26#include <olp/dataservice/write/DataServiceWriteApi.h>
27#include <olp/dataservice/write/generated/model/Details.h>
28#include <olp/dataservice/write/generated/model/VersionDependency.h>
31namespace dataservice {
46 porting::optional<std::string> id_;
47 porting::optional<Details> details_;
48 porting::optional<std::vector<std::string>> layer_ids_;
49 porting::optional<int64_t> catalog_version_;
50 porting::optional<std::vector<VersionDependency>> version_dependencies_;
58 const porting::optional<std::string>&
GetId()
const {
return id_; }
72 void SetId(
const std::string& value) { this->id_ = value; }
79 const porting::optional<Details>&
GetDetails()
const {
return details_; }
100 const porting::optional<std::vector<std::string>>&
GetLayerIds()
const {
120 this->layer_ids_ = value;
129 return catalog_version_;
140 return catalog_version_;
149 this->catalog_version_ = value;
157 const porting::optional<std::vector<VersionDependency>>&
159 return version_dependencies_;
167 porting::optional<std::vector<VersionDependency>>&
169 return version_dependencies_;
178 this->version_dependencies_ = value;
Details of the publication.
Definition Details.h:32
Contains information on a publication.
Definition Publication.h:36
const porting::optional< std::vector< VersionDependency > > & GetVersionDependencies() const
Gets the version dependencies.
Definition Publication.h:158
void SetCatalogVersion(const int64_t &value)
Sets the catalog version.
Definition Publication.h:148
const porting::optional< std::string > & GetId() const
Gets the publication ID.
Definition Publication.h:58
porting::optional< std::vector< std::string > > & GetMutableLayerIds()
Gets a mutable reference to the ID of the layer that should be published.
Definition Publication.h:110
void SetVersionDependencies(const std::vector< VersionDependency > &value)
Sets the version dependencies.
Definition Publication.h:177
const porting::optional< int64_t > & GetCatalogVersion() const
Gets the version of the catalog to be published.
Definition Publication.h:128
porting::optional< std::string > & GetMutableId()
Gets a mutable reference to the publication ID.
Definition Publication.h:65
const porting::optional< std::vector< std::string > > & GetLayerIds() const
Gets the ID of the layer that should be published.
Definition Publication.h:100
void SetDetails(const Details &value)
Sets the details of the publication.
Definition Publication.h:93
porting::optional< Details > & GetMutableDetails()
Gets a mutable reference to the details of the publication.
Definition Publication.h:86
void SetId(const std::string &value)
Sets the publication ID.
Definition Publication.h:72
porting::optional< int64_t > & GetMutableCatalogVersion()
Gets a mutable reference to the version of the catalog to be published.
Definition Publication.h:139
void SetLayerIds(const std::vector< std::string > &value)
Sets the layer ID.
Definition Publication.h:119
const porting::optional< Details > & GetDetails() const
Gets the details of the publication.
Definition Publication.h:79
porting::optional< std::vector< VersionDependency > > & GetMutableVersionDependencies()
Gets a mutable reference to the version dependencies.
Definition Publication.h:168
Rules all the other namespaces.
Definition AppleSignInProperties.h:24