AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DomainEndpointOptions.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/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 OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API DomainEndpointOptions();
37 AWS_OPENSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API DomainEndpointOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline bool GetEnforceHTTPS() const{ return m_enforceHTTPS; }
47 inline bool EnforceHTTPSHasBeenSet() const { return m_enforceHTTPSHasBeenSet; }
48 inline void SetEnforceHTTPS(bool value) { m_enforceHTTPSHasBeenSet = true; m_enforceHTTPS = value; }
49 inline DomainEndpointOptions& WithEnforceHTTPS(bool value) { SetEnforceHTTPS(value); return *this;}
51
53
63 inline const TLSSecurityPolicy& GetTLSSecurityPolicy() const{ return m_tLSSecurityPolicy; }
64 inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; }
65 inline void SetTLSSecurityPolicy(const TLSSecurityPolicy& value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = value; }
66 inline void SetTLSSecurityPolicy(TLSSecurityPolicy&& value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = std::move(value); }
68 inline DomainEndpointOptions& WithTLSSecurityPolicy(TLSSecurityPolicy&& value) { SetTLSSecurityPolicy(std::move(value)); return *this;}
70
72
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 inline void SetCustomEndpoint(const Aws::String& value) { m_customEndpointHasBeenSet = true; m_customEndpoint = value; }
88 inline void SetCustomEndpoint(Aws::String&& value) { m_customEndpointHasBeenSet = true; m_customEndpoint = std::move(value); }
89 inline void SetCustomEndpoint(const char* value) { m_customEndpointHasBeenSet = true; m_customEndpoint.assign(value); }
90 inline DomainEndpointOptions& WithCustomEndpoint(const Aws::String& value) { SetCustomEndpoint(value); return *this;}
91 inline DomainEndpointOptions& WithCustomEndpoint(Aws::String&& value) { SetCustomEndpoint(std::move(value)); return *this;}
92 inline DomainEndpointOptions& WithCustomEndpoint(const char* value) { SetCustomEndpoint(value); return *this;}
94
96
100 inline const Aws::String& GetCustomEndpointCertificateArn() const{ return m_customEndpointCertificateArn; }
101 inline bool CustomEndpointCertificateArnHasBeenSet() const { return m_customEndpointCertificateArnHasBeenSet; }
102 inline void SetCustomEndpointCertificateArn(const Aws::String& value) { m_customEndpointCertificateArnHasBeenSet = true; m_customEndpointCertificateArn = value; }
103 inline void SetCustomEndpointCertificateArn(Aws::String&& value) { m_customEndpointCertificateArnHasBeenSet = true; m_customEndpointCertificateArn = std::move(value); }
104 inline void SetCustomEndpointCertificateArn(const char* value) { m_customEndpointCertificateArnHasBeenSet = true; m_customEndpointCertificateArn.assign(value); }
109 private:
110
111 bool m_enforceHTTPS;
112 bool m_enforceHTTPSHasBeenSet = false;
113
114 TLSSecurityPolicy m_tLSSecurityPolicy;
115 bool m_tLSSecurityPolicyHasBeenSet = false;
116
117 bool m_customEndpointEnabled;
118 bool m_customEndpointEnabledHasBeenSet = false;
119
120 Aws::String m_customEndpoint;
121 bool m_customEndpointHasBeenSet = false;
122
123 Aws::String m_customEndpointCertificateArn;
124 bool m_customEndpointCertificateArnHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace OpenSearchService
129} // namespace Aws
DomainEndpointOptions & WithCustomEndpointEnabled(bool value)
DomainEndpointOptions & WithTLSSecurityPolicy(const TLSSecurityPolicy &value)
AWS_OPENSEARCHSERVICE_API DomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue)
DomainEndpointOptions & WithCustomEndpointCertificateArn(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DomainEndpointOptions & WithTLSSecurityPolicy(TLSSecurityPolicy &&value)
DomainEndpointOptions & WithCustomEndpointCertificateArn(Aws::String &&value)
DomainEndpointOptions & WithCustomEndpointCertificateArn(const char *value)
AWS_OPENSEARCHSERVICE_API DomainEndpointOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainEndpointOptions & WithCustomEndpoint(Aws::String &&value)
DomainEndpointOptions & WithCustomEndpoint(const Aws::String &value)
DomainEndpointOptions & WithCustomEndpoint(const char *value)
void SetTLSSecurityPolicy(const TLSSecurityPolicy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue