AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
GetSoftwareStatisticsV2Request.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/SoftwareGroupByRule.h>
11#include <aws/securityhub/model/SoftwareScopes.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 GetSoftwareStatisticsV2Request() = 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 "GetSoftwareStatisticsV2"; }
31
32 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::Vector<SoftwareGroupByRule>& GetGroupByRules() const { return m_groupByRules; }
40 inline bool GroupByRulesHasBeenSet() const { return m_groupByRulesHasBeenSet; }
41 template <typename GroupByRulesT = Aws::Vector<SoftwareGroupByRule>>
42 void SetGroupByRules(GroupByRulesT&& value) {
43 m_groupByRulesHasBeenSet = true;
44 m_groupByRules = std::forward<GroupByRulesT>(value);
45 }
46 template <typename GroupByRulesT = Aws::Vector<SoftwareGroupByRule>>
48 SetGroupByRules(std::forward<GroupByRulesT>(value));
49 return *this;
50 }
51 template <typename GroupByRulesT = SoftwareGroupByRule>
53 m_groupByRulesHasBeenSet = true;
54 m_groupByRules.emplace_back(std::forward<GroupByRulesT>(value));
55 return *this;
56 }
58
60
71 inline const SoftwareScopes& GetScopes() const { return m_scopes; }
72 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
73 template <typename ScopesT = SoftwareScopes>
74 void SetScopes(ScopesT&& value) {
75 m_scopesHasBeenSet = true;
76 m_scopes = std::forward<ScopesT>(value);
77 }
78 template <typename ScopesT = SoftwareScopes>
80 SetScopes(std::forward<ScopesT>(value));
81 return *this;
82 }
84
86
90 inline SortOrder GetSortOrder() const { return m_sortOrder; }
91 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
92 inline void SetSortOrder(SortOrder value) {
93 m_sortOrderHasBeenSet = true;
94 m_sortOrder = value;
95 }
97 SetSortOrder(value);
98 return *this;
99 }
101
103
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:
120
121 SoftwareScopes 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
GetSoftwareStatisticsV2Request & WithScopes(ScopesT &&value)
const Aws::Vector< SoftwareGroupByRule > & GetGroupByRules() const
GetSoftwareStatisticsV2Request & WithMaxStatisticResults(int value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetSoftwareStatisticsV2Request & WithGroupByRules(GroupByRulesT &&value)
AWS_SECURITYHUB_API GetSoftwareStatisticsV2Request()=default
GetSoftwareStatisticsV2Request & AddGroupByRules(GroupByRulesT &&value)
GetSoftwareStatisticsV2Request & WithSortOrder(SortOrder value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector