AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
64 inline TLSSecurityPolicy GetTLSSecurityPolicy() const { return m_tLSSecurityPolicy; }
65 inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; }
67 m_tLSSecurityPolicyHasBeenSet = true;
68 m_tLSSecurityPolicy = value;
69 }
72 return *this;
73 }
75
77
80 inline bool GetCustomEndpointEnabled() const { return m_customEndpointEnabled; }
81 inline bool CustomEndpointEnabledHasBeenSet() const { return m_customEndpointEnabledHasBeenSet; }
82 inline void SetCustomEndpointEnabled(bool value) {
83 m_customEndpointEnabledHasBeenSet = true;
84 m_customEndpointEnabled = value;
85 }
88 return *this;
89 }
91
93
96 inline const Aws::String& GetCustomEndpoint() const { return m_customEndpoint; }
97 inline bool CustomEndpointHasBeenSet() const { return m_customEndpointHasBeenSet; }
98 template <typename CustomEndpointT = Aws::String>
99 void SetCustomEndpoint(CustomEndpointT&& value) {
100 m_customEndpointHasBeenSet = true;
101 m_customEndpoint = std::forward<CustomEndpointT>(value);
102 }
103 template <typename CustomEndpointT = Aws::String>
104 DomainEndpointOptions& WithCustomEndpoint(CustomEndpointT&& value) {
105 SetCustomEndpoint(std::forward<CustomEndpointT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetCustomEndpointCertificateArn() const { return m_customEndpointCertificateArn; }
116 inline bool CustomEndpointCertificateArnHasBeenSet() const { return m_customEndpointCertificateArnHasBeenSet; }
117 template <typename CustomEndpointCertificateArnT = Aws::String>
118 void SetCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) {
119 m_customEndpointCertificateArnHasBeenSet = true;
120 m_customEndpointCertificateArn = std::forward<CustomEndpointCertificateArnT>(value);
121 }
122 template <typename CustomEndpointCertificateArnT = Aws::String>
123 DomainEndpointOptions& WithCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) {
124 SetCustomEndpointCertificateArn(std::forward<CustomEndpointCertificateArnT>(value));
125 return *this;
126 }
128 private:
129 bool m_enforceHTTPS{false};
130
132
133 bool m_customEndpointEnabled{false};
134
135 Aws::String m_customEndpoint;
136
137 Aws::String m_customEndpointCertificateArn;
138 bool m_enforceHTTPSHasBeenSet = false;
139 bool m_tLSSecurityPolicyHasBeenSet = false;
140 bool m_customEndpointEnabledHasBeenSet = false;
141 bool m_customEndpointHasBeenSet = false;
142 bool m_customEndpointCertificateArnHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace OpenSearchService
147} // 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