AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
FirewallRuleGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
9#include <aws/route53resolver/model/FirewallRuleGroupStatus.h>
10#include <aws/route53resolver/model/ShareStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Route53Resolver {
22namespace Model {
23
33 public:
34 AWS_ROUTE53RESOLVER_API FirewallRuleGroup() = default;
35 AWS_ROUTE53RESOLVER_API FirewallRuleGroup(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53RESOLVER_API FirewallRuleGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 FirewallRuleGroup& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
69 FirewallRuleGroup& WithArn(ArnT&& value) {
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 FirewallRuleGroup& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline int GetRuleCount() const { return m_ruleCount; }
98 inline bool RuleCountHasBeenSet() const { return m_ruleCountHasBeenSet; }
99 inline void SetRuleCount(int value) {
100 m_ruleCountHasBeenSet = true;
101 m_ruleCount = value;
102 }
103 inline FirewallRuleGroup& WithRuleCount(int value) {
104 SetRuleCount(value);
105 return *this;
106 }
108
110
113 inline FirewallRuleGroupStatus GetStatus() const { return m_status; }
114 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
129 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
130 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
131 template <typename StatusMessageT = Aws::String>
132 void SetStatusMessage(StatusMessageT&& value) {
133 m_statusMessageHasBeenSet = true;
134 m_statusMessage = std::forward<StatusMessageT>(value);
135 }
136 template <typename StatusMessageT = Aws::String>
137 FirewallRuleGroup& WithStatusMessage(StatusMessageT&& value) {
138 SetStatusMessage(std::forward<StatusMessageT>(value));
139 return *this;
140 }
142
144
149 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
150 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
151 template <typename OwnerIdT = Aws::String>
152 void SetOwnerId(OwnerIdT&& value) {
153 m_ownerIdHasBeenSet = true;
154 m_ownerId = std::forward<OwnerIdT>(value);
155 }
156 template <typename OwnerIdT = Aws::String>
157 FirewallRuleGroup& WithOwnerId(OwnerIdT&& value) {
158 SetOwnerId(std::forward<OwnerIdT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
170 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
171 template <typename CreatorRequestIdT = Aws::String>
172 void SetCreatorRequestId(CreatorRequestIdT&& value) {
173 m_creatorRequestIdHasBeenSet = true;
174 m_creatorRequestId = std::forward<CreatorRequestIdT>(value);
175 }
176 template <typename CreatorRequestIdT = Aws::String>
177 FirewallRuleGroup& WithCreatorRequestId(CreatorRequestIdT&& value) {
178 SetCreatorRequestId(std::forward<CreatorRequestIdT>(value));
179 return *this;
180 }
182
184
189 inline ShareStatus GetShareStatus() const { return m_shareStatus; }
190 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
191 inline void SetShareStatus(ShareStatus value) {
192 m_shareStatusHasBeenSet = true;
193 m_shareStatus = value;
194 }
196 SetShareStatus(value);
197 return *this;
198 }
200
202
206 inline const Aws::String& GetCreationTime() const { return m_creationTime; }
207 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
208 template <typename CreationTimeT = Aws::String>
209 void SetCreationTime(CreationTimeT&& value) {
210 m_creationTimeHasBeenSet = true;
211 m_creationTime = std::forward<CreationTimeT>(value);
212 }
213 template <typename CreationTimeT = Aws::String>
214 FirewallRuleGroup& WithCreationTime(CreationTimeT&& value) {
215 SetCreationTime(std::forward<CreationTimeT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetModificationTime() const { return m_modificationTime; }
226 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
227 template <typename ModificationTimeT = Aws::String>
228 void SetModificationTime(ModificationTimeT&& value) {
229 m_modificationTimeHasBeenSet = true;
230 m_modificationTime = std::forward<ModificationTimeT>(value);
231 }
232 template <typename ModificationTimeT = Aws::String>
233 FirewallRuleGroup& WithModificationTime(ModificationTimeT&& value) {
234 SetModificationTime(std::forward<ModificationTimeT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_id;
240
241 Aws::String m_arn;
242
243 Aws::String m_name;
244
245 int m_ruleCount{0};
246
248
249 Aws::String m_statusMessage;
250
251 Aws::String m_ownerId;
252
253 Aws::String m_creatorRequestId;
254
255 ShareStatus m_shareStatus{ShareStatus::NOT_SET};
256
257 Aws::String m_creationTime;
258
259 Aws::String m_modificationTime;
260 bool m_idHasBeenSet = false;
261 bool m_arnHasBeenSet = false;
262 bool m_nameHasBeenSet = false;
263 bool m_ruleCountHasBeenSet = false;
264 bool m_statusHasBeenSet = false;
265 bool m_statusMessageHasBeenSet = false;
266 bool m_ownerIdHasBeenSet = false;
267 bool m_creatorRequestIdHasBeenSet = false;
268 bool m_shareStatusHasBeenSet = false;
269 bool m_creationTimeHasBeenSet = false;
270 bool m_modificationTimeHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace Route53Resolver
275} // namespace Aws
void SetStatus(FirewallRuleGroupStatus value)
AWS_ROUTE53RESOLVER_API FirewallRuleGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
FirewallRuleGroup & WithName(NameT &&value)
FirewallRuleGroup & WithStatus(FirewallRuleGroupStatus value)
FirewallRuleGroup & WithShareStatus(ShareStatus value)
AWS_ROUTE53RESOLVER_API FirewallRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
FirewallRuleGroup & WithStatusMessage(StatusMessageT &&value)
void SetModificationTime(ModificationTimeT &&value)
FirewallRuleGroup & WithCreationTime(CreationTimeT &&value)
FirewallRuleGroup & WithArn(ArnT &&value)
FirewallRuleGroup & WithModificationTime(ModificationTimeT &&value)
void SetCreatorRequestId(CreatorRequestIdT &&value)
AWS_ROUTE53RESOLVER_API FirewallRuleGroup()=default
FirewallRuleGroup & WithOwnerId(OwnerIdT &&value)
FirewallRuleGroup & WithCreatorRequestId(CreatorRequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue