AWS SDK for C++

AWS SDK for C++ Version 1.11.800

Loading...
Searching...
No Matches
GetResourcesV2Request.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/ResourceScopes.h>
12#include <aws/securityhub/model/ResourcesFilters.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 GetResourcesV2Request() = 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 "GetResourcesV2"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
36
39 inline const ResourcesFilters& GetFilters() const { return m_filters; }
40 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
41 template <typename FiltersT = ResourcesFilters>
42 void SetFilters(FiltersT&& value) {
43 m_filtersHasBeenSet = true;
44 m_filters = std::forward<FiltersT>(value);
45 }
46 template <typename FiltersT = ResourcesFilters>
48 SetFilters(std::forward<FiltersT>(value));
49 return *this;
50 }
52
54
64 inline const ResourceScopes& GetScopes() const { return m_scopes; }
65 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
66 template <typename ScopesT = ResourceScopes>
67 void SetScopes(ScopesT&& value) {
68 m_scopesHasBeenSet = true;
69 m_scopes = std::forward<ScopesT>(value);
70 }
71 template <typename ScopesT = ResourceScopes>
73 SetScopes(std::forward<ScopesT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<SortCriterion>& GetSortCriteria() const { return m_sortCriteria; }
83 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
84 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
85 void SetSortCriteria(SortCriteriaT&& value) {
86 m_sortCriteriaHasBeenSet = true;
87 m_sortCriteria = std::forward<SortCriteriaT>(value);
88 }
89 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
90 GetResourcesV2Request& WithSortCriteria(SortCriteriaT&& value) {
91 SetSortCriteria(std::forward<SortCriteriaT>(value));
92 return *this;
93 }
94 template <typename SortCriteriaT = SortCriterion>
95 GetResourcesV2Request& AddSortCriteria(SortCriteriaT&& value) {
96 m_sortCriteriaHasBeenSet = true;
97 m_sortCriteria.emplace_back(std::forward<SortCriteriaT>(value));
98 return *this;
99 }
101
103
109 inline const Aws::String& GetNextToken() const { return m_nextToken; }
110 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
111 template <typename NextTokenT = Aws::String>
112 void SetNextToken(NextTokenT&& value) {
113 m_nextTokenHasBeenSet = true;
114 m_nextToken = std::forward<NextTokenT>(value);
115 }
116 template <typename NextTokenT = Aws::String>
118 SetNextToken(std::forward<NextTokenT>(value));
119 return *this;
120 }
122
124
127 inline int GetMaxResults() const { return m_maxResults; }
128 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
129 inline void SetMaxResults(int value) {
130 m_maxResultsHasBeenSet = true;
131 m_maxResults = value;
132 }
134 SetMaxResults(value);
135 return *this;
136 }
138 private:
139 ResourcesFilters m_filters;
140
141 ResourceScopes m_scopes;
142
143 Aws::Vector<SortCriterion> m_sortCriteria;
144
145 Aws::String m_nextToken;
146
147 int m_maxResults{0};
148 bool m_filtersHasBeenSet = false;
149 bool m_scopesHasBeenSet = false;
150 bool m_sortCriteriaHasBeenSet = false;
151 bool m_nextTokenHasBeenSet = false;
152 bool m_maxResultsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace SecurityHub
157} // namespace Aws
GetResourcesV2Request & WithSortCriteria(SortCriteriaT &&value)
GetResourcesV2Request & WithScopes(ScopesT &&value)
const Aws::Vector< SortCriterion > & GetSortCriteria() const
AWS_SECURITYHUB_API GetResourcesV2Request()=default
GetResourcesV2Request & WithNextToken(NextTokenT &&value)
GetResourcesV2Request & WithFilters(FiltersT &&value)
GetResourcesV2Request & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetResourcesV2Request & AddSortCriteria(SortCriteriaT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector