olp-cpp-sdk  1.22.0
DeleteIndexDataRequest.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 #pragma once
20 
21 #include <memory>
22 #include <string>
23 #include <utility>
24 #include <vector>
25 
26 #include <olp/dataservice/write/DataServiceWriteApi.h>
27 
28 namespace olp {
29 namespace dataservice {
30 namespace write {
31 namespace model {
32 
34 class DATASERVICE_WRITE_API DeleteIndexDataRequest {
35  public:
40  DeleteIndexDataRequest& operator=(const DeleteIndexDataRequest&) = default;
41  DeleteIndexDataRequest& operator=(DeleteIndexDataRequest&&) = default;
42  virtual ~DeleteIndexDataRequest() = default;
43 
49  inline const std::string& GetLayerId() const { return layer_id_; }
50 
58  inline DeleteIndexDataRequest& WithLayerId(const std::string& layer_id) {
59  layer_id_ = layer_id;
60  return *this;
61  }
62 
70  inline DeleteIndexDataRequest& WithLayerId(std::string&& layer_id) {
71  layer_id_ = std::move(layer_id);
72  return *this;
73  }
74 
80  inline const std::string& GetIndexId() const { return index_id_; }
81 
90  inline DeleteIndexDataRequest& WithIndexId(const std::string& index_id) {
91  index_id_ = index_id;
92  return *this;
93  }
94 
103  inline DeleteIndexDataRequest& WithIndexId(const std::string&& index_id) {
104  index_id_ = std::move(index_id);
105  return *this;
106  }
107 
108  private:
109  std::string layer_id_;
110  std::string index_id_;
111 };
112 } // namespace model
113 } // namespace write
114 } // namespace dataservice
115 } // namespace olp
Deletes index data from an index layer.
Definition: DeleteIndexDataRequest.h:34
DeleteIndexDataRequest & WithIndexId(const std::string &&index_id)
Sets the index ID that is associated with the data blob.
Definition: DeleteIndexDataRequest.h:103
DeleteIndexDataRequest & WithIndexId(const std::string &index_id)
Sets the index ID that is associated with the data blob.
Definition: DeleteIndexDataRequest.h:90
DeleteIndexDataRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID to which the data blob belongs.
Definition: DeleteIndexDataRequest.h:58
const std::string & GetLayerId() const
Gets the layer ID to which the data blob belongs.
Definition: DeleteIndexDataRequest.h:49
DeleteIndexDataRequest()=default
A default constructor.
const std::string & GetIndexId() const
Gets the index ID that is associated with the data blob.
Definition: DeleteIndexDataRequest.h:80
DeleteIndexDataRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID to which the data blob belongs.
Definition: DeleteIndexDataRequest.h:70
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24