AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DomainEndpointOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/TLSSecurityPolicy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVICE_API DomainEndpointOptions() = default;
32 AWS_OPENSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API DomainEndpointOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline bool GetEnforceHTTPS() const { return m_enforceHTTPS; }
41 inline bool EnforceHTTPSHasBeenSet() const { return m_enforceHTTPSHasBeenSet; }
42 inline void SetEnforceHTTPS(bool value) {
43 m_enforceHTTPSHasBeenSet = true;
44 m_enforceHTTPS = value;
45 }
47 SetEnforceHTTPS(value);
48 return *this;
49 }
51
53
63 inline TLSSecurityPolicy GetTLSSecurityPolicy() const { return m_tLSSecurityPolicy; }
64 inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; }
66 m_tLSSecurityPolicyHasBeenSet = true;
67 m_tLSSecurityPolicy = value;
68 }
71 return *this;
72 }
74
76
79 inline bool GetCustomEndpointEnabled() const { return m_customEndpointEnabled; }
80 inline bool CustomEndpointEnabledHasBeenSet() const { return m_customEndpointEnabledHasBeenSet; }
81 inline void SetCustomEndpointEnabled(bool value) {
82 m_customEndpointEnabledHasBeenSet = true;
83 m_customEndpointEnabled = value;
84 }
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCustomEndpoint() const { return m_customEndpoint; }
96 inline bool CustomEndpointHasBeenSet() const { return m_customEndpointHasBeenSet; }
97 template <typename CustomEndpointT = Aws::String>
98 void SetCustomEndpoint(CustomEndpointT&& value) {
99 m_customEndpointHasBeenSet = true;
100 m_customEndpoint = std::forward<CustomEndpointT>(value);
101 }
102 template <typename CustomEndpointT = Aws::String>
103 DomainEndpointOptions& WithCustomEndpoint(CustomEndpointT&& value) {
104 SetCustomEndpoint(std::forward<CustomEndpointT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetCustomEndpointCertificateArn() const { return m_customEndpointCertificateArn; }
115 inline bool CustomEndpointCertificateArnHasBeenSet() const { return m_customEndpointCertificateArnHasBeenSet; }
116 template <typename CustomEndpointCertificateArnT = Aws::String>
117 void SetCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) {
118 m_customEndpointCertificateArnHasBeenSet = true;
119 m_customEndpointCertificateArn = std::forward<CustomEndpointCertificateArnT>(value);
120 }
121 template <typename CustomEndpointCertificateArnT = Aws::String>
122 DomainEndpointOptions& WithCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) {
123 SetCustomEndpointCertificateArn(std::forward<CustomEndpointCertificateArnT>(value));
124 return *this;
125 }
127 private:
128 bool m_enforceHTTPS{false};
129
131
132 bool m_customEndpointEnabled{false};
133
134 Aws::String m_customEndpoint;
135
136 Aws::String m_customEndpointCertificateArn;
137 bool m_enforceHTTPSHasBeenSet = false;
138 bool m_tLSSecurityPolicyHasBeenSet = false;
139 bool m_customEndpointEnabledHasBeenSet = false;
140 bool m_customEndpointHasBeenSet = false;
141 bool m_customEndpointCertificateArnHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace OpenSearchService
146} // namespace Aws
DomainEndpointOptions & WithTLSSecurityPolicy(TLSSecurityPolicy value)
DomainEndpointOptions & WithCustomEndpoint(CustomEndpointT &&value)
DomainEndpointOptions & WithCustomEndpointEnabled(bool value)
AWS_OPENSEARCHSERVICE_API DomainEndpointOptions()=default
AWS_OPENSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API DomainEndpointOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomEndpointCertificateArn(CustomEndpointCertificateArnT &&value)
DomainEndpointOptions & WithCustomEndpointCertificateArn(CustomEndpointCertificateArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue