/** * 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 SecurityHub { namespace Model { AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails::AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails() : m_scanEc2InstanceWithFindingsHasBeenSet(false), m_serviceRoleHasBeenSet(false) { } AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails::AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails(JsonView jsonValue) : m_scanEc2InstanceWithFindingsHasBeenSet(false), m_serviceRoleHasBeenSet(false) { *this = jsonValue; } AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails& AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ScanEc2InstanceWithFindings")) { m_scanEc2InstanceWithFindings = jsonValue.GetObject("ScanEc2InstanceWithFindings"); m_scanEc2InstanceWithFindingsHasBeenSet = true; } if(jsonValue.ValueExists("ServiceRole")) { m_serviceRole = jsonValue.GetString("ServiceRole"); m_serviceRoleHasBeenSet = true; } return *this; } JsonValue AwsGuardDutyDetectorDataSourcesMalwareProtectionDetails::Jsonize() const { JsonValue payload; if(m_scanEc2InstanceWithFindingsHasBeenSet) { payload.WithObject("ScanEc2InstanceWithFindings", m_scanEc2InstanceWithFindings.Jsonize()); } if(m_serviceRoleHasBeenSet) { payload.WithString("ServiceRole", m_serviceRole); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws