olp-cpp-sdk 1.24.0
Loading...
Searching...
No Matches
Details.h
1/*
2 * Copyright (C) 2019-2023 HERE Europe B.V.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * SPDX-License-Identifier: Apache-2.0
17 * License-Filename: LICENSE
18 */
19
20#pragma once
21
22#include <string>
23
24#include <olp/dataservice/write/DataServiceWriteApi.h>
25
26namespace olp {
27namespace dataservice {
28namespace write {
29namespace model {
30
32class DATASERVICE_WRITE_API Details {
33 public:
34 Details() = default;
35 Details(const Details&) = default;
36 Details(Details&&) = default;
37 Details& operator=(const Details&) = default;
38 Details& operator=(Details&&) = default;
39 virtual ~Details() = default;
40
41 private:
42 std::string state_;
43 std::string message_;
44 int64_t started_{0};
45 int64_t modified_{0};
46 int64_t expires_{0};
47
48 public:
54 const std::string& GetState() const { return state_; }
55
61 std::string& GetMutableState() { return state_; }
62
68 void SetState(const std::string& value) { this->state_ = value; }
69
75 const std::string& GetMessage() const { return message_; }
76
82 std::string& GetMutableMessage() { return message_; }
83
89 void SetMessage(const std::string& value) { this->message_ = value; }
90
96 const int64_t& GetStarted() const { return started_; }
97
103 int64_t& GetMutableStarted() { return started_; }
104
110 void SetStarted(const int64_t& value) { this->started_ = value; }
111
117 const int64_t& GetModified() const { return modified_; }
118
126 int64_t& GetMutableModified() { return modified_; }
127
133 void SetModified(const int64_t& value) { this->modified_ = value; }
134
140 const int64_t& GetExpires() const { return expires_; }
141
147 int64_t& GetMutableExpires() { return expires_; }
148
154 void SetExpires(const int64_t& value) { this->expires_ = value; }
155};
156
157} // namespace model
158} // namespace write
159} // namespace dataservice
160} // namespace olp
Details of the publication.
Definition Details.h:32
const int64_t & GetModified() const
Gets the timestamp of when the publication was modified.
Definition Details.h:117
int64_t & GetMutableExpires()
Gets a mutable reference to the publication expiration timestamp.
Definition Details.h:147
int64_t & GetMutableModified()
Gets a mutable reference to the timestamp of when the publication was modified.
Definition Details.h:126
const int64_t & GetStarted() const
Gets the publication start timestamp.
Definition Details.h:96
const std::string & GetMessage() const
Gets the publication description.
Definition Details.h:75
void SetState(const std::string &value)
Sets the state of the publication.
Definition Details.h:68
void SetMessage(const std::string &value)
Sets the publication description.
Definition Details.h:89
const int64_t & GetExpires() const
Gets the publication expiration timestamp.
Definition Details.h:140
void SetStarted(const int64_t &value)
Sets the publication start timestamp.
Definition Details.h:110
void SetExpires(const int64_t &value)
Sets the expiry time of the publication.
Definition Details.h:154
int64_t & GetMutableStarted()
Gets a mutable reference to the publication start timestamp.
Definition Details.h:103
const std::string & GetState() const
Gets the state of the publication.
Definition Details.h:54
void SetModified(const int64_t &value)
Sets the timestamp of when the publication was modified.
Definition Details.h:133
std::string & GetMutableMessage()
Gets a mutable reference to the publication description.
Definition Details.h:82
std::string & GetMutableState()
Gets a mutable reference to the publication state.
Definition Details.h:61
Rules all the other namespaces.
Definition AppleSignInProperties.h:24