/** * 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 { NielsenNaesIiNw::NielsenNaesIiNw() : m_checkDigitStringHasBeenSet(false), m_sid(0.0), m_sidHasBeenSet(false), m_timezone(NielsenWatermarkTimezones::NOT_SET), m_timezoneHasBeenSet(false) { } NielsenNaesIiNw::NielsenNaesIiNw(JsonView jsonValue) : m_checkDigitStringHasBeenSet(false), m_sid(0.0), m_sidHasBeenSet(false), m_timezone(NielsenWatermarkTimezones::NOT_SET), m_timezoneHasBeenSet(false) { *this = jsonValue; } NielsenNaesIiNw& NielsenNaesIiNw::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("checkDigitString")) { m_checkDigitString = jsonValue.GetString("checkDigitString"); m_checkDigitStringHasBeenSet = true; } if(jsonValue.ValueExists("sid")) { m_sid = jsonValue.GetDouble("sid"); m_sidHasBeenSet = true; } if(jsonValue.ValueExists("timezone")) { m_timezone = NielsenWatermarkTimezonesMapper::GetNielsenWatermarkTimezonesForName(jsonValue.GetString("timezone")); m_timezoneHasBeenSet = true; } return *this; } JsonValue NielsenNaesIiNw::Jsonize() const { JsonValue payload; if(m_checkDigitStringHasBeenSet) { payload.WithString("checkDigitString", m_checkDigitString); } if(m_sidHasBeenSet) { payload.WithDouble("sid", m_sid); } if(m_timezoneHasBeenSet) { payload.WithString("timezone", NielsenWatermarkTimezonesMapper::GetNameForNielsenWatermarkTimezones(m_timezone)); } return payload; } } // namespace Model } // namespace MediaLive } // namespace Aws