AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ScopeSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/network-security-manager/NetworkSecurityManager_EXPORTS.h>
10#include <aws/network-security-manager/model/EntityStatus.h>
11#include <aws/network-security-manager/model/SpecializedScopeType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkSecurityManager {
23namespace Model {
24
31 public:
32 AWS_NETWORKSECURITYMANAGER_API ScopeSummary() = default;
33 AWS_NETWORKSECURITYMANAGER_API ScopeSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API ScopeSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetScopeId() const { return m_scopeId; }
42 inline bool ScopeIdHasBeenSet() const { return m_scopeIdHasBeenSet; }
43 template <typename ScopeIdT = Aws::String>
44 void SetScopeId(ScopeIdT&& value) {
45 m_scopeIdHasBeenSet = true;
46 m_scopeId = std::forward<ScopeIdT>(value);
47 }
48 template <typename ScopeIdT = Aws::String>
49 ScopeSummary& WithScopeId(ScopeIdT&& value) {
50 SetScopeId(std::forward<ScopeIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetScopeArn() const { return m_scopeArn; }
60 inline bool ScopeArnHasBeenSet() const { return m_scopeArnHasBeenSet; }
61 template <typename ScopeArnT = Aws::String>
62 void SetScopeArn(ScopeArnT&& value) {
63 m_scopeArnHasBeenSet = true;
64 m_scopeArn = std::forward<ScopeArnT>(value);
65 }
66 template <typename ScopeArnT = Aws::String>
67 ScopeSummary& WithScopeArn(ScopeArnT&& value) {
68 SetScopeArn(std::forward<ScopeArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetScopeName() const { return m_scopeName; }
78 inline bool ScopeNameHasBeenSet() const { return m_scopeNameHasBeenSet; }
79 template <typename ScopeNameT = Aws::String>
80 void SetScopeName(ScopeNameT&& value) {
81 m_scopeNameHasBeenSet = true;
82 m_scopeName = std::forward<ScopeNameT>(value);
83 }
84 template <typename ScopeNameT = Aws::String>
85 ScopeSummary& WithScopeName(ScopeNameT&& value) {
86 SetScopeName(std::forward<ScopeNameT>(value));
87 return *this;
88 }
90
92
99 inline SpecializedScopeType GetSpecializedScopeType() const { return m_specializedScopeType; }
100 inline bool SpecializedScopeTypeHasBeenSet() const { return m_specializedScopeTypeHasBeenSet; }
102 m_specializedScopeTypeHasBeenSet = true;
103 m_specializedScopeType = value;
104 }
107 return *this;
108 }
110
112
117 inline EntityStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(EntityStatus value) {
120 m_statusHasBeenSet = true;
121 m_status = value;
122 }
124 SetStatus(value);
125 return *this;
126 }
128
130
133 inline const Aws::String& GetVersion() const { return m_version; }
134 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
135 template <typename VersionT = Aws::String>
136 void SetVersion(VersionT&& value) {
137 m_versionHasBeenSet = true;
138 m_version = std::forward<VersionT>(value);
139 }
140 template <typename VersionT = Aws::String>
141 ScopeSummary& WithVersion(VersionT&& value) {
142 SetVersion(std::forward<VersionT>(value));
143 return *this;
144 }
146
148
151 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
152 inline bool HasPublishedVersionHasBeenSet() const { return m_hasPublishedVersionHasBeenSet; }
153 inline void SetHasPublishedVersion(bool value) {
154 m_hasPublishedVersionHasBeenSet = true;
155 m_hasPublishedVersion = value;
156 }
159 return *this;
160 }
162
164
168 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
169 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
171 void SetUpdatedAt(UpdatedAtT&& value) {
172 m_updatedAtHasBeenSet = true;
173 m_updatedAt = std::forward<UpdatedAtT>(value);
174 }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 ScopeSummary& WithUpdatedAt(UpdatedAtT&& value) {
177 SetUpdatedAt(std::forward<UpdatedAtT>(value));
178 return *this;
179 }
181 private:
182 Aws::String m_scopeId;
183
184 Aws::String m_scopeArn;
185
186 Aws::String m_scopeName;
187
189
191
192 Aws::String m_version;
193
194 bool m_hasPublishedVersion{false};
195
196 Aws::Utils::DateTime m_updatedAt{};
197 bool m_scopeIdHasBeenSet = false;
198 bool m_scopeArnHasBeenSet = false;
199 bool m_scopeNameHasBeenSet = false;
200 bool m_specializedScopeTypeHasBeenSet = false;
201 bool m_statusHasBeenSet = false;
202 bool m_versionHasBeenSet = false;
203 bool m_hasPublishedVersionHasBeenSet = false;
204 bool m_updatedAtHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace NetworkSecurityManager
209} // namespace Aws
ScopeSummary & WithVersion(VersionT &&value)
SpecializedScopeType GetSpecializedScopeType() const
ScopeSummary & WithHasPublishedVersion(bool value)
void SetSpecializedScopeType(SpecializedScopeType value)
ScopeSummary & WithStatus(EntityStatus value)
ScopeSummary & WithScopeArn(ScopeArnT &&value)
AWS_NETWORKSECURITYMANAGER_API ScopeSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API ScopeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
ScopeSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ScopeSummary & WithScopeId(ScopeIdT &&value)
ScopeSummary & WithScopeName(ScopeNameT &&value)
AWS_NETWORKSECURITYMANAGER_API ScopeSummary()=default
ScopeSummary & WithSpecializedScopeType(SpecializedScopeType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue