AWS SDK for C++

AWS SDK for C++ Version 1.11.800

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/FindingScopes.h>
11#include <aws/securityhub/model/GroupByRule.h>
12#include <aws/securityhub/model/SortOrder.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityHub {
18namespace Model {
19
23 public:
24 AWS_SECURITYHUB_API GetFindingStatisticsV2Request() = 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 "GetFindingStatisticsV2"; }
31
32 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
33
35
40 inline const Aws::Vector<GroupByRule>& GetGroupByRules() const { return m_groupByRules; }
41 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
42 template <typename GroupByRulesT = Aws::Vector<GroupByRule>>
43 void SetGroupByRules(GroupByRulesT&& value) {
44 m_groupByRulesHasBeenSet = true;
45 m_groupByRules = std::forward<GroupByRulesT>(value);
46 }
47 template <typename GroupByRulesT = Aws::Vector<GroupByRule>>
49 SetGroupByRules(std::forward<GroupByRulesT>(value));
50 return *this;
51 }
52 template <typename GroupByRulesT = GroupByRule>
54 m_groupByRulesHasBeenSet = true;
55 m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value));
56 return *this;
57 }
59
61
72 inline const FindingScopes& GetScopes() const { return m_scopes; }
73 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
74 template <typename ScopesT = FindingScopes>
75 void SetScopes(ScopesT&& value) {
76 m_scopesHasBeenSet = true;
77 m_scopes = std::forward<ScopesT>(value);
78 }
79 template <typename ScopesT = FindingScopes>
81 SetScopes(std::forward<ScopesT>(value));
82 return *this;
83 }
85
87
91 inline SortOrder GetSortOrder() const { return m_sortOrder; }
92 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
93 inline void SetSortOrder(SortOrder value) {
94 m_sortOrderHasBeenSet = true;
95 m_sortOrder = value;
96 }
98 SetSortOrder(value);
99 return *this;
100 }
102
104
107 inline int GetMaxStatisticResults() const { return m_maxStatisticResults; }
108 inline bool MaxStatisticResultsHasBeenSet() const { return m_maxStatisticResultsHasBeenSet; }
109 inline void SetMaxStatisticResults(int value) {
110 m_maxStatisticResultsHasBeenSet = true;
111 m_maxStatisticResults = value;
112 }
115 return *this;
116 }
118 private:
119 Aws::Vector<GroupByRule> m_groupByRules;
120
121 FindingScopes m_scopes;
122
123 SortOrder m_sortOrder{SortOrder::NOT_SET};
124
125 int m_maxStatisticResults{0};
126 bool m_groupByRulesHasBeenSet = false;
127 bool m_scopesHasBeenSet = false;
128 bool m_sortOrderHasBeenSet = false;
129 bool m_maxStatisticResultsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace SecurityHub
134} // namespace Aws
AWS_SECURITYHUB_API GetFindingStatisticsV2Request()=default
GetFindingStatisticsV2Request & AddGroupByRules(GroupByRulesT &&value)
GetFindingStatisticsV2Request & WithScopes(ScopesT &&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