AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetFindingStatisticsV2Request.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/SortOrder.h>
11#include <aws/securityhub/model/GroupByRule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYHUB_API GetFindingStatisticsV2Request() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetFindingStatisticsV2"; }
33
34 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::Vector<GroupByRule>& GetGroupByRules() const { return m_groupByRules; }
44 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
45 template<typename GroupByRulesT = Aws::Vector<GroupByRule>>
46 void SetGroupByRules(GroupByRulesT&& value) { m_groupByRulesHasBeenSet = true; m_groupByRules = std::forward<GroupByRulesT>(value); }
47 template<typename GroupByRulesT = Aws::Vector<GroupByRule>>
48 GetFindingStatisticsV2Request& WithGroupByRules(GroupByRulesT&& value) { SetGroupByRules(std::forward<GroupByRulesT>(value)); return *this;}
49 template<typename GroupByRulesT = GroupByRule>
50 GetFindingStatisticsV2Request& AddGroupByRules(GroupByRulesT&& value) { m_groupByRulesHasBeenSet = true; m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value)); return *this; }
52
54
58 inline SortOrder GetSortOrder() const { return m_sortOrder; }
59 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
60 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
61 inline GetFindingStatisticsV2Request& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
63
65
68 inline int GetMaxStatisticResults() const { return m_maxStatisticResults; }
69 inline bool MaxStatisticResultsHasBeenSet() const { return m_maxStatisticResultsHasBeenSet; }
70 inline void SetMaxStatisticResults(int value) { m_maxStatisticResultsHasBeenSet = true; m_maxStatisticResults = value; }
73 private:
74
75 Aws::Vector<GroupByRule> m_groupByRules;
76 bool m_groupByRulesHasBeenSet = false;
77
78 SortOrder m_sortOrder{SortOrder::NOT_SET};
79 bool m_sortOrderHasBeenSet = false;
80
81 int m_maxStatisticResults{0};
82 bool m_maxStatisticResultsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace SecurityHub
87} // 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