/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace MediaLive { namespace Model { BatchScheduleActionDeleteResult::BatchScheduleActionDeleteResult() : m_scheduleActionsHasBeenSet(false) { } BatchScheduleActionDeleteResult::BatchScheduleActionDeleteResult(JsonView jsonValue) : m_scheduleActionsHasBeenSet(false) { *this = jsonValue; } BatchScheduleActionDeleteResult& BatchScheduleActionDeleteResult::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("scheduleActions")) { Aws::Utils::Array scheduleActionsJsonList = jsonValue.GetArray("scheduleActions"); for(unsigned scheduleActionsIndex = 0; scheduleActionsIndex < scheduleActionsJsonList.GetLength(); ++scheduleActionsIndex) { m_scheduleActions.push_back(scheduleActionsJsonList[scheduleActionsIndex].AsObject()); } m_scheduleActionsHasBeenSet = true; } return *this; } JsonValue BatchScheduleActionDeleteResult::Jsonize() const { JsonValue payload; if(m_scheduleActionsHasBeenSet) { Aws::Utils::Array scheduleActionsJsonList(m_scheduleActions.size()); for(unsigned scheduleActionsIndex = 0; scheduleActionsIndex < scheduleActionsJsonList.GetLength(); ++scheduleActionsIndex) { scheduleActionsJsonList[scheduleActionsIndex].AsObject(m_scheduleActions[scheduleActionsIndex].Jsonize()); } payload.WithArray("scheduleActions", std::move(scheduleActionsJsonList)); } return payload; } } // namespace Model } // namespace MediaLive } // namespace Aws