AWS SDK for C++

AWS SDK for C++ Version 1.11.800

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/ResourceScopes.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 GetResourcesStatisticsV2Request() = 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 "GetResourcesStatisticsV2"; }
31
32 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::Vector<ResourceGroupByRule>& GetGroupByRules() const { return m_groupByRules; }
40 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
41 template <typename GroupByRulesT = Aws::Vector<ResourceGroupByRule>>
42 void SetGroupByRules(GroupByRulesT&& value) {
43 m_groupByRulesHasBeenSet = true;
44 m_groupByRules = std::forward<GroupByRulesT>(value);
45 }
46 template <typename GroupByRulesT = Aws::Vector<ResourceGroupByRule>>
48 SetGroupByRules(std::forward<GroupByRulesT>(value));
49 return *this;
50 }
51 template <typename GroupByRulesT = ResourceGroupByRule>
53 m_groupByRulesHasBeenSet = true;
54 m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value));
55 return *this;
56 }
58
60
71 inline const ResourceScopes& GetScopes() const { return m_scopes; }
72 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
73 template <typename ScopesT = ResourceScopes>
74 void SetScopes(ScopesT&& value) {
75 m_scopesHasBeenSet = true;
76 m_scopes = std::forward<ScopesT>(value);
77 }
78 template <typename ScopesT = ResourceScopes>
80 SetScopes(std::forward<ScopesT>(value));
81 return *this;
82 }
84
86
89 inline SortOrder GetSortOrder() const { return m_sortOrder; }
90 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
91 inline void SetSortOrder(SortOrder value) {
92 m_sortOrderHasBeenSet = true;
93 m_sortOrder = value;
94 }
96 SetSortOrder(value);
97 return *this;
98 }
100
102
105 inline int GetMaxStatisticResults() const { return m_maxStatisticResults; }
106 inline bool MaxStatisticResultsHasBeenSet() const { return m_maxStatisticResultsHasBeenSet; }
107 inline void SetMaxStatisticResults(int value) {
108 m_maxStatisticResultsHasBeenSet = true;
109 m_maxStatisticResults = value;
110 }
113 return *this;
114 }
116 private:
118
119 ResourceScopes m_scopes;
120
121 SortOrder m_sortOrder{SortOrder::NOT_SET};
122
123 int m_maxStatisticResults{0};
124 bool m_groupByRulesHasBeenSet = false;
125 bool m_scopesHasBeenSet = false;
126 bool m_sortOrderHasBeenSet = false;
127 bool m_maxStatisticResultsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SecurityHub
132} // 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
GetResourcesStatisticsV2Request & WithScopes(ScopesT &&value)
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