AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateRuleGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace NetworkFirewall
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
50  inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
51 
63  inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
64 
76  inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
77 
89  inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
90 
102  inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
103 
115  inline UpdateRuleGroupRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
116 
128  inline UpdateRuleGroupRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
129 
141  inline UpdateRuleGroupRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
142 
143 
148  inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; }
149 
154  inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
155 
160  inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
161 
166  inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
167 
172  inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
173 
178  inline UpdateRuleGroupRequest& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
179 
184  inline UpdateRuleGroupRequest& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
185 
190  inline UpdateRuleGroupRequest& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
191 
192 
198  inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
199 
205  inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
206 
212  inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
213 
219  inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
220 
226  inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
227 
233  inline UpdateRuleGroupRequest& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
234 
240  inline UpdateRuleGroupRequest& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
241 
247  inline UpdateRuleGroupRequest& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
248 
249 
255  inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
256 
262  inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
263 
269  inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = value; }
270 
276  inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = std::move(value); }
277 
283  inline UpdateRuleGroupRequest& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
284 
290  inline UpdateRuleGroupRequest& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
291 
292 
303  inline const Aws::String& GetRules() const{ return m_rules; }
304 
315  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
316 
327  inline void SetRules(const Aws::String& value) { m_rulesHasBeenSet = true; m_rules = value; }
328 
339  inline void SetRules(Aws::String&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
340 
351  inline void SetRules(const char* value) { m_rulesHasBeenSet = true; m_rules.assign(value); }
352 
363  inline UpdateRuleGroupRequest& WithRules(const Aws::String& value) { SetRules(value); return *this;}
364 
375  inline UpdateRuleGroupRequest& WithRules(Aws::String&& value) { SetRules(std::move(value)); return *this;}
376 
387  inline UpdateRuleGroupRequest& WithRules(const char* value) { SetRules(value); return *this;}
388 
389 
396  inline const RuleGroupType& GetType() const{ return m_type; }
397 
404  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
405 
412  inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
413 
420  inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
421 
428  inline UpdateRuleGroupRequest& WithType(const RuleGroupType& value) { SetType(value); return *this;}
429 
436  inline UpdateRuleGroupRequest& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
437 
438 
442  inline const Aws::String& GetDescription() const{ return m_description; }
443 
447  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
448 
452  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
453 
457  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
458 
462  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
463 
467  inline UpdateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
468 
472  inline UpdateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
473 
477  inline UpdateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
478 
479 
491  inline bool GetDryRun() const{ return m_dryRun; }
492 
504  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
505 
517  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
518 
530  inline UpdateRuleGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
531 
532  private:
533 
534  Aws::String m_updateToken;
535  bool m_updateTokenHasBeenSet;
536 
537  Aws::String m_ruleGroupArn;
538  bool m_ruleGroupArnHasBeenSet;
539 
540  Aws::String m_ruleGroupName;
541  bool m_ruleGroupNameHasBeenSet;
542 
543  RuleGroup m_ruleGroup;
544  bool m_ruleGroupHasBeenSet;
545 
546  Aws::String m_rules;
547  bool m_rulesHasBeenSet;
548 
549  RuleGroupType m_type;
550  bool m_typeHasBeenSet;
551 
552  Aws::String m_description;
553  bool m_descriptionHasBeenSet;
554 
555  bool m_dryRun;
556  bool m_dryRunHasBeenSet;
557  };
558 
559 } // namespace Model
560 } // namespace NetworkFirewall
561 } // namespace Aws
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetType
void SetType(const RuleGroupType &value)
Definition: UpdateRuleGroupRequest.h:412
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetRules
const Aws::String & GetRules() const
Definition: UpdateRuleGroupRequest.h:303
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetRuleGroupName
const Aws::String & GetRuleGroupName() const
Definition: UpdateRuleGroupRequest.h:198
Aws::NetworkFirewall::Model::RuleGroupType
RuleGroupType
Definition: RuleGroupType.h:17
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:504
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRules
UpdateRuleGroupRequest & WithRules(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:375
Aws::NetworkFirewall::NetworkFirewallRequest
Definition: NetworkFirewallRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
NetworkFirewallRequest.h
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::UpdateTokenHasBeenSet
bool UpdateTokenHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:63
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:457
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroupArn
UpdateRuleGroupRequest & WithRuleGroupArn(const char *value)
Definition: UpdateRuleGroupRequest.h:190
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroup
UpdateRuleGroupRequest & WithRuleGroup(RuleGroup &&value)
Definition: UpdateRuleGroupRequest.h:290
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:315
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:452
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithType
UpdateRuleGroupRequest & WithType(RuleGroupType &&value)
Definition: UpdateRuleGroupRequest.h:436
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetUpdateToken
void SetUpdateToken(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:89
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithDescription
UpdateRuleGroupRequest & WithDescription(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:467
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateRuleGroupRequest.h:442
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithUpdateToken
UpdateRuleGroupRequest & WithUpdateToken(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:115
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest
Definition: UpdateRuleGroupRequest.h:24
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroupName
void SetRuleGroupName(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:212
RuleGroup.h
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::RuleGroupNameHasBeenSet
bool RuleGroupNameHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:205
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroupArn
void SetRuleGroupArn(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:166
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroupName
void SetRuleGroupName(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:219
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::UpdateRuleGroupRequest
UpdateRuleGroupRequest()
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroupName
UpdateRuleGroupRequest & WithRuleGroupName(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:240
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:447
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroupArn
UpdateRuleGroupRequest & WithRuleGroupArn(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:184
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetUpdateToken
const Aws::String & GetUpdateToken() const
Definition: UpdateRuleGroupRequest.h:50
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithDescription
UpdateRuleGroupRequest & WithDescription(const char *value)
Definition: UpdateRuleGroupRequest.h:477
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroupArn
void SetRuleGroupArn(const char *value)
Definition: UpdateRuleGroupRequest.h:172
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithUpdateToken
UpdateRuleGroupRequest & WithUpdateToken(const char *value)
Definition: UpdateRuleGroupRequest.h:141
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRuleGroupRequest.h:32
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetDryRun
void SetDryRun(bool value)
Definition: UpdateRuleGroupRequest.h:517
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetType
void SetType(RuleGroupType &&value)
Definition: UpdateRuleGroupRequest.h:420
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRules
void SetRules(const char *value)
Definition: UpdateRuleGroupRequest.h:351
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroupArn
UpdateRuleGroupRequest & WithRuleGroupArn(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:178
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRules
UpdateRuleGroupRequest & WithRules(const char *value)
Definition: UpdateRuleGroupRequest.h:387
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRules
void SetRules(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:339
AWSString.h
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetRuleGroup
const RuleGroup & GetRuleGroup() const
Definition: UpdateRuleGroupRequest.h:255
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroupName
UpdateRuleGroupRequest & WithRuleGroupName(const char *value)
Definition: UpdateRuleGroupRequest.h:247
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::RuleGroupHasBeenSet
bool RuleGroupHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:262
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::RuleGroupArnHasBeenSet
bool RuleGroupArnHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:154
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetRuleGroupArn
const Aws::String & GetRuleGroupArn() const
Definition: UpdateRuleGroupRequest.h:148
AWS_NETWORKFIREWALL_API
#define AWS_NETWORKFIREWALL_API
Definition: NetworkFirewall_EXPORTS.h:28
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: UpdateRuleGroupRequest.h:404
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithUpdateToken
UpdateRuleGroupRequest & WithUpdateToken(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:128
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithType
UpdateRuleGroupRequest & WithType(const RuleGroupType &value)
Definition: UpdateRuleGroupRequest.h:428
Aws::NetworkFirewall::Model::RuleGroup
Definition: RuleGroup.h:42
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithDryRun
UpdateRuleGroupRequest & WithDryRun(bool value)
Definition: UpdateRuleGroupRequest.h:530
Aws
Definition: AccessManagementClient.h:15
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRules
void SetRules(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:327
RuleGroupType.h
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetType
const RuleGroupType & GetType() const
Definition: UpdateRuleGroupRequest.h:396
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::GetDryRun
bool GetDryRun() const
Definition: UpdateRuleGroupRequest.h:491
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroupName
UpdateRuleGroupRequest & WithRuleGroupName(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:233
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithDescription
UpdateRuleGroupRequest & WithDescription(Aws::String &&value)
Definition: UpdateRuleGroupRequest.h:472
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetUpdateToken
void SetUpdateToken(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:76
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroup
void SetRuleGroup(const RuleGroup &value)
Definition: UpdateRuleGroupRequest.h:269
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroupArn
void SetRuleGroupArn(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:160
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRuleGroup
UpdateRuleGroupRequest & WithRuleGroup(const RuleGroup &value)
Definition: UpdateRuleGroupRequest.h:283
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroupName
void SetRuleGroupName(const char *value)
Definition: UpdateRuleGroupRequest.h:226
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetUpdateToken
void SetUpdateToken(const char *value)
Definition: UpdateRuleGroupRequest.h:102
NetworkFirewall_EXPORTS.h
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetRuleGroup
void SetRuleGroup(RuleGroup &&value)
Definition: UpdateRuleGroupRequest.h:276
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateRuleGroupRequest.h:462
Aws::NetworkFirewall::Model::UpdateRuleGroupRequest::WithRules
UpdateRuleGroupRequest & WithRules(const Aws::String &value)
Definition: UpdateRuleGroupRequest.h:363