/** * 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 { AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails::AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails() : m_ebsVolumesHasBeenSet(false) { } AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails::AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails(JsonView jsonValue) : m_ebsVolumesHasBeenSet(false) { *this = jsonValue; } AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails& AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("EbsVolumes")) { m_ebsVolumes = jsonValue.GetObject("EbsVolumes"); m_ebsVolumesHasBeenSet = true; } return *this; } JsonValue AwsGuardDutyDetectorDataSourcesMalwareProtectionScanEc2InstanceWithFindingsDetails::Jsonize() const { JsonValue payload; if(m_ebsVolumesHasBeenSet) { payload.WithObject("EbsVolumes", m_ebsVolumes.Jsonize()); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws