AWS SDK for C++

AWS SDK for C++ Version 1.11.813

Loading...
Searching...
No Matches
GetRecommendedPolicyV2Result.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/RecommendationError.h>
12#include <aws/securityhub/model/RecommendationStatus.h>
13#include <aws/securityhub/model/RecommendationStep.h>
14#include <aws/securityhub/model/RecommendationType.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace SecurityHub {
28namespace Model {
30 public:
31 AWS_SECURITYHUB_API GetRecommendedPolicyV2Result() = default;
34
36
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 template <typename NextTokenT = Aws::String>
41 void SetNextToken(NextTokenT&& value) {
42 m_nextTokenHasBeenSet = true;
43 m_nextToken = std::forward<NextTokenT>(value);
44 }
45 template <typename NextTokenT = Aws::String>
47 SetNextToken(std::forward<NextTokenT>(value));
48 return *this;
49 }
51
53
56 inline RecommendationType GetRecommendationType() const { return m_recommendationType; }
58 m_recommendationTypeHasBeenSet = true;
59 m_recommendationType = value;
60 }
63 return *this;
64 }
66
68
71 inline const Aws::Vector<RecommendationStep>& GetRecommendationSteps() const { return m_recommendationSteps; }
72 template <typename RecommendationStepsT = Aws::Vector<RecommendationStep>>
73 void SetRecommendationSteps(RecommendationStepsT&& value) {
74 m_recommendationStepsHasBeenSet = true;
75 m_recommendationSteps = std::forward<RecommendationStepsT>(value);
76 }
77 template <typename RecommendationStepsT = Aws::Vector<RecommendationStep>>
79 SetRecommendationSteps(std::forward<RecommendationStepsT>(value));
80 return *this;
81 }
82 template <typename RecommendationStepsT = RecommendationStep>
84 m_recommendationStepsHasBeenSet = true;
85 m_recommendationSteps.emplace_back(std::forward<RecommendationStepsT>(value));
86 return *this;
87 }
89
91
94 inline const RecommendationError& GetError() const { return m_error; }
95 template <typename ErrorT = RecommendationError>
96 void SetError(ErrorT&& value) {
97 m_errorHasBeenSet = true;
98 m_error = std::forward<ErrorT>(value);
99 }
100 template <typename ErrorT = RecommendationError>
102 SetError(std::forward<ErrorT>(value));
103 return *this;
104 }
106
108
111 inline RecommendationStatus GetStatus() const { return m_status; }
112 inline void SetStatus(RecommendationStatus value) {
113 m_statusHasBeenSet = true;
114 m_status = value;
115 }
117 SetStatus(value);
118 return *this;
119 }
121
123
126 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
127 template <typename ResourceArnT = Aws::String>
128 void SetResourceArn(ResourceArnT&& value) {
129 m_resourceArnHasBeenSet = true;
130 m_resourceArn = std::forward<ResourceArnT>(value);
131 }
132 template <typename ResourceArnT = Aws::String>
134 SetResourceArn(std::forward<ResourceArnT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_nextToken;
157
159
160 Aws::Vector<RecommendationStep> m_recommendationSteps;
161
162 RecommendationError m_error;
163
165
166 Aws::String m_resourceArn;
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_nextTokenHasBeenSet = false;
171 bool m_recommendationTypeHasBeenSet = false;
172 bool m_recommendationStepsHasBeenSet = false;
173 bool m_errorHasBeenSet = false;
174 bool m_statusHasBeenSet = false;
175 bool m_resourceArnHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace SecurityHub
181} // namespace Aws
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue