AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
GetRemediationsV2Request.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/GuidanceFormat.h>
11#include <aws/securityhub/model/RemediationFilters.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityHub {
17namespace Model {
18
22 public:
23 AWS_SECURITYHUB_API GetRemediationsV2Request() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetRemediationsV2"; }
30
31 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetTargetUid() const { return m_targetUid; }
40 inline bool TargetUidHasBeenSet() const { return m_targetUidHasBeenSet; }
41 template <typename TargetUidT = Aws::String>
42 void SetTargetUid(TargetUidT&& value) {
43 m_targetUidHasBeenSet = true;
44 m_targetUid = std::forward<TargetUidT>(value);
45 }
46 template <typename TargetUidT = Aws::String>
48 SetTargetUid(std::forward<TargetUidT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetMetadataUid() const { return m_metadataUid; }
61 inline bool MetadataUidHasBeenSet() const { return m_metadataUidHasBeenSet; }
62 template <typename MetadataUidT = Aws::String>
63 void SetMetadataUid(MetadataUidT&& value) {
64 m_metadataUidHasBeenSet = true;
65 m_metadataUid = std::forward<MetadataUidT>(value);
66 }
67 template <typename MetadataUidT = Aws::String>
69 SetMetadataUid(std::forward<MetadataUidT>(value));
70 return *this;
71 }
73
75
80 inline const RemediationFilters& GetFilters() const { return m_filters; }
81 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
82 template <typename FiltersT = RemediationFilters>
83 void SetFilters(FiltersT&& value) {
84 m_filtersHasBeenSet = true;
85 m_filters = std::forward<FiltersT>(value);
86 }
87 template <typename FiltersT = RemediationFilters>
89 SetFilters(std::forward<FiltersT>(value));
90 return *this;
91 }
93
95
98 inline bool GetShowGuidance() const { return m_showGuidance; }
99 inline bool ShowGuidanceHasBeenSet() const { return m_showGuidanceHasBeenSet; }
100 inline void SetShowGuidance(bool value) {
101 m_showGuidanceHasBeenSet = true;
102 m_showGuidance = value;
103 }
105 SetShowGuidance(value);
106 return *this;
107 }
109
111
119 inline GuidanceFormat GetGuidanceFormat() const { return m_guidanceFormat; }
120 inline bool GuidanceFormatHasBeenSet() const { return m_guidanceFormatHasBeenSet; }
122 m_guidanceFormatHasBeenSet = true;
123 m_guidanceFormat = value;
124 }
126 SetGuidanceFormat(value);
127 return *this;
128 }
130
132
136 inline int GetMaxResults() const { return m_maxResults; }
137 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
138 inline void SetMaxResults(int value) {
139 m_maxResultsHasBeenSet = true;
140 m_maxResults = value;
141 }
143 SetMaxResults(value);
144 return *this;
145 }
147
149
155 inline const Aws::String& GetNextToken() const { return m_nextToken; }
156 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
157 template <typename NextTokenT = Aws::String>
158 void SetNextToken(NextTokenT&& value) {
159 m_nextTokenHasBeenSet = true;
160 m_nextToken = std::forward<NextTokenT>(value);
161 }
162 template <typename NextTokenT = Aws::String>
164 SetNextToken(std::forward<NextTokenT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_targetUid;
170
171 Aws::String m_metadataUid;
172
173 RemediationFilters m_filters;
174
175 bool m_showGuidance{false};
176
177 GuidanceFormat m_guidanceFormat{GuidanceFormat::NOT_SET};
178
179 int m_maxResults{0};
180
181 Aws::String m_nextToken;
182 bool m_targetUidHasBeenSet = false;
183 bool m_metadataUidHasBeenSet = false;
184 bool m_filtersHasBeenSet = false;
185 bool m_showGuidanceHasBeenSet = false;
186 bool m_guidanceFormatHasBeenSet = false;
187 bool m_maxResultsHasBeenSet = false;
188 bool m_nextTokenHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace SecurityHub
193} // namespace Aws
GetRemediationsV2Request & WithNextToken(NextTokenT &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
GetRemediationsV2Request & WithMetadataUid(MetadataUidT &&value)
GetRemediationsV2Request & WithFilters(FiltersT &&value)
GetRemediationsV2Request & WithGuidanceFormat(GuidanceFormat value)
GetRemediationsV2Request & WithShowGuidance(bool value)
virtual const char * GetServiceRequestName() const override
AWS_SECURITYHUB_API GetRemediationsV2Request()=default
GetRemediationsV2Request & WithTargetUid(TargetUidT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String