/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace GuardDuty { namespace Model { /** */ class UpdateDetectorRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API UpdateDetectorRequest(); // 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 "UpdateDetector"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

The unique ID of the detector to update.

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

Specifies whether the detector is enabled or not enabled.

*/ inline bool GetEnable() const{ return m_enable; } /** *

Specifies whether the detector is enabled or not enabled.

*/ inline bool EnableHasBeenSet() const { return m_enableHasBeenSet; } /** *

Specifies whether the detector is enabled or not enabled.

*/ inline void SetEnable(bool value) { m_enableHasBeenSet = true; m_enable = value; } /** *

Specifies whether the detector is enabled or not enabled.

*/ inline UpdateDetectorRequest& WithEnable(bool value) { SetEnable(value); return *this;} /** *

An enum value that specifies how frequently findings are exported, such as to * CloudWatch Events.

*/ inline const FindingPublishingFrequency& GetFindingPublishingFrequency() const{ return m_findingPublishingFrequency; } /** *

An enum value that specifies how frequently findings are exported, such as to * CloudWatch Events.

*/ inline bool FindingPublishingFrequencyHasBeenSet() const { return m_findingPublishingFrequencyHasBeenSet; } /** *

An enum value that specifies how frequently findings are exported, such as to * CloudWatch Events.

*/ inline void SetFindingPublishingFrequency(const FindingPublishingFrequency& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = value; } /** *

An enum value that specifies how frequently findings are exported, such as to * CloudWatch Events.

*/ inline void SetFindingPublishingFrequency(FindingPublishingFrequency&& value) { m_findingPublishingFrequencyHasBeenSet = true; m_findingPublishingFrequency = std::move(value); } /** *

An enum value that specifies how frequently findings are exported, such as to * CloudWatch Events.

*/ inline UpdateDetectorRequest& WithFindingPublishingFrequency(const FindingPublishingFrequency& value) { SetFindingPublishingFrequency(value); return *this;} /** *

An enum value that specifies how frequently findings are exported, such as to * CloudWatch Events.

*/ inline UpdateDetectorRequest& WithFindingPublishingFrequency(FindingPublishingFrequency&& value) { SetFindingPublishingFrequency(std::move(value)); return *this;} /** *

Provides the features that will be updated for the detector.

*/ inline const Aws::Vector& GetFeatures() const{ return m_features; } /** *

Provides the features that will be updated for the detector.

*/ inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; } /** *

Provides the features that will be updated for the detector.

*/ inline void SetFeatures(const Aws::Vector& value) { m_featuresHasBeenSet = true; m_features = value; } /** *

Provides the features that will be updated for the detector.

*/ inline void SetFeatures(Aws::Vector&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); } /** *

Provides the features that will be updated for the detector.

*/ inline UpdateDetectorRequest& WithFeatures(const Aws::Vector& value) { SetFeatures(value); return *this;} /** *

Provides the features that will be updated for the detector.

*/ inline UpdateDetectorRequest& WithFeatures(Aws::Vector&& value) { SetFeatures(std::move(value)); return *this;} /** *

Provides the features that will be updated for the detector.

*/ inline UpdateDetectorRequest& AddFeatures(const DetectorFeatureConfiguration& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; } /** *

Provides the features that will be updated for the detector.

*/ inline UpdateDetectorRequest& AddFeatures(DetectorFeatureConfiguration&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; } private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; bool m_enable; bool m_enableHasBeenSet = false; FindingPublishingFrequency m_findingPublishingFrequency; bool m_findingPublishingFrequencyHasBeenSet = false; Aws::Vector m_features; bool m_featuresHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws