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

Specifies the advanced security configuration: whether advanced security is * enabled, whether the internal database option is enabled.

See * Also:

AWS * API Reference

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

True if advanced security is enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

True if advanced security is enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

True if advanced security is enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

True if advanced security is enabled.

*/ inline AdvancedSecurityOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

True if the internal user database is enabled.

*/ inline bool GetInternalUserDatabaseEnabled() const{ return m_internalUserDatabaseEnabled; } /** *

True if the internal user database is enabled.

*/ inline bool InternalUserDatabaseEnabledHasBeenSet() const { return m_internalUserDatabaseEnabledHasBeenSet; } /** *

True if the internal user database is enabled.

*/ inline void SetInternalUserDatabaseEnabled(bool value) { m_internalUserDatabaseEnabledHasBeenSet = true; m_internalUserDatabaseEnabled = value; } /** *

True if the internal user database is enabled.

*/ inline AdvancedSecurityOptions& WithInternalUserDatabaseEnabled(bool value) { SetInternalUserDatabaseEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet; bool m_internalUserDatabaseEnabled; bool m_internalUserDatabaseEnabledHasBeenSet; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws