/** * 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 MediaTailor { namespace Model { ClipRange::ClipRange() : m_endOffsetMillis(0), m_endOffsetMillisHasBeenSet(false) { } ClipRange::ClipRange(JsonView jsonValue) : m_endOffsetMillis(0), m_endOffsetMillisHasBeenSet(false) { *this = jsonValue; } ClipRange& ClipRange::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("EndOffsetMillis")) { m_endOffsetMillis = jsonValue.GetInt64("EndOffsetMillis"); m_endOffsetMillisHasBeenSet = true; } return *this; } JsonValue ClipRange::Jsonize() const { JsonValue payload; if(m_endOffsetMillisHasBeenSet) { payload.WithInt64("EndOffsetMillis", m_endOffsetMillis); } return payload; } } // namespace Model } // namespace MediaTailor } // namespace Aws