/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DescribePrincipalMappingResult { public: AWS_KENDRA_API DescribePrincipalMappingResult(); AWS_KENDRA_API DescribePrincipalMappingResult(const Aws::AmazonWebServiceResult& result); AWS_KENDRA_API DescribePrincipalMappingResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the index to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

*/ inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } /** *

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

*/ inline void SetDataSourceId(const char* value) { m_dataSourceId.assign(value); } /** *

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

*/ inline DescribePrincipalMappingResult& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} /** *

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

*/ inline DescribePrincipalMappingResult& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} /** *

Shows the identifier of the data source to see information on the processing * of PUT and DELETE actions for mapping users to their * groups.

*/ inline DescribePrincipalMappingResult& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} /** *

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

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

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

*/ inline void SetGroupId(const char* value) { m_groupId.assign(value); } /** *

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

*/ inline DescribePrincipalMappingResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

*/ inline DescribePrincipalMappingResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

Shows the identifier of the group to see information on the processing of * PUT and DELETE actions for mapping users to their * groups.

*/ inline DescribePrincipalMappingResult& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

*/ inline const Aws::Vector& GetGroupOrderingIdSummaries() const{ return m_groupOrderingIdSummaries; } /** *

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

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

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

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

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

*/ inline DescribePrincipalMappingResult& WithGroupOrderingIdSummaries(const Aws::Vector& value) { SetGroupOrderingIdSummaries(value); return *this;} /** *

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

*/ inline DescribePrincipalMappingResult& WithGroupOrderingIdSummaries(Aws::Vector&& value) { SetGroupOrderingIdSummaries(std::move(value)); return *this;} /** *

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

*/ inline DescribePrincipalMappingResult& AddGroupOrderingIdSummaries(const GroupOrderingIdSummary& value) { m_groupOrderingIdSummaries.push_back(value); return *this; } /** *

Shows the following information on the processing of PUT and * DELETE actions for mapping users to their groups:

  • *

    Status—the status can be either PROCESSING, * SUCCEEDED, DELETING, DELETED, or * FAILED.

  • Last updated—the last date-time an action * was updated.

  • Received—the last date-time an action was * received or submitted.

  • Ordering ID—the latest action that * should process and apply after other actions.

  • Failure * reason—the reason an action could not be processed.

*/ inline DescribePrincipalMappingResult& AddGroupOrderingIdSummaries(GroupOrderingIdSummary&& value) { m_groupOrderingIdSummaries.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 DescribePrincipalMappingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePrincipalMappingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePrincipalMappingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_indexId; Aws::String m_dataSourceId; Aws::String m_groupId; Aws::Vector m_groupOrderingIdSummaries; Aws::String m_requestId; }; } // namespace Model } // namespace kendra } // namespace Aws