/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GuardDuty { namespace Model { /** */ class UpdateMalwareScanSettingsRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API UpdateMalwareScanSettingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateMalwareScanSettings"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline const Aws::String& GetDetectorId() const{ return m_detectorId; } /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; } /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; } /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); } /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); } /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline UpdateMalwareScanSettingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;} /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline UpdateMalwareScanSettingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;} /** *

The unique ID of the detector that specifies the GuardDuty service where you * want to update scan settings.

*/ inline UpdateMalwareScanSettingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;} /** *

Represents the criteria to be used in the filter for selecting resources to * scan.

*/ inline const ScanResourceCriteria& GetScanResourceCriteria() const{ return m_scanResourceCriteria; } /** *

Represents the criteria to be used in the filter for selecting resources to * scan.

*/ inline bool ScanResourceCriteriaHasBeenSet() const { return m_scanResourceCriteriaHasBeenSet; } /** *

Represents the criteria to be used in the filter for selecting resources to * scan.

*/ inline void SetScanResourceCriteria(const ScanResourceCriteria& value) { m_scanResourceCriteriaHasBeenSet = true; m_scanResourceCriteria = value; } /** *

Represents the criteria to be used in the filter for selecting resources to * scan.

*/ inline void SetScanResourceCriteria(ScanResourceCriteria&& value) { m_scanResourceCriteriaHasBeenSet = true; m_scanResourceCriteria = std::move(value); } /** *

Represents the criteria to be used in the filter for selecting resources to * scan.

*/ inline UpdateMalwareScanSettingsRequest& WithScanResourceCriteria(const ScanResourceCriteria& value) { SetScanResourceCriteria(value); return *this;} /** *

Represents the criteria to be used in the filter for selecting resources to * scan.

*/ inline UpdateMalwareScanSettingsRequest& WithScanResourceCriteria(ScanResourceCriteria&& value) { SetScanResourceCriteria(std::move(value)); return *this;} /** *

An enum value representing possible snapshot preservation settings.

*/ inline const EbsSnapshotPreservation& GetEbsSnapshotPreservation() const{ return m_ebsSnapshotPreservation; } /** *

An enum value representing possible snapshot preservation settings.

*/ inline bool EbsSnapshotPreservationHasBeenSet() const { return m_ebsSnapshotPreservationHasBeenSet; } /** *

An enum value representing possible snapshot preservation settings.

*/ inline void SetEbsSnapshotPreservation(const EbsSnapshotPreservation& value) { m_ebsSnapshotPreservationHasBeenSet = true; m_ebsSnapshotPreservation = value; } /** *

An enum value representing possible snapshot preservation settings.

*/ inline void SetEbsSnapshotPreservation(EbsSnapshotPreservation&& value) { m_ebsSnapshotPreservationHasBeenSet = true; m_ebsSnapshotPreservation = std::move(value); } /** *

An enum value representing possible snapshot preservation settings.

*/ inline UpdateMalwareScanSettingsRequest& WithEbsSnapshotPreservation(const EbsSnapshotPreservation& value) { SetEbsSnapshotPreservation(value); return *this;} /** *

An enum value representing possible snapshot preservation settings.

*/ inline UpdateMalwareScanSettingsRequest& WithEbsSnapshotPreservation(EbsSnapshotPreservation&& value) { SetEbsSnapshotPreservation(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; ScanResourceCriteria m_scanResourceCriteria; bool m_scanResourceCriteriaHasBeenSet = false; EbsSnapshotPreservation m_ebsSnapshotPreservation; bool m_ebsSnapshotPreservationHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws