/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace kendra { namespace Model { class DescribeAccessControlConfigurationResult { public: AWS_KENDRA_API DescribeAccessControlConfigurationResult(); AWS_KENDRA_API DescribeAccessControlConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API DescribeAccessControlConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name for the access control configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the access control configuration.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name for the access control configuration.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name for the access control configuration.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name for the access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name for the access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name for the access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithName(const char* value) { SetName(value); return *this;} /** *

The description for the access control configuration.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the access control configuration.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description for the access control configuration.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description for the access control configuration.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description for the access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message containing details if there are issues processing the * access control configuration.

*/ inline DescribeAccessControlConfigurationResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline const Aws::Vector& GetAccessControlList() const{ return m_accessControlList; } /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline void SetAccessControlList(const Aws::Vector& value) { m_accessControlList = value; } /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline void SetAccessControlList(Aws::Vector&& value) { m_accessControlList = std::move(value); } /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline DescribeAccessControlConfigurationResult& WithAccessControlList(const Aws::Vector& value) { SetAccessControlList(value); return *this;} /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline DescribeAccessControlConfigurationResult& WithAccessControlList(Aws::Vector&& value) { SetAccessControlList(std::move(value)); return *this;} /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline DescribeAccessControlConfigurationResult& AddAccessControlList(const Principal& value) { m_accessControlList.push_back(value); return *this; } /** *

Information on principals (users and/or groups) and which documents they * should have access to. This is useful for user context filtering, where search * results are filtered based on the user or their group access to documents.

*/ inline DescribeAccessControlConfigurationResult& AddAccessControlList(Principal&& value) { m_accessControlList.push_back(std::move(value)); return *this; } /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline const Aws::Vector& GetHierarchicalAccessControlList() const{ return m_hierarchicalAccessControlList; } /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline void SetHierarchicalAccessControlList(const Aws::Vector& value) { m_hierarchicalAccessControlList = value; } /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline void SetHierarchicalAccessControlList(Aws::Vector&& value) { m_hierarchicalAccessControlList = std::move(value); } /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline DescribeAccessControlConfigurationResult& WithHierarchicalAccessControlList(const Aws::Vector& value) { SetHierarchicalAccessControlList(value); return *this;} /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline DescribeAccessControlConfigurationResult& WithHierarchicalAccessControlList(Aws::Vector&& value) { SetHierarchicalAccessControlList(std::move(value)); return *this;} /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline DescribeAccessControlConfigurationResult& AddHierarchicalAccessControlList(const HierarchicalPrincipal& value) { m_hierarchicalAccessControlList.push_back(value); return *this; } /** *

The list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline DescribeAccessControlConfigurationResult& AddHierarchicalAccessControlList(HierarchicalPrincipal&& value) { m_hierarchicalAccessControlList.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAccessControlConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAccessControlConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAccessControlConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_description; Aws::String m_errorMessage; Aws::Vector m_accessControlList; Aws::Vector m_hierarchicalAccessControlList; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws