AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateScopeResult.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 CreateScopeResult() = default;
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 CreateScopeResult& 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 CreateScopeResult& 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 CreateScopeResult& 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 CreateScopeResult& 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 CreateScopeResult& 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 }
137
139
143 inline EntityStatus GetStatus() const { return m_status; }
144 inline void SetStatus(EntityStatus value) {
145 m_statusHasBeenSet = true;
146 m_status = value;
147 }
149 SetStatus(value);
150 return *this;
151 }
153
155
158 inline const Aws::String& GetVersion() const { return m_version; }
159 template <typename VersionT = Aws::String>
160 void SetVersion(VersionT&& value) {
161 m_versionHasBeenSet = true;
162 m_version = std::forward<VersionT>(value);
163 }
164 template <typename VersionT = Aws::String>
165 CreateScopeResult& WithVersion(VersionT&& value) {
166 SetVersion(std::forward<VersionT>(value));
167 return *this;
168 }
170
172
177 inline const Aws::String& GetUpdateToken() const { return m_updateToken; }
178 template <typename UpdateTokenT = Aws::String>
179 void SetUpdateToken(UpdateTokenT&& value) {
180 m_updateTokenHasBeenSet = true;
181 m_updateToken = std::forward<UpdateTokenT>(value);
182 }
183 template <typename UpdateTokenT = Aws::String>
184 CreateScopeResult& WithUpdateToken(UpdateTokenT&& value) {
185 SetUpdateToken(std::forward<UpdateTokenT>(value));
186 return *this;
187 }
189
191
194 inline bool GetIsSnapshot() const { return m_isSnapshot; }
195 inline void SetIsSnapshot(bool value) {
196 m_isSnapshotHasBeenSet = true;
197 m_isSnapshot = value;
198 }
199 inline CreateScopeResult& WithIsSnapshot(bool value) {
200 SetIsSnapshot(value);
201 return *this;
202 }
204
206
209 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
210 inline void SetHasPublishedVersion(bool value) {
211 m_hasPublishedVersionHasBeenSet = true;
212 m_hasPublishedVersion = value;
213 }
216 return *this;
217 }
219
221
224 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
225 template <typename UpdatedAtT = Aws::Utils::DateTime>
226 void SetUpdatedAt(UpdatedAtT&& value) {
227 m_updatedAtHasBeenSet = true;
228 m_updatedAt = std::forward<UpdatedAtT>(value);
229 }
230 template <typename UpdatedAtT = Aws::Utils::DateTime>
231 CreateScopeResult& WithUpdatedAt(UpdatedAtT&& value) {
232 SetUpdatedAt(std::forward<UpdatedAtT>(value));
233 return *this;
234 }
236
238
239 inline const Aws::String& GetRequestId() const { return m_requestId; }
240 template <typename RequestIdT = Aws::String>
241 void SetRequestId(RequestIdT&& value) {
242 m_requestIdHasBeenSet = true;
243 m_requestId = std::forward<RequestIdT>(value);
244 }
245 template <typename RequestIdT = Aws::String>
246 CreateScopeResult& WithRequestId(RequestIdT&& value) {
247 SetRequestId(std::forward<RequestIdT>(value));
248 return *this;
249 }
251 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
252
253 private:
254 Aws::String m_scopeId;
255
256 Aws::String m_scopeArn;
257
258 Aws::String m_scopeName;
259
260 Aws::String m_scopeDescription;
261
262 ScopeConfiguration m_scopeConfiguration;
263
265
267
268 Aws::String m_version;
269
270 Aws::String m_updateToken;
271
272 bool m_isSnapshot{false};
273
274 bool m_hasPublishedVersion{false};
275
276 Aws::Utils::DateTime m_updatedAt{};
277
278 Aws::String m_requestId;
279 Aws::Http::HttpResponseCode m_HttpResponseCode;
280 bool m_scopeIdHasBeenSet = false;
281 bool m_scopeArnHasBeenSet = false;
282 bool m_scopeNameHasBeenSet = false;
283 bool m_scopeDescriptionHasBeenSet = false;
284 bool m_scopeConfigurationHasBeenSet = false;
285 bool m_specializedScopeTypeHasBeenSet = false;
286 bool m_statusHasBeenSet = false;
287 bool m_versionHasBeenSet = false;
288 bool m_updateTokenHasBeenSet = false;
289 bool m_isSnapshotHasBeenSet = false;
290 bool m_hasPublishedVersionHasBeenSet = false;
291 bool m_updatedAtHasBeenSet = false;
292 bool m_requestIdHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace NetworkSecurityManager
297} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_NETWORKSECURITYMANAGER_API CreateScopeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const ScopeConfiguration & GetScopeConfiguration() const
void SetScopeConfiguration(ScopeConfigurationT &&value)
AWS_NETWORKSECURITYMANAGER_API CreateScopeResult()=default
CreateScopeResult & WithScopeArn(ScopeArnT &&value)
CreateScopeResult & WithUpdateToken(UpdateTokenT &&value)
CreateScopeResult & WithScopeName(ScopeNameT &&value)
CreateScopeResult & WithVersion(VersionT &&value)
CreateScopeResult & WithStatus(EntityStatus value)
AWS_NETWORKSECURITYMANAGER_API CreateScopeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateScopeResult & WithScopeId(ScopeIdT &&value)
CreateScopeResult & WithRequestId(RequestIdT &&value)
CreateScopeResult & WithScopeDescription(ScopeDescriptionT &&value)
CreateScopeResult & WithScopeConfiguration(ScopeConfigurationT &&value)
CreateScopeResult & WithUpdatedAt(UpdatedAtT &&value)
CreateScopeResult & WithSpecializedScopeType(SpecializedScopeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue