AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
GetSoftwareV2Request.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHubRequest.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/SoftwareFilters.h>
12#include <aws/securityhub/model/SoftwareScopes.h>
13#include <aws/securityhub/model/SortCriterion.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityHub {
19namespace Model {
20
24 public:
25 AWS_SECURITYHUB_API GetSoftwareV2Request() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetSoftwareV2"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
36
40 inline const SoftwareFilters& GetFilters() const { return m_filters; }
41 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
42 template <typename FiltersT = SoftwareFilters>
43 void SetFilters(FiltersT&& value) {
44 m_filtersHasBeenSet = true;
45 m_filters = std::forward<FiltersT>(value);
46 }
47 template <typename FiltersT = SoftwareFilters>
48 GetSoftwareV2Request& WithFilters(FiltersT&& value) {
49 SetFilters(std::forward<FiltersT>(value));
50 return *this;
51 }
53
55
66 inline const SoftwareScopes& GetScopes() const { return m_scopes; }
67 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
68 template <typename ScopesT = SoftwareScopes>
69 void SetScopes(ScopesT&& value) {
70 m_scopesHasBeenSet = true;
71 m_scopes = std::forward<ScopesT>(value);
72 }
73 template <typename ScopesT = SoftwareScopes>
74 GetSoftwareV2Request& WithScopes(ScopesT&& value) {
75 SetScopes(std::forward<ScopesT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<SortCriterion>& GetSortCriteria() const { return m_sortCriteria; }
86 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
87 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
88 void SetSortCriteria(SortCriteriaT&& value) {
89 m_sortCriteriaHasBeenSet = true;
90 m_sortCriteria = std::forward<SortCriteriaT>(value);
91 }
92 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
93 GetSoftwareV2Request& WithSortCriteria(SortCriteriaT&& value) {
94 SetSortCriteria(std::forward<SortCriteriaT>(value));
95 return *this;
96 }
97 template <typename SortCriteriaT = SortCriterion>
98 GetSoftwareV2Request& AddSortCriteria(SortCriteriaT&& value) {
99 m_sortCriteriaHasBeenSet = true;
100 m_sortCriteria.emplace_back(std::forward<SortCriteriaT>(value));
101 return *this;
102 }
104
106
114 inline const Aws::String& GetNextToken() const { return m_nextToken; }
115 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
116 template <typename NextTokenT = Aws::String>
117 void SetNextToken(NextTokenT&& value) {
118 m_nextTokenHasBeenSet = true;
119 m_nextToken = std::forward<NextTokenT>(value);
120 }
121 template <typename NextTokenT = Aws::String>
122 GetSoftwareV2Request& WithNextToken(NextTokenT&& value) {
123 SetNextToken(std::forward<NextTokenT>(value));
124 return *this;
125 }
127
129
133 inline int GetMaxResults() const { return m_maxResults; }
134 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
135 inline void SetMaxResults(int value) {
136 m_maxResultsHasBeenSet = true;
137 m_maxResults = value;
138 }
140 SetMaxResults(value);
141 return *this;
142 }
144 private:
145 SoftwareFilters m_filters;
146
147 SoftwareScopes m_scopes;
148
149 Aws::Vector<SortCriterion> m_sortCriteria;
150
151 Aws::String m_nextToken;
152
153 int m_maxResults{0};
154 bool m_filtersHasBeenSet = false;
155 bool m_scopesHasBeenSet = false;
156 bool m_sortCriteriaHasBeenSet = false;
157 bool m_nextTokenHasBeenSet = false;
158 bool m_maxResultsHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace SecurityHub
163} // namespace Aws
const Aws::Vector< SortCriterion > & GetSortCriteria() const
virtual const char * GetServiceRequestName() const override
GetSoftwareV2Request & WithMaxResults(int value)
GetSoftwareV2Request & WithSortCriteria(SortCriteriaT &&value)
GetSoftwareV2Request & AddSortCriteria(SortCriteriaT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetSoftwareV2Request & WithFilters(FiltersT &&value)
AWS_SECURITYHUB_API GetSoftwareV2Request()=default
GetSoftwareV2Request & WithScopes(ScopesT &&value)
GetSoftwareV2Request & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector