olp-cpp-sdk  1.22.0
ResponseOkSingle.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 
26 namespace olp {
27 namespace dataservice {
28 namespace write {
29 namespace model {
34 class DATASERVICE_WRITE_API ResponseOkSingle {
35  public:
36  ResponseOkSingle() = default;
37  ResponseOkSingle(const ResponseOkSingle&) = default;
39  ResponseOkSingle& operator=(const ResponseOkSingle&) = default;
40  ResponseOkSingle& operator=(ResponseOkSingle&&) = default;
41  virtual ~ResponseOkSingle() = default;
42 
43  private:
44  std::string trace_id_;
45 
46  public:
56  const std::string& GetTraceID() const { return trace_id_; }
57 
65  std::string& GetMutableTraceID() { return trace_id_; }
66 
76  void SetTraceID(const std::string& value) { this->trace_id_ = value; }
77 };
78 
79 } // namespace model
80 } // namespace write
81 } // namespace dataservice
82 } // namespace olp
Represents a response to a successful data upload operation to a catalog layer.
Definition: ResponseOkSingle.h:34
std::string & GetMutableTraceID()
Gets a mutable reference to the trace ID of the request.
Definition: ResponseOkSingle.h:65
const std::string & GetTraceID() const
Gets the trace ID of the request.
Definition: ResponseOkSingle.h:56
void SetTraceID(const std::string &value)
Sets the trace ID of the request.
Definition: ResponseOkSingle.h:76
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24