/** * 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 MainframeModernization { namespace Model { GdgDetailAttributes::GdgDetailAttributes() : m_limit(0), m_limitHasBeenSet(false), m_rollDispositionHasBeenSet(false) { } GdgDetailAttributes::GdgDetailAttributes(JsonView jsonValue) : m_limit(0), m_limitHasBeenSet(false), m_rollDispositionHasBeenSet(false) { *this = jsonValue; } GdgDetailAttributes& GdgDetailAttributes::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("limit")) { m_limit = jsonValue.GetInteger("limit"); m_limitHasBeenSet = true; } if(jsonValue.ValueExists("rollDisposition")) { m_rollDisposition = jsonValue.GetString("rollDisposition"); m_rollDispositionHasBeenSet = true; } return *this; } JsonValue GdgDetailAttributes::Jsonize() const { JsonValue payload; if(m_limitHasBeenSet) { payload.WithInteger("limit", m_limit); } if(m_rollDispositionHasBeenSet) { payload.WithString("rollDisposition", m_rollDisposition); } return payload; } } // namespace Model } // namespace MainframeModernization } // namespace Aws