fix typo from clear_session to clean_session
[platform/core/ml/aitt.git] / include / AittOption.h
1 /*
2  * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
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 #pragma once
17
18 #include <AittTypes.h>
19
20 #include <string>
21
22 class API AittOption {
23   public:
24     AittOption();
25     explicit AittOption(bool clean_session, bool use_custom_broker);
26     ~AittOption() = default;
27
28     void SetCleanSession(bool val);
29     bool GetCleanSession() const;
30     void SetUseCustomMqttBroker(bool val);
31     bool GetUseCustomMqttBroker() const;
32     void SetServiceID(const std::string &id);
33     const char *GetServiceID() const;
34     void SetLocationID(const std::string &id);
35     const char *GetLocationID() const;
36     void SetRootCA(const std::string &ca);
37     const char *GetRootCA() const;
38     void SetCustomRWFile(const std::string &file);
39     const char *GetCustomRWFile() const;
40
41   private:
42     bool clean_session_;
43     bool use_custom_broker;
44     std::string service_id;
45     std::string location_id;
46     std::string root_ca;
47     std::string custom_rw_file;
48 };