/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the advanced security configuration: whether advanced security is
* enabled, whether the internal database option is enabled, master username and
* password (if internal database is enabled), and master user ARN (if IAM is
* enabled).See Also:
AWS
* API Reference
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 AdvancedSecurityOptionsInput& 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 AdvancedSecurityOptionsInput& WithInternalUserDatabaseEnabled(bool value) { SetInternalUserDatabaseEnabled(value); return *this;} /** *Credentials for the master user: username and password, ARN, or both.
*/ inline const MasterUserOptions& GetMasterUserOptions() const{ return m_masterUserOptions; } /** *Credentials for the master user: username and password, ARN, or both.
*/ inline bool MasterUserOptionsHasBeenSet() const { return m_masterUserOptionsHasBeenSet; } /** *Credentials for the master user: username and password, ARN, or both.
*/ inline void SetMasterUserOptions(const MasterUserOptions& value) { m_masterUserOptionsHasBeenSet = true; m_masterUserOptions = value; } /** *Credentials for the master user: username and password, ARN, or both.
*/ inline void SetMasterUserOptions(MasterUserOptions&& value) { m_masterUserOptionsHasBeenSet = true; m_masterUserOptions = std::move(value); } /** *Credentials for the master user: username and password, ARN, or both.
*/ inline AdvancedSecurityOptionsInput& WithMasterUserOptions(const MasterUserOptions& value) { SetMasterUserOptions(value); return *this;} /** *Credentials for the master user: username and password, ARN, or both.
*/ inline AdvancedSecurityOptionsInput& WithMasterUserOptions(MasterUserOptions&& value) { SetMasterUserOptions(std::move(value)); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet; bool m_internalUserDatabaseEnabled; bool m_internalUserDatabaseEnabledHasBeenSet; MasterUserOptions m_masterUserOptions; bool m_masterUserOptionsHasBeenSet; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws