/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::MediaPackageVod::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreatePackagingGroupRequest::CreatePackagingGroupRequest() : m_authorizationHasBeenSet(false), m_egressAccessLogsHasBeenSet(false), m_idHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreatePackagingGroupRequest::SerializePayload() const { JsonValue payload; if(m_authorizationHasBeenSet) { payload.WithObject("authorization", m_authorization.Jsonize()); } if(m_egressAccessLogsHasBeenSet) { payload.WithObject("egressAccessLogs", m_egressAccessLogs.Jsonize()); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("tags", std::move(tagsJsonMap)); } return payload.View().WriteReadable(); }