AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FirewallRuleGroup.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/FirewallRuleGroupStatus.h>
10#include <aws/route53resolver/model/ShareStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53Resolver
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_ROUTE53RESOLVER_API FirewallRuleGroup();
40 AWS_ROUTE53RESOLVER_API FirewallRuleGroup(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53RESOLVER_API FirewallRuleGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline FirewallRuleGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline FirewallRuleGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline FirewallRuleGroup& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline FirewallRuleGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline FirewallRuleGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline FirewallRuleGroup& WithArn(const char* value) { SetArn(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline FirewallRuleGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline FirewallRuleGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline FirewallRuleGroup& WithName(const char* value) { SetName(value); return *this;}
86
88
91 inline int GetRuleCount() const{ return m_ruleCount; }
92 inline bool RuleCountHasBeenSet() const { return m_ruleCountHasBeenSet; }
93 inline void SetRuleCount(int value) { m_ruleCountHasBeenSet = true; m_ruleCount = value; }
94 inline FirewallRuleGroup& WithRuleCount(int value) { SetRuleCount(value); return *this;}
96
98
101 inline const FirewallRuleGroupStatus& GetStatus() const{ return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(const FirewallRuleGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
104 inline void SetStatus(FirewallRuleGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
105 inline FirewallRuleGroup& WithStatus(const FirewallRuleGroupStatus& value) { SetStatus(value); return *this;}
106 inline FirewallRuleGroup& WithStatus(FirewallRuleGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
114 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
115 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
116 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
117 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
118 inline FirewallRuleGroup& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
119 inline FirewallRuleGroup& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
120 inline FirewallRuleGroup& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
122
124
129 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
130 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
131 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
132 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
133 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
134 inline FirewallRuleGroup& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
135 inline FirewallRuleGroup& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
136 inline FirewallRuleGroup& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
138
140
145 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
146 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
147 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
148 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
149 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
150 inline FirewallRuleGroup& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
151 inline FirewallRuleGroup& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
152 inline FirewallRuleGroup& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
154
156
161 inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; }
162 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
163 inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; }
164 inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); }
165 inline FirewallRuleGroup& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;}
166 inline FirewallRuleGroup& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;}
168
170
174 inline const Aws::String& GetCreationTime() const{ return m_creationTime; }
175 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
176 inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
177 inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
178 inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); }
179 inline FirewallRuleGroup& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;}
180 inline FirewallRuleGroup& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;}
181 inline FirewallRuleGroup& WithCreationTime(const char* value) { SetCreationTime(value); return *this;}
183
185
189 inline const Aws::String& GetModificationTime() const{ return m_modificationTime; }
190 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
191 inline void SetModificationTime(const Aws::String& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; }
192 inline void SetModificationTime(Aws::String&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); }
193 inline void SetModificationTime(const char* value) { m_modificationTimeHasBeenSet = true; m_modificationTime.assign(value); }
194 inline FirewallRuleGroup& WithModificationTime(const Aws::String& value) { SetModificationTime(value); return *this;}
195 inline FirewallRuleGroup& WithModificationTime(Aws::String&& value) { SetModificationTime(std::move(value)); return *this;}
196 inline FirewallRuleGroup& WithModificationTime(const char* value) { SetModificationTime(value); return *this;}
198 private:
199
200 Aws::String m_id;
201 bool m_idHasBeenSet = false;
202
203 Aws::String m_arn;
204 bool m_arnHasBeenSet = false;
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 int m_ruleCount;
210 bool m_ruleCountHasBeenSet = false;
211
213 bool m_statusHasBeenSet = false;
214
215 Aws::String m_statusMessage;
216 bool m_statusMessageHasBeenSet = false;
217
218 Aws::String m_ownerId;
219 bool m_ownerIdHasBeenSet = false;
220
221 Aws::String m_creatorRequestId;
222 bool m_creatorRequestIdHasBeenSet = false;
223
224 ShareStatus m_shareStatus;
225 bool m_shareStatusHasBeenSet = false;
226
227 Aws::String m_creationTime;
228 bool m_creationTimeHasBeenSet = false;
229
230 Aws::String m_modificationTime;
231 bool m_modificationTimeHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace Route53Resolver
236} // namespace Aws
FirewallRuleGroup & WithStatusMessage(const Aws::String &value)
FirewallRuleGroup & WithModificationTime(const Aws::String &value)
void SetModificationTime(const Aws::String &value)
FirewallRuleGroup & WithArn(const char *value)
AWS_ROUTE53RESOLVER_API FirewallRuleGroup(Aws::Utils::Json::JsonView jsonValue)
FirewallRuleGroup & WithStatus(FirewallRuleGroupStatus &&value)
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
FirewallRuleGroup & WithStatus(const FirewallRuleGroupStatus &value)
FirewallRuleGroup & WithModificationTime(const char *value)
void SetStatus(const FirewallRuleGroupStatus &value)
AWS_ROUTE53RESOLVER_API FirewallRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
FirewallRuleGroup & WithName(Aws::String &&value)
void SetStatus(FirewallRuleGroupStatus &&value)
FirewallRuleGroup & WithCreatorRequestId(const char *value)
FirewallRuleGroup & WithArn(const Aws::String &value)
FirewallRuleGroup & WithStatusMessage(Aws::String &&value)
void SetStatusMessage(const Aws::String &value)
FirewallRuleGroup & WithName(const char *value)
FirewallRuleGroup & WithCreationTime(Aws::String &&value)
FirewallRuleGroup & WithShareStatus(const ShareStatus &value)
FirewallRuleGroup & WithCreatorRequestId(const Aws::String &value)
const FirewallRuleGroupStatus & GetStatus() const
FirewallRuleGroup & WithId(Aws::String &&value)
FirewallRuleGroup & WithCreatorRequestId(Aws::String &&value)
FirewallRuleGroup & WithShareStatus(ShareStatus &&value)
FirewallRuleGroup & WithCreationTime(const char *value)
FirewallRuleGroup & WithStatusMessage(const char *value)
FirewallRuleGroup & WithOwnerId(const Aws::String &value)
FirewallRuleGroup & WithOwnerId(const char *value)
void SetCreatorRequestId(const Aws::String &value)
FirewallRuleGroup & WithModificationTime(Aws::String &&value)
FirewallRuleGroup & WithCreationTime(const Aws::String &value)
FirewallRuleGroup & WithId(const Aws::String &value)
FirewallRuleGroup & WithOwnerId(Aws::String &&value)
FirewallRuleGroup & WithName(const Aws::String &value)
FirewallRuleGroup & WithArn(Aws::String &&value)
FirewallRuleGroup & WithId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue