2 * Copyright (c) 2022 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <AittTypes.h>
22 class API AittOption {
25 explicit AittOption(bool clean_session, bool use_custom_broker);
26 ~AittOption() = default;
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;
43 bool use_custom_broker;
44 std::string service_id;
45 std::string location_id;
47 std::string custom_rw_file;