/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::MediaTailor::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateChannelRequest::UpdateChannelRequest() : m_channelNameHasBeenSet(false), m_fillerSlateHasBeenSet(false), m_outputsHasBeenSet(false) { } Aws::String UpdateChannelRequest::SerializePayload() const { JsonValue payload; if(m_fillerSlateHasBeenSet) { payload.WithObject("FillerSlate", m_fillerSlate.Jsonize()); } if(m_outputsHasBeenSet) { Aws::Utils::Array outputsJsonList(m_outputs.size()); for(unsigned outputsIndex = 0; outputsIndex < outputsJsonList.GetLength(); ++outputsIndex) { outputsJsonList[outputsIndex].AsObject(m_outputs[outputsIndex].Jsonize()); } payload.WithArray("Outputs", std::move(outputsJsonList)); } return payload.View().WriteReadable(); }