/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace kendra { namespace Model { /** */ class UpdateAccessControlConfigurationRequest : public KendraRequest { public: AWS_KENDRA_API UpdateAccessControlConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessControlConfiguration"; } AWS_KENDRA_API Aws::String SerializePayload() const override; AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the index for an access control configuration.

*/ inline const Aws::String& GetIndexId() const{ return m_indexId; } /** *

The identifier of the index for an access control configuration.

*/ inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; } /** *

The identifier of the index for an access control configuration.

*/ inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; } /** *

The identifier of the index for an access control configuration.

*/ inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); } /** *

The identifier of the index for an access control configuration.

*/ inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); } /** *

The identifier of the index for an access control configuration.

*/ inline UpdateAccessControlConfigurationRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;} /** *

The identifier of the index for an access control configuration.

*/ inline UpdateAccessControlConfigurationRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;} /** *

The identifier of the index for an access control configuration.

*/ inline UpdateAccessControlConfigurationRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;} /** *

The identifier of the access control configuration you want to update.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the access control configuration you want to update.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the access control configuration you want to update.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the access control configuration you want to update.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the access control configuration you want to update.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the access control configuration you want to update.

*/ inline UpdateAccessControlConfigurationRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the access control configuration you want to update.

*/ inline UpdateAccessControlConfigurationRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the access control configuration you want to update.

*/ inline UpdateAccessControlConfigurationRequest& WithId(const char* value) { SetId(value); return *this;} /** *

A new name for the access control configuration.

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

A new name for the access control configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A new name for the access control configuration.

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

A new name for the access control configuration.

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

A new name for the access control configuration.

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

A new name for the access control configuration.

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

A new name for the access control configuration.

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

A new name for the access control configuration.

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

A new description for the access control configuration.

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

A new description for the access control configuration.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A new description for the access control configuration.

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

A new description for the access control configuration.

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

A new description for the access control configuration.

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

A new description for the access control configuration.

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

A new description for the access control configuration.

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

A new description for the access control configuration.

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

Information you want to update 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 you want to update 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 bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; } /** *

Information you want to update 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_accessControlListHasBeenSet = true; m_accessControlList = value; } /** *

Information you want to update 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_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); } /** *

Information you want to update 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 UpdateAccessControlConfigurationRequest& WithAccessControlList(const Aws::Vector& value) { SetAccessControlList(value); return *this;} /** *

Information you want to update 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 UpdateAccessControlConfigurationRequest& WithAccessControlList(Aws::Vector&& value) { SetAccessControlList(std::move(value)); return *this;} /** *

Information you want to update 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 UpdateAccessControlConfigurationRequest& AddAccessControlList(const Principal& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(value); return *this; } /** *

Information you want to update 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 UpdateAccessControlConfigurationRequest& AddAccessControlList(Principal&& value) { m_accessControlListHasBeenSet = true; m_accessControlList.push_back(std::move(value)); return *this; } /** *

The updated 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 updated list of principal * lists that define the hierarchy for which documents users should have access * to.

*/ inline bool HierarchicalAccessControlListHasBeenSet() const { return m_hierarchicalAccessControlListHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

*/ inline UpdateAccessControlConfigurationRequest& AddHierarchicalAccessControlList(const HierarchicalPrincipal& value) { m_hierarchicalAccessControlListHasBeenSet = true; m_hierarchicalAccessControlList.push_back(value); return *this; } /** *

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

*/ inline UpdateAccessControlConfigurationRequest& AddHierarchicalAccessControlList(HierarchicalPrincipal&& value) { m_hierarchicalAccessControlListHasBeenSet = true; m_hierarchicalAccessControlList.push_back(std::move(value)); return *this; } private: Aws::String m_indexId; bool m_indexIdHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_accessControlList; bool m_accessControlListHasBeenSet = false; Aws::Vector m_hierarchicalAccessControlList; bool m_hierarchicalAccessControlListHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws