/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::AppStream::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribeImagePermissionsRequest::DescribeImagePermissionsRequest() : m_nameHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_sharedAwsAccountIdsHasBeenSet(false), m_nextTokenHasBeenSet(false) { } Aws::String DescribeImagePermissionsRequest::SerializePayload() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } if(m_sharedAwsAccountIdsHasBeenSet) { Aws::Utils::Array sharedAwsAccountIdsJsonList(m_sharedAwsAccountIds.size()); for(unsigned sharedAwsAccountIdsIndex = 0; sharedAwsAccountIdsIndex < sharedAwsAccountIdsJsonList.GetLength(); ++sharedAwsAccountIdsIndex) { sharedAwsAccountIdsJsonList[sharedAwsAccountIdsIndex].AsString(m_sharedAwsAccountIds[sharedAwsAccountIdsIndex]); } payload.WithArray("SharedAwsAccountIds", std::move(sharedAwsAccountIdsJsonList)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DescribeImagePermissionsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "PhotonAdminProxyService.DescribeImagePermissions")); return headers; }