AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
PolicySummary.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/PolicyFirewallType.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 PolicySummary() = default;
33 AWS_NETWORKSECURITYMANAGER_API PolicySummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKSECURITYMANAGER_API PolicySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetPolicyId() const { return m_policyId; }
42 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
43 template <typename PolicyIdT = Aws::String>
44 void SetPolicyId(PolicyIdT&& value) {
45 m_policyIdHasBeenSet = true;
46 m_policyId = std::forward<PolicyIdT>(value);
47 }
48 template <typename PolicyIdT = Aws::String>
49 PolicySummary& WithPolicyId(PolicyIdT&& value) {
50 SetPolicyId(std::forward<PolicyIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
60 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
61 template <typename PolicyArnT = Aws::String>
62 void SetPolicyArn(PolicyArnT&& value) {
63 m_policyArnHasBeenSet = true;
64 m_policyArn = std::forward<PolicyArnT>(value);
65 }
66 template <typename PolicyArnT = Aws::String>
67 PolicySummary& WithPolicyArn(PolicyArnT&& value) {
68 SetPolicyArn(std::forward<PolicyArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetPolicyName() const { return m_policyName; }
78 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
79 template <typename PolicyNameT = Aws::String>
80 void SetPolicyName(PolicyNameT&& value) {
81 m_policyNameHasBeenSet = true;
82 m_policyName = std::forward<PolicyNameT>(value);
83 }
84 template <typename PolicyNameT = Aws::String>
85 PolicySummary& WithPolicyName(PolicyNameT&& value) {
86 SetPolicyName(std::forward<PolicyNameT>(value));
87 return *this;
88 }
90
92
96 inline EntityStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(EntityStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetVersion() const { return m_version; }
113 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
114 template <typename VersionT = Aws::String>
115 void SetVersion(VersionT&& value) {
116 m_versionHasBeenSet = true;
117 m_version = std::forward<VersionT>(value);
118 }
119 template <typename VersionT = Aws::String>
120 PolicySummary& WithVersion(VersionT&& value) {
121 SetVersion(std::forward<VersionT>(value));
122 return *this;
123 }
125
127
130 inline bool GetHasPublishedVersion() const { return m_hasPublishedVersion; }
131 inline bool HasPublishedVersionHasBeenSet() const { return m_hasPublishedVersionHasBeenSet; }
132 inline void SetHasPublishedVersion(bool value) {
133 m_hasPublishedVersionHasBeenSet = true;
134 m_hasPublishedVersion = value;
135 }
138 return *this;
139 }
141
143
146 inline PolicyFirewallType GetFirewallType() const { return m_firewallType; }
147 inline bool FirewallTypeHasBeenSet() const { return m_firewallTypeHasBeenSet; }
149 m_firewallTypeHasBeenSet = true;
150 m_firewallType = value;
151 }
153 SetFirewallType(value);
154 return *this;
155 }
157
159
162 inline int GetPriority() const { return m_priority; }
163 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
164 inline void SetPriority(int value) {
165 m_priorityHasBeenSet = true;
166 m_priority = value;
167 }
168 inline PolicySummary& WithPriority(int value) {
169 SetPriority(value);
170 return *this;
171 }
173
175
179 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
180 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
181 template <typename UpdatedAtT = Aws::Utils::DateTime>
182 void SetUpdatedAt(UpdatedAtT&& value) {
183 m_updatedAtHasBeenSet = true;
184 m_updatedAt = std::forward<UpdatedAtT>(value);
185 }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 PolicySummary& WithUpdatedAt(UpdatedAtT&& value) {
188 SetUpdatedAt(std::forward<UpdatedAtT>(value));
189 return *this;
190 }
192 private:
193 Aws::String m_policyId;
194
195 Aws::String m_policyArn;
196
197 Aws::String m_policyName;
198
200
201 Aws::String m_version;
202
203 bool m_hasPublishedVersion{false};
204
206
207 int m_priority{0};
208
209 Aws::Utils::DateTime m_updatedAt{};
210 bool m_policyIdHasBeenSet = false;
211 bool m_policyArnHasBeenSet = false;
212 bool m_policyNameHasBeenSet = false;
213 bool m_statusHasBeenSet = false;
214 bool m_versionHasBeenSet = false;
215 bool m_hasPublishedVersionHasBeenSet = false;
216 bool m_firewallTypeHasBeenSet = false;
217 bool m_priorityHasBeenSet = false;
218 bool m_updatedAtHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace NetworkSecurityManager
223} // namespace Aws
PolicySummary & WithStatus(EntityStatus value)
void SetFirewallType(PolicyFirewallType value)
PolicySummary & WithFirewallType(PolicyFirewallType value)
PolicySummary & WithPolicyId(PolicyIdT &&value)
AWS_NETWORKSECURITYMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdatedAt() const
PolicySummary & WithVersion(VersionT &&value)
PolicySummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_NETWORKSECURITYMANAGER_API PolicySummary(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKSECURITYMANAGER_API PolicySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicySummary & WithHasPublishedVersion(bool value)
PolicySummary & WithPolicyName(PolicyNameT &&value)
PolicySummary & WithPolicyArn(PolicyArnT &&value)
AWS_NETWORKSECURITYMANAGER_API PolicySummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue