/** * 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 kendra { namespace Model { /** *

Information to define the hierarchy for which documents users should have * access to.

See Also:

AWS * API Reference

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

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline const Aws::Vector& GetPrincipalList() const{ return m_principalList; } /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline bool PrincipalListHasBeenSet() const { return m_principalListHasBeenSet; } /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline void SetPrincipalList(const Aws::Vector& value) { m_principalListHasBeenSet = true; m_principalList = value; } /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline void SetPrincipalList(Aws::Vector&& value) { m_principalListHasBeenSet = true; m_principalList = std::move(value); } /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline HierarchicalPrincipal& WithPrincipalList(const Aws::Vector& value) { SetPrincipalList(value); return *this;} /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline HierarchicalPrincipal& WithPrincipalList(Aws::Vector&& value) { SetPrincipalList(std::move(value)); return *this;} /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline HierarchicalPrincipal& AddPrincipalList(const Principal& value) { m_principalListHasBeenSet = true; m_principalList.push_back(value); return *this; } /** *

A list of principal * lists that define the hierarchy for which documents users should have access to. * Each hierarchical list specifies which user or group has allow or deny access * for each document.

*/ inline HierarchicalPrincipal& AddPrincipalList(Principal&& value) { m_principalListHasBeenSet = true; m_principalList.push_back(std::move(value)); return *this; } private: Aws::Vector m_principalList; bool m_principalListHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws