AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
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
81 inline bool GetCustomEndpointEnabled() const { return m_customEndpointEnabled; }
82 inline bool CustomEndpointEnabledHasBeenSet() const { return m_customEndpointEnabledHasBeenSet; }
83 inline void SetCustomEndpointEnabled(bool value) {
84 m_customEndpointEnabledHasBeenSet = true;
85 m_customEndpointEnabled = value;
86 }
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCustomEndpoint() const { return m_customEndpoint; }
98 inline bool CustomEndpointHasBeenSet() const { return m_customEndpointHasBeenSet; }
99 template <typename CustomEndpointT = Aws::String>
100 void SetCustomEndpoint(CustomEndpointT&& value) {
101 m_customEndpointHasBeenSet = true;
102 m_customEndpoint = std::forward<CustomEndpointT>(value);
103 }
104 template <typename CustomEndpointT = Aws::String>
105 DomainEndpointOptions& WithCustomEndpoint(CustomEndpointT&& value) {
106 SetCustomEndpoint(std::forward<CustomEndpointT>(value));
107 return *this;
108 }
110
112
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 ElasticsearchService
147} // 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