AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetResourcesStatisticsV2Request.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/ResourceGroupByRule.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 GetResourcesStatisticsV2Request() = 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 "GetResourcesStatisticsV2"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::Vector<ResourceGroupByRule>& GetGroupByRules() const { return m_groupByRules; }
39 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
40 template <typename GroupByRulesT = Aws::Vector<ResourceGroupByRule>>
41 void SetGroupByRules(GroupByRulesT&& value) {
42 m_groupByRulesHasBeenSet = true;
43 m_groupByRules = std::forward<GroupByRulesT>(value);
44 }
45 template <typename GroupByRulesT = Aws::Vector<ResourceGroupByRule>>
47 SetGroupByRules(std::forward<GroupByRulesT>(value));
48 return *this;
49 }
50 template <typename GroupByRulesT = ResourceGroupByRule>
52 m_groupByRulesHasBeenSet = true;
53 m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value));
54 return *this;
55 }
57
59
62 inline SortOrder GetSortOrder() const { return m_sortOrder; }
63 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
64 inline void SetSortOrder(SortOrder value) {
65 m_sortOrderHasBeenSet = true;
66 m_sortOrder = value;
67 }
69 SetSortOrder(value);
70 return *this;
71 }
73
75
78 inline int GetMaxStatisticResults() const { return m_maxStatisticResults; }
79 inline bool MaxStatisticResultsHasBeenSet() const { return m_maxStatisticResultsHasBeenSet; }
80 inline void SetMaxStatisticResults(int value) {
81 m_maxStatisticResultsHasBeenSet = true;
82 m_maxStatisticResults = value;
83 }
86 return *this;
87 }
89 private:
91
92 SortOrder m_sortOrder{SortOrder::NOT_SET};
93
94 int m_maxStatisticResults{0};
95 bool m_groupByRulesHasBeenSet = false;
96 bool m_sortOrderHasBeenSet = false;
97 bool m_maxStatisticResultsHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SecurityHub
102} // namespace Aws
GetResourcesStatisticsV2Request & WithMaxStatisticResults(int value)
GetResourcesStatisticsV2Request & WithSortOrder(SortOrder value)
GetResourcesStatisticsV2Request & WithGroupByRules(GroupByRulesT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetResourcesStatisticsV2Request & AddGroupByRules(GroupByRulesT &&value)
AWS_SECURITYHUB_API GetResourcesStatisticsV2Request()=default
const Aws::Vector< ResourceGroupByRule > & GetGroupByRules() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector