AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetResourcesStatisticsV2Request.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/ResourceGroupByRule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYHUB_API GetResourcesStatisticsV2Request() = 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 "GetResourcesStatisticsV2"; }
33
34 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::Vector<ResourceGroupByRule>& GetGroupByRules() const { return m_groupByRules; }
43 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
44 template<typename GroupByRulesT = Aws::Vector<ResourceGroupByRule>>
45 void SetGroupByRules(GroupByRulesT&& value) { m_groupByRulesHasBeenSet = true; m_groupByRules = std::forward<GroupByRulesT>(value); }
46 template<typename GroupByRulesT = Aws::Vector<ResourceGroupByRule>>
47 GetResourcesStatisticsV2Request& WithGroupByRules(GroupByRulesT&& value) { SetGroupByRules(std::forward<GroupByRulesT>(value)); return *this;}
48 template<typename GroupByRulesT = ResourceGroupByRule>
49 GetResourcesStatisticsV2Request& AddGroupByRules(GroupByRulesT&& value) { m_groupByRulesHasBeenSet = true; m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value)); return *this; }
51
53
56 inline SortOrder GetSortOrder() const { return m_sortOrder; }
57 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
58 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
61
63
66 inline int GetMaxStatisticResults() const { return m_maxStatisticResults; }
67 inline bool MaxStatisticResultsHasBeenSet() const { return m_maxStatisticResultsHasBeenSet; }
68 inline void SetMaxStatisticResults(int value) { m_maxStatisticResultsHasBeenSet = true; m_maxStatisticResults = value; }
71 private:
72
74 bool m_groupByRulesHasBeenSet = false;
75
76 SortOrder m_sortOrder{SortOrder::NOT_SET};
77 bool m_sortOrderHasBeenSet = false;
78
79 int m_maxStatisticResults{0};
80 bool m_maxStatisticResultsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace SecurityHub
85} // 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