/** * 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; ListPortfolioAccessRequest::ListPortfolioAccessRequest() : m_acceptLanguageHasBeenSet(false), m_portfolioIdHasBeenSet(false), m_organizationParentIdHasBeenSet(false), m_pageTokenHasBeenSet(false), m_pageSize(0), m_pageSizeHasBeenSet(false) { } Aws::String ListPortfolioAccessRequest::SerializePayload() const { JsonValue payload; if(m_acceptLanguageHasBeenSet) { payload.WithString("AcceptLanguage", m_acceptLanguage); } if(m_portfolioIdHasBeenSet) { payload.WithString("PortfolioId", m_portfolioId); } if(m_organizationParentIdHasBeenSet) { payload.WithString("OrganizationParentId", m_organizationParentId); } if(m_pageTokenHasBeenSet) { payload.WithString("PageToken", m_pageToken); } if(m_pageSizeHasBeenSet) { payload.WithInteger("PageSize", m_pageSize); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListPortfolioAccessRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWS242ServiceCatalogService.ListPortfolioAccess")); return headers; }