/** * 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 mediapackagev2 { namespace Model { ChannelListConfiguration::ChannelListConfiguration() : m_arnHasBeenSet(false), m_channelNameHasBeenSet(false), m_channelGroupNameHasBeenSet(false), m_createdAtHasBeenSet(false), m_modifiedAtHasBeenSet(false), m_descriptionHasBeenSet(false) { } ChannelListConfiguration::ChannelListConfiguration(JsonView jsonValue) : m_arnHasBeenSet(false), m_channelNameHasBeenSet(false), m_channelGroupNameHasBeenSet(false), m_createdAtHasBeenSet(false), m_modifiedAtHasBeenSet(false), m_descriptionHasBeenSet(false) { *this = jsonValue; } ChannelListConfiguration& ChannelListConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Arn")) { m_arn = jsonValue.GetString("Arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("ChannelName")) { m_channelName = jsonValue.GetString("ChannelName"); m_channelNameHasBeenSet = true; } if(jsonValue.ValueExists("ChannelGroupName")) { m_channelGroupName = jsonValue.GetString("ChannelGroupName"); m_channelGroupNameHasBeenSet = true; } if(jsonValue.ValueExists("CreatedAt")) { m_createdAt = jsonValue.GetDouble("CreatedAt"); m_createdAtHasBeenSet = true; } if(jsonValue.ValueExists("ModifiedAt")) { m_modifiedAt = jsonValue.GetDouble("ModifiedAt"); m_modifiedAtHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } return *this; } JsonValue ChannelListConfiguration::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } if(m_channelNameHasBeenSet) { payload.WithString("ChannelName", m_channelName); } if(m_channelGroupNameHasBeenSet) { payload.WithString("ChannelGroupName", m_channelGroupName); } if(m_createdAtHasBeenSet) { payload.WithDouble("CreatedAt", m_createdAt.SecondsWithMSPrecision()); } if(m_modifiedAtHasBeenSet) { payload.WithDouble("ModifiedAt", m_modifiedAt.SecondsWithMSPrecision()); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } return payload; } } // namespace Model } // namespace mediapackagev2 } // namespace Aws