146 lines
5.9 KiB
C++
146 lines
5.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/securityhub/SecurityHub_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SecurityHub
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Additional options for the domain endpoint, such as whether to require HTTPS
|
|
* for all traffic.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsElasticsearchDomainDomainEndpointOptions">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SECURITYHUB_API AwsElasticsearchDomainDomainEndpointOptions
|
|
{
|
|
public:
|
|
AwsElasticsearchDomainDomainEndpointOptions();
|
|
AwsElasticsearchDomainDomainEndpointOptions(Aws::Utils::Json::JsonView jsonValue);
|
|
AwsElasticsearchDomainDomainEndpointOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>Whether to require that all traffic to the domain arrive over HTTPS.</p>
|
|
*/
|
|
inline bool GetEnforceHTTPS() const{ return m_enforceHTTPS; }
|
|
|
|
/**
|
|
* <p>Whether to require that all traffic to the domain arrive over HTTPS.</p>
|
|
*/
|
|
inline bool EnforceHTTPSHasBeenSet() const { return m_enforceHTTPSHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Whether to require that all traffic to the domain arrive over HTTPS.</p>
|
|
*/
|
|
inline void SetEnforceHTTPS(bool value) { m_enforceHTTPSHasBeenSet = true; m_enforceHTTPS = value; }
|
|
|
|
/**
|
|
* <p>Whether to require that all traffic to the domain arrive over HTTPS.</p>
|
|
*/
|
|
inline AwsElasticsearchDomainDomainEndpointOptions& WithEnforceHTTPS(bool value) { SetEnforceHTTPS(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetTLSSecurityPolicy() const{ return m_tLSSecurityPolicy; }
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline bool TLSSecurityPolicyHasBeenSet() const { return m_tLSSecurityPolicyHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline void SetTLSSecurityPolicy(const Aws::String& value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = value; }
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline void SetTLSSecurityPolicy(Aws::String&& value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy = std::move(value); }
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline void SetTLSSecurityPolicy(const char* value) { m_tLSSecurityPolicyHasBeenSet = true; m_tLSSecurityPolicy.assign(value); }
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline AwsElasticsearchDomainDomainEndpointOptions& WithTLSSecurityPolicy(const Aws::String& value) { SetTLSSecurityPolicy(value); return *this;}
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline AwsElasticsearchDomainDomainEndpointOptions& WithTLSSecurityPolicy(Aws::String&& value) { SetTLSSecurityPolicy(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The TLS security policy to apply to the HTTPS endpoint of the Elasticsearch
|
|
* domain.</p> <p>Valid values:</p> <ul> <li> <p>
|
|
* <code>Policy-Min-TLS-1-0-2019-07</code>, which supports TLSv1.0 and higher</p>
|
|
* </li> <li> <p> <code>Policy-Min-TLS-1-2-2019-07</code>, which only supports
|
|
* TLSv1.2</p> </li> </ul>
|
|
*/
|
|
inline AwsElasticsearchDomainDomainEndpointOptions& WithTLSSecurityPolicy(const char* value) { SetTLSSecurityPolicy(value); return *this;}
|
|
|
|
private:
|
|
|
|
bool m_enforceHTTPS;
|
|
bool m_enforceHTTPSHasBeenSet;
|
|
|
|
Aws::String m_tLSSecurityPolicy;
|
|
bool m_tLSSecurityPolicyHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SecurityHub
|
|
} // namespace Aws
|