/** * 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; CreateAssetRequest::CreateAssetRequest() : m_idHasBeenSet(false), m_packagingGroupIdHasBeenSet(false), m_resourceIdHasBeenSet(false), m_sourceArnHasBeenSet(false), m_sourceRoleArnHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateAssetRequest::SerializePayload() const { JsonValue payload; if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_packagingGroupIdHasBeenSet) { payload.WithString("packagingGroupId", m_packagingGroupId); } if(m_resourceIdHasBeenSet) { payload.WithString("resourceId", m_resourceId); } if(m_sourceArnHasBeenSet) { payload.WithString("sourceArn", m_sourceArn); } if(m_sourceRoleArnHasBeenSet) { payload.WithString("sourceRoleArn", m_sourceRoleArn); } 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(); }