AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetFindingStatisticsV2Request.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/GroupByRule.h>
11#include <aws/securityhub/model/SortOrder.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API GetFindingStatisticsV2Request() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetFindingStatisticsV2"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::Vector<GroupByRule>& GetGroupByRules() const { return m_groupByRules; }
40 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
41 template <typename GroupByRulesT = Aws::Vector<GroupByRule>>
42 void SetGroupByRules(GroupByRulesT&& value) {
43 m_groupByRulesHasBeenSet = true;
44 m_groupByRules = std::forward<GroupByRulesT>(value);
45 }
46 template <typename GroupByRulesT = Aws::Vector<GroupByRule>>
48 SetGroupByRules(std::forward<GroupByRulesT>(value));
49 return *this;
50 }
51 template <typename GroupByRulesT = GroupByRule>
53 m_groupByRulesHasBeenSet = true;
54 m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value));
55 return *this;
56 }
58
60
64 inline SortOrder GetSortOrder() const { return m_sortOrder; }
65 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
66 inline void SetSortOrder(SortOrder value) {
67 m_sortOrderHasBeenSet = true;
68 m_sortOrder = value;
69 }
71 SetSortOrder(value);
72 return *this;
73 }
75
77
80 inline int GetMaxStatisticResults() const { return m_maxStatisticResults; }
81 inline bool MaxStatisticResultsHasBeenSet() const { return m_maxStatisticResultsHasBeenSet; }
82 inline void SetMaxStatisticResults(int value) {
83 m_maxStatisticResultsHasBeenSet = true;
84 m_maxStatisticResults = value;
85 }
88 return *this;
89 }
91 private:
92 Aws::Vector<GroupByRule> m_groupByRules;
93
94 SortOrder m_sortOrder{SortOrder::NOT_SET};
95
96 int m_maxStatisticResults{0};
97 bool m_groupByRulesHasBeenSet = false;
98 bool m_sortOrderHasBeenSet = false;
99 bool m_maxStatisticResultsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace SecurityHub
104} // namespace Aws
AWS_SECURITYHUB_API GetFindingStatisticsV2Request()=default
GetFindingStatisticsV2Request & AddGroupByRules(GroupByRulesT &&value)
GetFindingStatisticsV2Request & WithMaxStatisticResults(int value)
GetFindingStatisticsV2Request & WithSortOrder(SortOrder value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetFindingStatisticsV2Request & WithGroupByRules(GroupByRulesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector