AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DomainEndpointOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/TLSSecurityPolicy.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ElasticsearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions() = default;
37 AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICSEARCHSERVICE_API DomainEndpointOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetEnforceHTTPS() const { return m_enforceHTTPS; }
48 inline bool EnforceHTTPSHasBeenSet() const { return m_enforceHTTPSHasBeenSet; }
49 inline void SetEnforceHTTPS(bool value) { m_enforceHTTPSHasBeenSet = true; m_enforceHTTPS = value; }
50 inline DomainEndpointOptions& WithEnforceHTTPS(bool value) { SetEnforceHTTPS(value); return *this;}
52
54
64 inline TLSSecurityPolicy GetTLSSecurityPolicy() const { return m_tLSSecurityPolicy; }
65 inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; }
66 inline void SetTLSSecurityPolicy(TLSSecurityPolicy value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = value; }
69
71
75 inline bool GetCustomEndpointEnabled() const { return m_customEndpointEnabled; }
76 inline bool CustomEndpointEnabledHasBeenSet() const { return m_customEndpointEnabledHasBeenSet; }
77 inline void SetCustomEndpointEnabled(bool value) { m_customEndpointEnabledHasBeenSet = true; m_customEndpointEnabled = value; }
80
82
85 inline const Aws::String& GetCustomEndpoint() const { return m_customEndpoint; }
86 inline bool CustomEndpointHasBeenSet() const { return m_customEndpointHasBeenSet; }
87 template<typename CustomEndpointT = Aws::String>
88 void SetCustomEndpoint(CustomEndpointT&& value) { m_customEndpointHasBeenSet = true; m_customEndpoint = std::forward<CustomEndpointT>(value); }
89 template<typename CustomEndpointT = Aws::String>
90 DomainEndpointOptions& WithCustomEndpoint(CustomEndpointT&& value) { SetCustomEndpoint(std::forward<CustomEndpointT>(value)); return *this;}
92
94
97 inline const Aws::String& GetCustomEndpointCertificateArn() const { return m_customEndpointCertificateArn; }
98 inline bool CustomEndpointCertificateArnHasBeenSet() const { return m_customEndpointCertificateArnHasBeenSet; }
99 template<typename CustomEndpointCertificateArnT = Aws::String>
100 void SetCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) { m_customEndpointCertificateArnHasBeenSet = true; m_customEndpointCertificateArn = std::forward<CustomEndpointCertificateArnT>(value); }
101 template<typename CustomEndpointCertificateArnT = Aws::String>
102 DomainEndpointOptions& WithCustomEndpointCertificateArn(CustomEndpointCertificateArnT&& value) { SetCustomEndpointCertificateArn(std::forward<CustomEndpointCertificateArnT>(value)); return *this;}
104 private:
105
106 bool m_enforceHTTPS{false};
107 bool m_enforceHTTPSHasBeenSet = false;
108
110 bool m_tLSSecurityPolicyHasBeenSet = false;
111
112 bool m_customEndpointEnabled{false};
113 bool m_customEndpointEnabledHasBeenSet = false;
114
115 Aws::String m_customEndpoint;
116 bool m_customEndpointHasBeenSet = false;
117
118 Aws::String m_customEndpointCertificateArn;
119 bool m_customEndpointCertificateArnHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace ElasticsearchService
124} // 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