/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ServiceCatalog::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DisassociatePrincipalFromPortfolioRequest::DisassociatePrincipalFromPortfolioRequest() : m_acceptLanguageHasBeenSet(false), m_portfolioIdHasBeenSet(false), m_principalARNHasBeenSet(false), m_principalType(PrincipalType::NOT_SET), m_principalTypeHasBeenSet(false) { } Aws::String DisassociatePrincipalFromPortfolioRequest::SerializePayload() const { JsonValue payload; if(m_acceptLanguageHasBeenSet) { payload.WithString("AcceptLanguage", m_acceptLanguage); } if(m_portfolioIdHasBeenSet) { payload.WithString("PortfolioId", m_portfolioId); } if(m_principalARNHasBeenSet) { payload.WithString("PrincipalARN", m_principalARN); } if(m_principalTypeHasBeenSet) { payload.WithString("PrincipalType", PrincipalTypeMapper::GetNameForPrincipalType(m_principalType)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DisassociatePrincipalFromPortfolioRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWS242ServiceCatalogService.DisassociatePrincipalFromPortfolio")); return headers; }