/** * 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 ConfigService { namespace Model { DeliveryChannelStatus::DeliveryChannelStatus() : m_nameHasBeenSet(false), m_configSnapshotDeliveryInfoHasBeenSet(false), m_configHistoryDeliveryInfoHasBeenSet(false), m_configStreamDeliveryInfoHasBeenSet(false) { } DeliveryChannelStatus::DeliveryChannelStatus(JsonView jsonValue) : m_nameHasBeenSet(false), m_configSnapshotDeliveryInfoHasBeenSet(false), m_configHistoryDeliveryInfoHasBeenSet(false), m_configStreamDeliveryInfoHasBeenSet(false) { *this = jsonValue; } DeliveryChannelStatus& DeliveryChannelStatus::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("configSnapshotDeliveryInfo")) { m_configSnapshotDeliveryInfo = jsonValue.GetObject("configSnapshotDeliveryInfo"); m_configSnapshotDeliveryInfoHasBeenSet = true; } if(jsonValue.ValueExists("configHistoryDeliveryInfo")) { m_configHistoryDeliveryInfo = jsonValue.GetObject("configHistoryDeliveryInfo"); m_configHistoryDeliveryInfoHasBeenSet = true; } if(jsonValue.ValueExists("configStreamDeliveryInfo")) { m_configStreamDeliveryInfo = jsonValue.GetObject("configStreamDeliveryInfo"); m_configStreamDeliveryInfoHasBeenSet = true; } return *this; } JsonValue DeliveryChannelStatus::Jsonize() const { JsonValue payload; if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_configSnapshotDeliveryInfoHasBeenSet) { payload.WithObject("configSnapshotDeliveryInfo", m_configSnapshotDeliveryInfo.Jsonize()); } if(m_configHistoryDeliveryInfoHasBeenSet) { payload.WithObject("configHistoryDeliveryInfo", m_configHistoryDeliveryInfo.Jsonize()); } if(m_configStreamDeliveryInfoHasBeenSet) { payload.WithObject("configStreamDeliveryInfo", m_configStreamDeliveryInfo.Jsonize()); } return payload; } } // namespace Model } // namespace ConfigService } // namespace Aws