AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
DomainEndpointOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9#include <aws/es/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 ElasticsearchService {
21namespace Model {
22
30 public:
31 AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions() = default;
32 AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetEnforceHTTPS() const { return m_enforceHTTPS; }
42 inline bool EnforceHTTPSHasBeenSet() const { return m_enforceHTTPSHasBeenSet; }
43 inline void SetEnforceHTTPS(bool value) {
44 m_enforceHTTPSHasBeenSet = true;
45 m_enforceHTTPS = value;
46 }
48 SetEnforceHTTPS(value);
49 return *this;
50 }
52
54
65 inline TLSSecurityPolicy GetTLSSecurityPolicy() const { return m_tLSSecurityPolicy; }
66 inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; }
68 m_tLSSecurityPolicyHasBeenSet = true;
69 m_tLSSecurityPolicy = value;
70 }
73 return *this;
74 }
76
78
82 inline bool GetCustomEndpointEnabled() const { return m_customEndpointEnabled; }
83 inline bool CustomEndpointEnabledHasBeenSet() const { return m_customEndpointEnabledHasBeenSet; }
84 inline void SetCustomEndpointEnabled(bool value) {
85 m_customEndpointEnabledHasBeenSet = true;
86 m_customEndpointEnabled = value;
87 }
90 return *this;
91 }
93
95
98 inline const Aws::String& GetCustomEndpoint() const { return m_customEndpoint; }
99 inline bool CustomEndpointHasBeenSet() const { return m_customEndpointHasBeenSet; }
100 template <typename CustomEndpointT = Aws::String>
101 void SetCustomEndpoint(CustomEndpointT&& value) {
102 m_customEndpointHasBeenSet = true;
103 m_customEndpoint = std::forward<CustomEndpointT>(value);
104 }
105 template <typename CustomEndpointT = Aws::String>
106 DomainEndpointOptions& WithCustomEndpoint(CustomEndpointT&& value) {
107 SetCustomEndpoint(std::forward<CustomEndpointT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetCustomEndpointCertificateArn() const { return m_customEndpointCertificateArn; }
117 inline bool CustomEndpointCertificateArnHasBeenSet() const { return m_customEndpointCertificateArnHasBeenSet; }
118 template <typename CustomEndpointCertificateArnT = Aws::String>
119 void SetCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) {
120 m_customEndpointCertificateArnHasBeenSet = true;
121 m_customEndpointCertificateArn = std::forward<CustomEndpointCertificateArnT>(value);
122 }
123 template <typename CustomEndpointCertificateArnT = Aws::String>
124 DomainEndpointOptions& WithCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) {
125 SetCustomEndpointCertificateArn(std::forward<CustomEndpointCertificateArnT>(value));
126 return *this;
127 }
129 private:
130 bool m_enforceHTTPS{false};
131
133
134 bool m_customEndpointEnabled{false};
135
136 Aws::String m_customEndpoint;
137
138 Aws::String m_customEndpointCertificateArn;
139 bool m_enforceHTTPSHasBeenSet = false;
140 bool m_tLSSecurityPolicyHasBeenSet = false;
141 bool m_customEndpointEnabledHasBeenSet = false;
142 bool m_customEndpointHasBeenSet = false;
143 bool m_customEndpointCertificateArnHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ElasticsearchService
148} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions()=default
AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainEndpointOptions & WithCustomEndpoint(CustomEndpointT &&value)
DomainEndpointOptions & WithTLSSecurityPolicy(TLSSecurityPolicy value)
DomainEndpointOptions & WithCustomEndpointCertificateArn(CustomEndpointCertificateArnT &&value)
void SetCustomEndpointCertificateArn(CustomEndpointCertificateArnT &&value)
AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue)
DomainEndpointOptions & WithCustomEndpointEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue