AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetScopeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
11#include <aws/network-security-manager/model/EntityStatus.h>
12#include <aws/network-security-manager/model/ScopeConfiguration.h>
13#include <aws/network-security-manager/model/SpecializedScopeType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace NetworkSecurityManager {
27namespace Model {
29 public:
30 AWS_NETWORKSECURITYMANAGER_API GetScopeResult() = default;
31 AWS_NETWORKSECURITYMANAGER_API GetScopeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33
35
38 inline const Aws::String& GetScopeId() const { return m_scopeId; }
39 template <typename ScopeIdT = Aws::String>
40 void SetScopeId(ScopeIdT&& value) {
41 m_scopeIdHasBeenSet = true;
42 m_scopeId = std::forward<ScopeIdT>(value);
43 }
44 template <typename ScopeIdT = Aws::String>
45 GetScopeResult& WithScopeId(ScopeIdT&& value) {
46 SetScopeId(std::forward<ScopeIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetScopeArn() const { return m_scopeArn; }
56 template <typename ScopeArnT = Aws::String>
57 void SetScopeArn(ScopeArnT&& value) {
58 m_scopeArnHasBeenSet = true;
59 m_scopeArn = std::forward<ScopeArnT>(value);
60 }
61 template <typename ScopeArnT = Aws::String>
62 GetScopeResult& WithScopeArn(ScopeArnT&& value) {
63 SetScopeArn(std::forward<ScopeArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetScopeName() const { return m_scopeName; }
73 template <typename ScopeNameT = Aws::String>
74 void SetScopeName(ScopeNameT&& value) {
75 m_scopeNameHasBeenSet = true;
76 m_scopeName = std::forward<ScopeNameT>(value);
77 }
78 template <typename ScopeNameT = Aws::String>
79 GetScopeResult& WithScopeName(ScopeNameT&& value) {
80 SetScopeName(std::forward<ScopeNameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetScopeDescription() const { return m_scopeDescription; }
90 template <typename ScopeDescriptionT = Aws::String>
91 void SetScopeDescription(ScopeDescriptionT&& value) {
92 m_scopeDescriptionHasBeenSet = true;
93 m_scopeDescription = std::forward<ScopeDescriptionT>(value);
94 }
95 template <typename ScopeDescriptionT = Aws::String>
96 GetScopeResult& WithScopeDescription(ScopeDescriptionT&& value) {
97 SetScopeDescription(std::forward<ScopeDescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const ScopeConfiguration& GetScopeConfiguration() const { return m_scopeConfiguration; }
107 template <typename ScopeConfigurationT = ScopeConfiguration>
108 void SetScopeConfiguration(ScopeConfigurationT&& value) {
109 m_scopeConfigurationHasBeenSet = true;
110 m_scopeConfiguration = std::forward<ScopeConfigurationT>(value);
111 }
112 template <typename ScopeConfigurationT = ScopeConfiguration>
113 GetScopeResult& WithScopeConfiguration(ScopeConfigurationT&& value) {
114 SetScopeConfiguration(std::forward<ScopeConfigurationT>(value));
115 return *this;
116 }
118
120
127 inline SpecializedScopeType GetSpecializedScopeType() const { return m_specializedScopeType; }
129 m_specializedScopeTypeHasBeenSet = true;
130 m_specializedScopeType = value;
131 }
134 return *this;
135 }
137
139
144 inline EntityStatus GetStatus() const { return m_status; }
145 inline void SetStatus(EntityStatus value) {
146 m_statusHasBeenSet = true;
147 m_status = value;
148 }
150 SetStatus(value);
151 return *this;
152 }
154
156
159 inline const Aws::String& GetVersion() const { return m_version; }
160 template <typename VersionT = Aws::String>
161 void SetVersion(VersionT&& value) {
162 m_versionHasBeenSet = true;
163 m_version = std::forward<VersionT>(value);
164 }
165 template <typename VersionT = Aws::String>
166 GetScopeResult& WithVersion(VersionT&& value) {
167 SetVersion(std::forward<VersionT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
179 template <typename UpdateTokenT = Aws::String>
180 void SetUpdateToken(UpdateTokenT&& value) {
181 m_updateTokenHasBeenSet = true;
182 m_updateToken = std::forward<UpdateTokenT>(value);
183 }
184 template <typename UpdateTokenT = Aws::String>
185 GetScopeResult& WithUpdateToken(UpdateTokenT&& value) {
186 SetUpdateToken(std::forward<UpdateTokenT>(value));
187 return *this;
188 }
190
192
195 inline bool GetIsSnapshot() const { return m_isSnapshot; }
196 inline void SetIsSnapshot(bool value) {
197 m_isSnapshotHasBeenSet = true;
198 m_isSnapshot = value;
199 }
200 inline GetScopeResult& WithIsSnapshot(bool value) {
201 SetIsSnapshot(value);
202 return *this;
203 }
205
207
210 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
211 inline void SetHasPublishedVersion(bool value) {
212 m_hasPublishedVersionHasBeenSet = true;
213 m_hasPublishedVersion = value;
214 }
217 return *this;
218 }
220
222
225 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
226 template <typename UpdatedAtT = Aws::Utils::DateTime>
227 void SetUpdatedAt(UpdatedAtT&& value) {
228 m_updatedAtHasBeenSet = true;
229 m_updatedAt = std::forward<UpdatedAtT>(value);
230 }
231 template <typename UpdatedAtT = Aws::Utils::DateTime>
232 GetScopeResult& WithUpdatedAt(UpdatedAtT&& value) {
233 SetUpdatedAt(std::forward<UpdatedAtT>(value));
234 return *this;
235 }
237
239
240 inline const Aws::String& GetRequestId() const { return m_requestId; }
241 template <typename RequestIdT = Aws::String>
242 void SetRequestId(RequestIdT&& value) {
243 m_requestIdHasBeenSet = true;
244 m_requestId = std::forward<RequestIdT>(value);
245 }
246 template <typename RequestIdT = Aws::String>
247 GetScopeResult& WithRequestId(RequestIdT&& value) {
248 SetRequestId(std::forward<RequestIdT>(value));
249 return *this;
250 }
252 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
253
254 private:
255 Aws::String m_scopeId;
256
257 Aws::String m_scopeArn;
258
259 Aws::String m_scopeName;
260
261 Aws::String m_scopeDescription;
262
263 ScopeConfiguration m_scopeConfiguration;
264
266
268
269 Aws::String m_version;
270
271 Aws::String m_updateToken;
272
273 bool m_isSnapshot{false};
274
275 bool m_hasPublishedVersion{false};
276
277 Aws::Utils::DateTime m_updatedAt{};
278
279 Aws::String m_requestId;
280 Aws::Http::HttpResponseCode m_HttpResponseCode;
281 bool m_scopeIdHasBeenSet = false;
282 bool m_scopeArnHasBeenSet = false;
283 bool m_scopeNameHasBeenSet = false;
284 bool m_scopeDescriptionHasBeenSet = false;
285 bool m_scopeConfigurationHasBeenSet = false;
286 bool m_specializedScopeTypeHasBeenSet = false;
287 bool m_statusHasBeenSet = false;
288 bool m_versionHasBeenSet = false;
289 bool m_updateTokenHasBeenSet = false;
290 bool m_isSnapshotHasBeenSet = false;
291 bool m_hasPublishedVersionHasBeenSet = false;
292 bool m_updatedAtHasBeenSet = false;
293 bool m_requestIdHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace NetworkSecurityManager
298} // namespace Aws
GetScopeResult & WithStatus(EntityStatus value)
GetScopeResult & WithUpdateToken(UpdateTokenT &&value)
GetScopeResult & WithScopeId(ScopeIdT &&value)
AWS_NETWORKSECURITYMANAGER_API GetScopeResult()=default
AWS_NETWORKSECURITYMANAGER_API GetScopeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScopeResult & WithUpdatedAt(UpdatedAtT &&value)
void SetScopeDescription(ScopeDescriptionT &&value)
GetScopeResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetSpecializedScopeType(SpecializedScopeType value)
GetScopeResult & WithScopeName(ScopeNameT &&value)
GetScopeResult & WithScopeDescription(ScopeDescriptionT &&value)
AWS_NETWORKSECURITYMANAGER_API GetScopeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScopeResult & WithScopeConfiguration(ScopeConfigurationT &&value)
const ScopeConfiguration & GetScopeConfiguration() const
GetScopeResult & WithScopeArn(ScopeArnT &&value)
void SetScopeConfiguration(ScopeConfigurationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetScopeResult & WithSpecializedScopeType(SpecializedScopeType value)
GetScopeResult & WithVersion(VersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue