/** * 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 CodeGuruSecurity { namespace Model { ScanNameWithFindingNum::ScanNameWithFindingNum() : m_findingNumber(0), m_findingNumberHasBeenSet(false), m_scanNameHasBeenSet(false) { } ScanNameWithFindingNum::ScanNameWithFindingNum(JsonView jsonValue) : m_findingNumber(0), m_findingNumberHasBeenSet(false), m_scanNameHasBeenSet(false) { *this = jsonValue; } ScanNameWithFindingNum& ScanNameWithFindingNum::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("findingNumber")) { m_findingNumber = jsonValue.GetInteger("findingNumber"); m_findingNumberHasBeenSet = true; } if(jsonValue.ValueExists("scanName")) { m_scanName = jsonValue.GetString("scanName"); m_scanNameHasBeenSet = true; } return *this; } JsonValue ScanNameWithFindingNum::Jsonize() const { JsonValue payload; if(m_findingNumberHasBeenSet) { payload.WithInteger("findingNumber", m_findingNumber); } if(m_scanNameHasBeenSet) { payload.WithString("scanName", m_scanName); } return payload; } } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws