AWS SDK for C++  1.9.102
AWS SDK for C++
RuleGroupResponse.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace NetworkFirewall
26 {
27 namespace Model
28 {
29 
38  {
39  public:
44 
45 
52  inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; }
53 
60  inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
61 
68  inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
69 
76  inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
77 
84  inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
85 
92  inline RuleGroupResponse& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
93 
100  inline RuleGroupResponse& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
101 
108  inline RuleGroupResponse& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
109 
110 
115  inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
116 
121  inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
122 
127  inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
128 
133  inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
134 
139  inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
140 
145  inline RuleGroupResponse& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
146 
151  inline RuleGroupResponse& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
152 
157  inline RuleGroupResponse& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
158 
159 
163  inline const Aws::String& GetRuleGroupId() const{ return m_ruleGroupId; }
164 
168  inline bool RuleGroupIdHasBeenSet() const { return m_ruleGroupIdHasBeenSet; }
169 
173  inline void SetRuleGroupId(const Aws::String& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = value; }
174 
178  inline void SetRuleGroupId(Aws::String&& value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId = std::move(value); }
179 
183  inline void SetRuleGroupId(const char* value) { m_ruleGroupIdHasBeenSet = true; m_ruleGroupId.assign(value); }
184 
188  inline RuleGroupResponse& WithRuleGroupId(const Aws::String& value) { SetRuleGroupId(value); return *this;}
189 
193  inline RuleGroupResponse& WithRuleGroupId(Aws::String&& value) { SetRuleGroupId(std::move(value)); return *this;}
194 
198  inline RuleGroupResponse& WithRuleGroupId(const char* value) { SetRuleGroupId(value); return *this;}
199 
200 
204  inline const Aws::String& GetDescription() const{ return m_description; }
205 
209  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
210 
214  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
215 
219  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
220 
224  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
225 
229  inline RuleGroupResponse& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
230 
234  inline RuleGroupResponse& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
235 
239  inline RuleGroupResponse& WithDescription(const char* value) { SetDescription(value); return *this;}
240 
241 
247  inline const RuleGroupType& GetType() const{ return m_type; }
248 
254  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
255 
261  inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
262 
268  inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
269 
275  inline RuleGroupResponse& WithType(const RuleGroupType& value) { SetType(value); return *this;}
276 
282  inline RuleGroupResponse& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
283 
284 
294  inline int GetCapacity() const{ return m_capacity; }
295 
305  inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
306 
316  inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; }
317 
327  inline RuleGroupResponse& WithCapacity(int value) { SetCapacity(value); return *this;}
328 
329 
333  inline const ResourceStatus& GetRuleGroupStatus() const{ return m_ruleGroupStatus; }
334 
338  inline bool RuleGroupStatusHasBeenSet() const { return m_ruleGroupStatusHasBeenSet; }
339 
343  inline void SetRuleGroupStatus(const ResourceStatus& value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = value; }
344 
348  inline void SetRuleGroupStatus(ResourceStatus&& value) { m_ruleGroupStatusHasBeenSet = true; m_ruleGroupStatus = std::move(value); }
349 
353  inline RuleGroupResponse& WithRuleGroupStatus(const ResourceStatus& value) { SetRuleGroupStatus(value); return *this;}
354 
358  inline RuleGroupResponse& WithRuleGroupStatus(ResourceStatus&& value) { SetRuleGroupStatus(std::move(value)); return *this;}
359 
360 
364  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
365 
369  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
370 
374  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
375 
379  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
380 
384  inline RuleGroupResponse& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
385 
389  inline RuleGroupResponse& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
390 
394  inline RuleGroupResponse& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
395 
399  inline RuleGroupResponse& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
400 
401  private:
402 
403  Aws::String m_ruleGroupArn;
404  bool m_ruleGroupArnHasBeenSet;
405 
406  Aws::String m_ruleGroupName;
407  bool m_ruleGroupNameHasBeenSet;
408 
409  Aws::String m_ruleGroupId;
410  bool m_ruleGroupIdHasBeenSet;
411 
412  Aws::String m_description;
413  bool m_descriptionHasBeenSet;
414 
415  RuleGroupType m_type;
416  bool m_typeHasBeenSet;
417 
418  int m_capacity;
419  bool m_capacityHasBeenSet;
420 
421  ResourceStatus m_ruleGroupStatus;
422  bool m_ruleGroupStatusHasBeenSet;
423 
424  Aws::Vector<Tag> m_tags;
425  bool m_tagsHasBeenSet;
426  };
427 
428 } // namespace Model
429 } // namespace NetworkFirewall
430 } // namespace Aws
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupName
void SetRuleGroupName(Aws::String &&value)
Definition: RuleGroupResponse.h:133
Aws::NetworkFirewall::Model::RuleGroupResponse::WithTags
RuleGroupResponse & WithTags(Aws::Vector< Tag > &&value)
Definition: RuleGroupResponse.h:389
Aws::NetworkFirewall::Model::RuleGroupType
RuleGroupType
Definition: RuleGroupType.h:17
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupId
RuleGroupResponse & WithRuleGroupId(const char *value)
Definition: RuleGroupResponse.h:198
Aws::NetworkFirewall::Model::RuleGroupResponse::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: RuleGroupResponse.h:364
Aws::NetworkFirewall::Model::RuleGroupResponse::SetType
void SetType(RuleGroupType &&value)
Definition: RuleGroupResponse.h:268
Aws::NetworkFirewall::Model::RuleGroupResponse::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: RuleGroupResponse.h:379
Aws::NetworkFirewall::Model::RuleGroupResponse::WithType
RuleGroupResponse & WithType(const RuleGroupType &value)
Definition: RuleGroupResponse.h:275
Aws::NetworkFirewall::Model::RuleGroupResponse::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: RuleGroupResponse.h:369
Aws::NetworkFirewall::Model::RuleGroupResponse::WithTags
RuleGroupResponse & WithTags(const Aws::Vector< Tag > &value)
Definition: RuleGroupResponse.h:384
Aws::NetworkFirewall::Model::RuleGroupResponse
Definition: RuleGroupResponse.h:38
Aws::NetworkFirewall::Model::RuleGroupResponse::SetCapacity
void SetCapacity(int value)
Definition: RuleGroupResponse.h:316
Aws::NetworkFirewall::Model::RuleGroupResponse::RuleGroupResponse
RuleGroupResponse(Aws::Utils::Json::JsonView jsonValue)
Aws::NetworkFirewall::Model::RuleGroupResponse::GetType
const RuleGroupType & GetType() const
Definition: RuleGroupResponse.h:247
Aws::NetworkFirewall::Model::RuleGroupResponse::GetCapacity
int GetCapacity() const
Definition: RuleGroupResponse.h:294
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupStatus
RuleGroupResponse & WithRuleGroupStatus(const ResourceStatus &value)
Definition: RuleGroupResponse.h:353
Aws::NetworkFirewall::Model::Tag
Definition: Tag.h:36
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupId
void SetRuleGroupId(const char *value)
Definition: RuleGroupResponse.h:183
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupStatus
void SetRuleGroupStatus(ResourceStatus &&value)
Definition: RuleGroupResponse.h:348
Aws::NetworkFirewall::Model::RuleGroupResponse::RuleGroupResponse
RuleGroupResponse()
AWSVector.h
Aws::NetworkFirewall::Model::RuleGroupResponse::RuleGroupStatusHasBeenSet
bool RuleGroupStatusHasBeenSet() const
Definition: RuleGroupResponse.h:338
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupName
RuleGroupResponse & WithRuleGroupName(Aws::String &&value)
Definition: RuleGroupResponse.h:151
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupName
RuleGroupResponse & WithRuleGroupName(const Aws::String &value)
Definition: RuleGroupResponse.h:145
Aws::NetworkFirewall::Model::RuleGroupResponse::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: RuleGroupResponse.h:209
Aws::NetworkFirewall::Model::RuleGroupResponse::GetDescription
const Aws::String & GetDescription() const
Definition: RuleGroupResponse.h:204
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupId
RuleGroupResponse & WithRuleGroupId(const Aws::String &value)
Definition: RuleGroupResponse.h:188
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupArn
void SetRuleGroupArn(Aws::String &&value)
Definition: RuleGroupResponse.h:76
Aws::NetworkFirewall::Model::RuleGroupResponse::GetRuleGroupStatus
const ResourceStatus & GetRuleGroupStatus() const
Definition: RuleGroupResponse.h:333
Aws::NetworkFirewall::Model::RuleGroupResponse::AddTags
RuleGroupResponse & AddTags(const Tag &value)
Definition: RuleGroupResponse.h:394
Aws::NetworkFirewall::Model::RuleGroupResponse::CapacityHasBeenSet
bool CapacityHasBeenSet() const
Definition: RuleGroupResponse.h:305
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupArn
void SetRuleGroupArn(const Aws::String &value)
Definition: RuleGroupResponse.h:68
Aws::NetworkFirewall::Model::RuleGroupResponse::GetRuleGroupId
const Aws::String & GetRuleGroupId() const
Definition: RuleGroupResponse.h:163
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupName
void SetRuleGroupName(const Aws::String &value)
Definition: RuleGroupResponse.h:127
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupArn
RuleGroupResponse & WithRuleGroupArn(const char *value)
Definition: RuleGroupResponse.h:108
ResourceStatus.h
Aws::NetworkFirewall::Model::RuleGroupResponse::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::NetworkFirewall::Model::RuleGroupResponse::WithDescription
RuleGroupResponse & WithDescription(const char *value)
Definition: RuleGroupResponse.h:239
Aws::NetworkFirewall::Model::RuleGroupResponse::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: RuleGroupResponse.h:254
AWS_NETWORKFIREWALL_API
#define AWS_NETWORKFIREWALL_API
Definition: NetworkFirewall_EXPORTS.h:28
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupArn
RuleGroupResponse & WithRuleGroupArn(const Aws::String &value)
Definition: RuleGroupResponse.h:92
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupId
void SetRuleGroupId(Aws::String &&value)
Definition: RuleGroupResponse.h:178
Tag.h
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupArn
void SetRuleGroupArn(const char *value)
Definition: RuleGroupResponse.h:84
Aws::NetworkFirewall::Model::RuleGroupResponse::operator=
RuleGroupResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::NetworkFirewall::Model::RuleGroupResponse::RuleGroupIdHasBeenSet
bool RuleGroupIdHasBeenSet() const
Definition: RuleGroupResponse.h:168
Aws::NetworkFirewall::Model::RuleGroupResponse::WithDescription
RuleGroupResponse & WithDescription(const Aws::String &value)
Definition: RuleGroupResponse.h:229
Aws::NetworkFirewall::Model::RuleGroupResponse::WithType
RuleGroupResponse & WithType(RuleGroupType &&value)
Definition: RuleGroupResponse.h:282
Aws::NetworkFirewall::Model::RuleGroupResponse::GetRuleGroupArn
const Aws::String & GetRuleGroupArn() const
Definition: RuleGroupResponse.h:52
Aws::NetworkFirewall::Model::RuleGroupResponse::SetType
void SetType(const RuleGroupType &value)
Definition: RuleGroupResponse.h:261
Aws::NetworkFirewall::Model::RuleGroupResponse::WithCapacity
RuleGroupResponse & WithCapacity(int value)
Definition: RuleGroupResponse.h:327
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupStatus
void SetRuleGroupStatus(const ResourceStatus &value)
Definition: RuleGroupResponse.h:343
RuleGroupType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkFirewall::Model::RuleGroupResponse::SetDescription
void SetDescription(const Aws::String &value)
Definition: RuleGroupResponse.h:214
Aws::NetworkFirewall::Model::RuleGroupResponse::RuleGroupNameHasBeenSet
bool RuleGroupNameHasBeenSet() const
Definition: RuleGroupResponse.h:121
Aws::NetworkFirewall::Model::RuleGroupResponse::SetDescription
void SetDescription(Aws::String &&value)
Definition: RuleGroupResponse.h:219
Aws::NetworkFirewall::Model::RuleGroupResponse::AddTags
RuleGroupResponse & AddTags(Tag &&value)
Definition: RuleGroupResponse.h:399
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupName
void SetRuleGroupName(const char *value)
Definition: RuleGroupResponse.h:139
Aws::NetworkFirewall::Model::RuleGroupResponse::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: RuleGroupResponse.h:374
Aws::NetworkFirewall::Model::RuleGroupResponse::WithDescription
RuleGroupResponse & WithDescription(Aws::String &&value)
Definition: RuleGroupResponse.h:234
Aws::NetworkFirewall::Model::ResourceStatus
ResourceStatus
Definition: ResourceStatus.h:17
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupArn
RuleGroupResponse & WithRuleGroupArn(Aws::String &&value)
Definition: RuleGroupResponse.h:100
Aws::NetworkFirewall::Model::RuleGroupResponse::RuleGroupArnHasBeenSet
bool RuleGroupArnHasBeenSet() const
Definition: RuleGroupResponse.h:60
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupStatus
RuleGroupResponse & WithRuleGroupStatus(ResourceStatus &&value)
Definition: RuleGroupResponse.h:358
Aws::NetworkFirewall::Model::RuleGroupResponse::SetRuleGroupId
void SetRuleGroupId(const Aws::String &value)
Definition: RuleGroupResponse.h:173
Aws::NetworkFirewall::Model::RuleGroupResponse::GetRuleGroupName
const Aws::String & GetRuleGroupName() const
Definition: RuleGroupResponse.h:115
NetworkFirewall_EXPORTS.h
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupName
RuleGroupResponse & WithRuleGroupName(const char *value)
Definition: RuleGroupResponse.h:157
Aws::NetworkFirewall::Model::RuleGroupResponse::SetDescription
void SetDescription(const char *value)
Definition: RuleGroupResponse.h:224
Aws::NetworkFirewall::Model::RuleGroupResponse::WithRuleGroupId
RuleGroupResponse & WithRuleGroupId(Aws::String &&value)
Definition: RuleGroupResponse.h:193