/** * 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 { FindingIdentifier::FindingIdentifier() : m_findingIdHasBeenSet(false), m_scanNameHasBeenSet(false) { } FindingIdentifier::FindingIdentifier(JsonView jsonValue) : m_findingIdHasBeenSet(false), m_scanNameHasBeenSet(false) { *this = jsonValue; } FindingIdentifier& FindingIdentifier::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("findingId")) { m_findingId = jsonValue.GetString("findingId"); m_findingIdHasBeenSet = true; } if(jsonValue.ValueExists("scanName")) { m_scanName = jsonValue.GetString("scanName"); m_scanNameHasBeenSet = true; } return *this; } JsonValue FindingIdentifier::Jsonize() const { JsonValue payload; if(m_findingIdHasBeenSet) { payload.WithString("findingId", m_findingId); } if(m_scanNameHasBeenSet) { payload.WithString("scanName", m_scanName); } return payload; } } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws