/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::kendra::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribePrincipalMappingRequest::DescribePrincipalMappingRequest() : m_indexIdHasBeenSet(false), m_dataSourceIdHasBeenSet(false), m_groupIdHasBeenSet(false) { } Aws::String DescribePrincipalMappingRequest::SerializePayload() const { JsonValue payload; if(m_indexIdHasBeenSet) { payload.WithString("IndexId", m_indexId); } if(m_dataSourceIdHasBeenSet) { payload.WithString("DataSourceId", m_dataSourceId); } if(m_groupIdHasBeenSet) { payload.WithString("GroupId", m_groupId); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DescribePrincipalMappingRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSKendraFrontendService.DescribePrincipalMapping")); return headers; }