AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetFindingsStatisticsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/FindingCriteria.h>
11#include <aws/guardduty/model/GroupByType.h>
12#include <aws/guardduty/model/OrderBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GuardDuty {
18namespace Model {
19
23 public:
24 AWS_GUARDDUTY_API GetFindingsStatisticsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetFindingsStatistics"; }
31
32 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 template <typename DetectorIdT = Aws::String>
45 void SetDetectorId(DetectorIdT&& value) {
46 m_detectorIdHasBeenSet = true;
47 m_detectorId = std::forward<DetectorIdT>(value);
48 }
49 template <typename DetectorIdT = Aws::String>
51 SetDetectorId(std::forward<DetectorIdT>(value));
52 return *this;
53 }
55
57
60 inline const FindingCriteria& GetFindingCriteria() const { return m_findingCriteria; }
61 inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; }
62 template <typename FindingCriteriaT = FindingCriteria>
63 void SetFindingCriteria(FindingCriteriaT&& value) {
64 m_findingCriteriaHasBeenSet = true;
65 m_findingCriteria = std::forward<FindingCriteriaT>(value);
66 }
67 template <typename FindingCriteriaT = FindingCriteria>
69 SetFindingCriteria(std::forward<FindingCriteriaT>(value));
70 return *this;
71 }
73
75
79 inline GroupByType GetGroupBy() const { return m_groupBy; }
80 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
81 inline void SetGroupBy(GroupByType value) {
82 m_groupByHasBeenSet = true;
83 m_groupBy = value;
84 }
86 SetGroupBy(value);
87 return *this;
88 }
90
92
97 inline OrderBy GetOrderBy() const { return m_orderBy; }
98 inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; }
99 inline void SetOrderBy(OrderBy value) {
100 m_orderByHasBeenSet = true;
101 m_orderBy = value;
102 }
104 SetOrderBy(value);
105 return *this;
106 }
108
110
115 inline int GetMaxResults() const { return m_maxResults; }
116 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
117 inline void SetMaxResults(int value) {
118 m_maxResultsHasBeenSet = true;
119 m_maxResults = value;
120 }
122 SetMaxResults(value);
123 return *this;
124 }
126 private:
127 Aws::String m_detectorId;
128
129 FindingCriteria m_findingCriteria;
130
132
133 OrderBy m_orderBy{OrderBy::NOT_SET};
134
135 int m_maxResults{0};
136 bool m_detectorIdHasBeenSet = false;
137 bool m_findingCriteriaHasBeenSet = false;
138 bool m_groupByHasBeenSet = false;
139 bool m_orderByHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace GuardDuty
145} // 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 & WithOrderBy(OrderBy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String