/** * 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 GetFindingsStatisticsRequest : public GuardDutyRequest { public: AWS_GUARDDUTY_API GetFindingsStatisticsRequest(); // 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 "GetFindingsStatistics"; } AWS_GUARDDUTY_API Aws::String SerializePayload() const override; /** *

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The ID of the detector that specifies the GuardDuty service whose findings' * statistics you want to retrieve.

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

The types of finding statistics to retrieve.

*/ inline const Aws::Vector& GetFindingStatisticTypes() const{ return m_findingStatisticTypes; } /** *

The types of finding statistics to retrieve.

*/ inline bool FindingStatisticTypesHasBeenSet() const { return m_findingStatisticTypesHasBeenSet; } /** *

The types of finding statistics to retrieve.

*/ inline void SetFindingStatisticTypes(const Aws::Vector& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes = value; } /** *

The types of finding statistics to retrieve.

*/ inline void SetFindingStatisticTypes(Aws::Vector&& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes = std::move(value); } /** *

The types of finding statistics to retrieve.

*/ inline GetFindingsStatisticsRequest& WithFindingStatisticTypes(const Aws::Vector& value) { SetFindingStatisticTypes(value); return *this;} /** *

The types of finding statistics to retrieve.

*/ inline GetFindingsStatisticsRequest& WithFindingStatisticTypes(Aws::Vector&& value) { SetFindingStatisticTypes(std::move(value)); return *this;} /** *

The types of finding statistics to retrieve.

*/ inline GetFindingsStatisticsRequest& AddFindingStatisticTypes(const FindingStatisticType& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes.push_back(value); return *this; } /** *

The types of finding statistics to retrieve.

*/ inline GetFindingsStatisticsRequest& AddFindingStatisticTypes(FindingStatisticType&& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes.push_back(std::move(value)); return *this; } /** *

Represents the criteria that is used for querying findings.

*/ inline const FindingCriteria& GetFindingCriteria() const{ return m_findingCriteria; } /** *

Represents the criteria that is used for querying findings.

*/ inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; } /** *

Represents the criteria that is used for querying findings.

*/ inline void SetFindingCriteria(const FindingCriteria& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = value; } /** *

Represents the criteria that is used for querying findings.

*/ inline void SetFindingCriteria(FindingCriteria&& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = std::move(value); } /** *

Represents the criteria that is used for querying findings.

*/ inline GetFindingsStatisticsRequest& WithFindingCriteria(const FindingCriteria& value) { SetFindingCriteria(value); return *this;} /** *

Represents the criteria that is used for querying findings.

*/ inline GetFindingsStatisticsRequest& WithFindingCriteria(FindingCriteria&& value) { SetFindingCriteria(std::move(value)); return *this;} private: Aws::String m_detectorId; bool m_detectorIdHasBeenSet = false; Aws::Vector m_findingStatisticTypes; bool m_findingStatisticTypesHasBeenSet = false; FindingCriteria m_findingCriteria; bool m_findingCriteriaHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws