/** * 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; UpdateProgramRequest::UpdateProgramRequest() : m_adBreaksHasBeenSet(false), m_channelNameHasBeenSet(false), m_programNameHasBeenSet(false), m_scheduleConfigurationHasBeenSet(false) { } Aws::String UpdateProgramRequest::SerializePayload() const { JsonValue payload; if(m_adBreaksHasBeenSet) { Aws::Utils::Array adBreaksJsonList(m_adBreaks.size()); for(unsigned adBreaksIndex = 0; adBreaksIndex < adBreaksJsonList.GetLength(); ++adBreaksIndex) { adBreaksJsonList[adBreaksIndex].AsObject(m_adBreaks[adBreaksIndex].Jsonize()); } payload.WithArray("AdBreaks", std::move(adBreaksJsonList)); } if(m_scheduleConfigurationHasBeenSet) { payload.WithObject("ScheduleConfiguration", m_scheduleConfiguration.Jsonize()); } return payload.View().WriteReadable(); }