/** * 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 { ChannelGroupListConfiguration::ChannelGroupListConfiguration() : m_channelGroupNameHasBeenSet(false), m_arnHasBeenSet(false), m_createdAtHasBeenSet(false), m_modifiedAtHasBeenSet(false), m_descriptionHasBeenSet(false) { } ChannelGroupListConfiguration::ChannelGroupListConfiguration(JsonView jsonValue) : m_channelGroupNameHasBeenSet(false), m_arnHasBeenSet(false), m_createdAtHasBeenSet(false), m_modifiedAtHasBeenSet(false), m_descriptionHasBeenSet(false) { *this = jsonValue; } ChannelGroupListConfiguration& ChannelGroupListConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ChannelGroupName")) { m_channelGroupName = jsonValue.GetString("ChannelGroupName"); m_channelGroupNameHasBeenSet = true; } if(jsonValue.ValueExists("Arn")) { m_arn = jsonValue.GetString("Arn"); m_arnHasBeenSet = 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 ChannelGroupListConfiguration::Jsonize() const { JsonValue payload; if(m_channelGroupNameHasBeenSet) { payload.WithString("ChannelGroupName", m_channelGroupName); } if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } 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