AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ConnectionProperties.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/model/CrossClusterSearchConnectionProperties.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API ConnectionProperties() = default;
37 AWS_OPENSEARCHSERVICE_API ConnectionProperties(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API ConnectionProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
49 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
50 template<typename EndpointT = Aws::String>
51 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
52 template<typename EndpointT = Aws::String>
53 ConnectionProperties& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
55
57
60 inline const CrossClusterSearchConnectionProperties& GetCrossClusterSearch() const { return m_crossClusterSearch; }
61 inline bool CrossClusterSearchHasBeenSet() const { return m_crossClusterSearchHasBeenSet; }
62 template<typename CrossClusterSearchT = CrossClusterSearchConnectionProperties>
63 void SetCrossClusterSearch(CrossClusterSearchT&& value) { m_crossClusterSearchHasBeenSet = true; m_crossClusterSearch = std::forward<CrossClusterSearchT>(value); }
64 template<typename CrossClusterSearchT = CrossClusterSearchConnectionProperties>
65 ConnectionProperties& WithCrossClusterSearch(CrossClusterSearchT&& value) { SetCrossClusterSearch(std::forward<CrossClusterSearchT>(value)); return *this;}
67 private:
68
69 Aws::String m_endpoint;
70 bool m_endpointHasBeenSet = false;
71
72 CrossClusterSearchConnectionProperties m_crossClusterSearch;
73 bool m_crossClusterSearchHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace OpenSearchService
78} // namespace Aws
AWS_OPENSEARCHSERVICE_API ConnectionProperties(Aws::Utils::Json::JsonView jsonValue)
const CrossClusterSearchConnectionProperties & GetCrossClusterSearch() const
AWS_OPENSEARCHSERVICE_API ConnectionProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API ConnectionProperties()=default
void SetCrossClusterSearch(CrossClusterSearchT &&value)
ConnectionProperties & WithCrossClusterSearch(CrossClusterSearchT &&value)
ConnectionProperties & WithEndpoint(EndpointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue