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

Options for enabling and configuring fine-grained access control. For more * information, see Fine-grained * access control in Amazon OpenSearch Service.

See Also:

AWS * API Reference

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

True to enable fine-grained access control.

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

True to enable fine-grained access control.

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

True to enable fine-grained access control.

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

True to enable fine-grained access control.

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

True to enable the internal user database.

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

True to enable the internal user database.

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

True to enable the internal user database.

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

True to enable the internal user database.

*/ inline AdvancedSecurityOptionsInput& WithInternalUserDatabaseEnabled(bool value) { SetInternalUserDatabaseEnabled(value); return *this;} /** *

Container for information about the master user.

*/ inline const MasterUserOptions& GetMasterUserOptions() const{ return m_masterUserOptions; } /** *

Container for information about the master user.

*/ inline bool MasterUserOptionsHasBeenSet() const { return m_masterUserOptionsHasBeenSet; } /** *

Container for information about the master user.

*/ inline void SetMasterUserOptions(const MasterUserOptions& value) { m_masterUserOptionsHasBeenSet = true; m_masterUserOptions = value; } /** *

Container for information about the master user.

*/ inline void SetMasterUserOptions(MasterUserOptions&& value) { m_masterUserOptionsHasBeenSet = true; m_masterUserOptions = std::move(value); } /** *

Container for information about the master user.

*/ inline AdvancedSecurityOptionsInput& WithMasterUserOptions(const MasterUserOptions& value) { SetMasterUserOptions(value); return *this;} /** *

Container for information about the master user.

*/ inline AdvancedSecurityOptionsInput& WithMasterUserOptions(MasterUserOptions&& value) { SetMasterUserOptions(std::move(value)); return *this;} /** *

Container for information about the SAML configuration for OpenSearch * Dashboards.

*/ inline const SAMLOptionsInput& GetSAMLOptions() const{ return m_sAMLOptions; } /** *

Container for information about the SAML configuration for OpenSearch * Dashboards.

*/ inline bool SAMLOptionsHasBeenSet() const { return m_sAMLOptionsHasBeenSet; } /** *

Container for information about the SAML configuration for OpenSearch * Dashboards.

*/ inline void SetSAMLOptions(const SAMLOptionsInput& value) { m_sAMLOptionsHasBeenSet = true; m_sAMLOptions = value; } /** *

Container for information about the SAML configuration for OpenSearch * Dashboards.

*/ inline void SetSAMLOptions(SAMLOptionsInput&& value) { m_sAMLOptionsHasBeenSet = true; m_sAMLOptions = std::move(value); } /** *

Container for information about the SAML configuration for OpenSearch * Dashboards.

*/ inline AdvancedSecurityOptionsInput& WithSAMLOptions(const SAMLOptionsInput& value) { SetSAMLOptions(value); return *this;} /** *

Container for information about the SAML configuration for OpenSearch * Dashboards.

*/ inline AdvancedSecurityOptionsInput& WithSAMLOptions(SAMLOptionsInput&& value) { SetSAMLOptions(std::move(value)); return *this;} /** *

True to enable a 30-day migration period during which administrators can * create role mappings. Only necessary when enabling * fine-grained access control on an existing domain.

*/ inline bool GetAnonymousAuthEnabled() const{ return m_anonymousAuthEnabled; } /** *

True to enable a 30-day migration period during which administrators can * create role mappings. Only necessary when enabling * fine-grained access control on an existing domain.

*/ inline bool AnonymousAuthEnabledHasBeenSet() const { return m_anonymousAuthEnabledHasBeenSet; } /** *

True to enable a 30-day migration period during which administrators can * create role mappings. Only necessary when enabling * fine-grained access control on an existing domain.

*/ inline void SetAnonymousAuthEnabled(bool value) { m_anonymousAuthEnabledHasBeenSet = true; m_anonymousAuthEnabled = value; } /** *

True to enable a 30-day migration period during which administrators can * create role mappings. Only necessary when enabling * fine-grained access control on an existing domain.

*/ inline AdvancedSecurityOptionsInput& WithAnonymousAuthEnabled(bool value) { SetAnonymousAuthEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; bool m_internalUserDatabaseEnabled; bool m_internalUserDatabaseEnabledHasBeenSet = false; MasterUserOptions m_masterUserOptions; bool m_masterUserOptionsHasBeenSet = false; SAMLOptionsInput m_sAMLOptions; bool m_sAMLOptionsHasBeenSet = false; bool m_anonymousAuthEnabled; bool m_anonymousAuthEnabledHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws