Hazelcast C++ Client
Hazelcast C++ Client Library
aws_client.h
1 /*
2  * Copyright (c) 2008-2022, Hazelcast, Inc. 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 <string>
19 #include <unordered_map>
20 
21 #include "hazelcast/util/export.h"
22 #include "hazelcast/client/address.h"
23 
24 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
25 #pragma warning(push)
26 #pragma warning(disable : 4251) // for dll export
27 #endif
28 
29 namespace hazelcast {
30 class logger;
31 
32 namespace client {
33 class client_properties;
34 namespace config {
35 class client_aws_config;
36 }
37 namespace aws {
38 class HAZELCAST_API aws_client
39 {
40 public:
41  aws_client(std::chrono::steady_clock::duration timeout,
42  config::client_aws_config& aws_config,
44  logger& lg);
45 
46  std::unordered_map<address, address> get_addresses();
47 
48 private:
49 #ifdef HZ_BUILD_WITH_SSL
50  std::chrono::steady_clock::duration timeout_;
51  config::client_aws_config& aws_config_;
52  std::string endpoint_;
53  logger& logger_;
54  int aws_member_port_;
55 #endif // HZ_BUILD_WITH_SSL
56 };
57 } // namespace aws
58 } // namespace client
59 } // namespace hazelcast
60 
61 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
62 #pragma warning(pop)
63 #endif
Client Properties is an internal class.
The client_aws_config contains the configuration for client to connect to nodes in aws environment.