AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetFindingsStatisticsRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/FindingCriteria.h>
11#include <aws/guardduty/model/GroupByType.h>
12#include <aws/guardduty/model/OrderBy.h>
13#include <utility>
14
15namespace Aws
16{
17namespace GuardDuty
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GUARDDUTY_API GetFindingsStatisticsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetFindingsStatistics"; }
34
35 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
47 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 template<typename DetectorIdT = Aws::String>
49 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
50 template<typename DetectorIdT = Aws::String>
51 GetFindingsStatisticsRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
58 inline const FindingCriteria& GetFindingCriteria() const { return m_findingCriteria; }
59 inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; }
60 template<typename FindingCriteriaT = FindingCriteria>
61 void SetFindingCriteria(FindingCriteriaT&& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = std::forward<FindingCriteriaT>(value); }
62 template<typename FindingCriteriaT = FindingCriteria>
63 GetFindingsStatisticsRequest& WithFindingCriteria(FindingCriteriaT&& value) { SetFindingCriteria(std::forward<FindingCriteriaT>(value)); return *this;}
65
67
71 inline GroupByType GetGroupBy() const { return m_groupBy; }
72 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
73 inline void SetGroupBy(GroupByType value) { m_groupByHasBeenSet = true; m_groupBy = value; }
74 inline GetFindingsStatisticsRequest& WithGroupBy(GroupByType value) { SetGroupBy(value); return *this;}
76
78
83 inline OrderBy GetOrderBy() const { return m_orderBy; }
84 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
85 inline void SetOrderBy(OrderBy value) { m_orderByHasBeenSet = true; m_orderBy = value; }
86 inline GetFindingsStatisticsRequest& WithOrderBy(OrderBy value) { SetOrderBy(value); return *this;}
88
90
95 inline int GetMaxResults() const { return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline GetFindingsStatisticsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100 private:
101
102 Aws::String m_detectorId;
103 bool m_detectorIdHasBeenSet = false;
104
105 FindingCriteria m_findingCriteria;
106 bool m_findingCriteriaHasBeenSet = false;
107
109 bool m_groupByHasBeenSet = false;
110
111 OrderBy m_orderBy{OrderBy::NOT_SET};
112 bool m_orderByHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace GuardDuty
120} // namespace Aws
GetFindingsStatisticsRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API GetFindingsStatisticsRequest()=default
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
GetFindingsStatisticsRequest & WithGroupBy(GroupByType value)
GetFindingsStatisticsRequest & WithFindingCriteria(FindingCriteriaT &&value)
GetFindingsStatisticsRequest & WithMaxResults(int value)
GetFindingsStatisticsRequest & WithOrderBy(OrderBy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String