/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Additional options for the domain endpoint, such as whether to require HTTPS * for all traffic.

See Also:

AWS * API Reference

*/ class AwsElasticsearchDomainDomainEndpointOptions { public: AWS_SECURITYHUB_API AwsElasticsearchDomainDomainEndpointOptions(); AWS_SECURITYHUB_API AwsElasticsearchDomainDomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsElasticsearchDomainDomainEndpointOptions& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Whether to require that all traffic to the domain arrive over HTTPS.

*/ inline bool GetEnforceHTTPS() const{ return m_enforceHTTPS; } /** *

Whether to require that all traffic to the domain arrive over HTTPS.

*/ inline bool EnforceHTTPSHasBeenSet() const { return m_enforceHTTPSHasBeenSet; } /** *

Whether to require that all traffic to the domain arrive over HTTPS.

*/ inline void SetEnforceHTTPS(bool value) { m_enforceHTTPSHasBeenSet = true; m_enforceHTTPS = value; } /** *

Whether to require that all traffic to the domain arrive over HTTPS.

*/ inline AwsElasticsearchDomainDomainEndpointOptions& WithEnforceHTTPS(bool value) { SetEnforceHTTPS(value); return *this;} /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline const Aws::String& GetTLSSecurityPolicy() const{ return m_tLSSecurityPolicy; } /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; } /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline void SetTLSSecurityPolicy(const Aws::String& value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = value; } /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline void SetTLSSecurityPolicy(Aws::String&& value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = std::move(value); } /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline void SetTLSSecurityPolicy(const char* value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy.assign(value); } /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline AwsElasticsearchDomainDomainEndpointOptions& WithTLSSecurityPolicy(const Aws::String& value) { SetTLSSecurityPolicy(value); return *this;} /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline AwsElasticsearchDomainDomainEndpointOptions& WithTLSSecurityPolicy(Aws::String&& value) { SetTLSSecurityPolicy(std::move(value)); return *this;} /** *

The TLS security policy to apply to the HTTPS endpoint of the OpenSearch * domain.

Valid values:

  • * Policy-Min-TLS-1-0-2019-07, which supports TLSv1.0 and higher

    *
  • Policy-Min-TLS-1-2-2019-07, which only supports * TLSv1.2

*/ inline AwsElasticsearchDomainDomainEndpointOptions& WithTLSSecurityPolicy(const char* value) { SetTLSSecurityPolicy(value); return *this;} private: bool m_enforceHTTPS; bool m_enforceHTTPSHasBeenSet = false; Aws::String m_tLSSecurityPolicy; bool m_tLSSecurityPolicyHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws