AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/ResourcesFilters.h>
12#include <aws/securityhub/model/SortCriterion.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityHub {
18namespace Model {
19
23 public:
24 AWS_SECURITYHUB_API GetResourcesV2Request() = 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 "GetResourcesV2"; }
31
32 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
33
35
38 inline const ResourcesFilters& GetFilters() const { return m_filters; }
39 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
40 template <typename FiltersT = ResourcesFilters>
41 void SetFilters(FiltersT&& value) {
42 m_filtersHasBeenSet = true;
43 m_filters = std::forward<FiltersT>(value);
44 }
45 template <typename FiltersT = ResourcesFilters>
47 SetFilters(std::forward<FiltersT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<SortCriterion>& GetSortCriteria() const { return m_sortCriteria; }
57 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
58 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
59 void SetSortCriteria(SortCriteriaT&& value) {
60 m_sortCriteriaHasBeenSet = true;
61 m_sortCriteria = std::forward<SortCriteriaT>(value);
62 }
63 template <typename SortCriteriaT = Aws::Vector<SortCriterion>>
64 GetResourcesV2Request& WithSortCriteria(SortCriteriaT&& value) {
65 SetSortCriteria(std::forward<SortCriteriaT>(value));
66 return *this;
67 }
68 template <typename SortCriteriaT = SortCriterion>
69 GetResourcesV2Request& AddSortCriteria(SortCriteriaT&& value) {
70 m_sortCriteriaHasBeenSet = true;
71 m_sortCriteria.emplace_back(std::forward<SortCriteriaT>(value));
72 return *this;
73 }
75
77
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
91 GetResourcesV2Request& WithNextToken(NextTokenT&& value) {
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
101 inline int GetMaxResults() const { return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) {
104 m_maxResultsHasBeenSet = true;
105 m_maxResults = value;
106 }
108 SetMaxResults(value);
109 return *this;
110 }
112 private:
113 ResourcesFilters m_filters;
114
115 Aws::Vector<SortCriterion> m_sortCriteria;
116
117 Aws::String m_nextToken;
118
119 int m_maxResults{0};
120 bool m_filtersHasBeenSet = false;
121 bool m_sortCriteriaHasBeenSet = false;
122 bool m_nextTokenHasBeenSet = false;
123 bool m_maxResultsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace SecurityHub
128} // namespace Aws
GetResourcesV2Request & WithSortCriteria(SortCriteriaT &&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