AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
UpdateRuleGroupRequest.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace NetworkFirewall
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateRuleGroup"; }
35
37
39
40
52 inline const Aws::String& GetUpdateToken() const{ return m_updateToken; }
53
65 inline bool UpdateTokenHasBeenSet() const { return m_updateTokenHasBeenSet; }
66
78 inline void SetUpdateToken(const Aws::String& value) { m_updateTokenHasBeenSet = true; m_updateToken = value; }
79
91 inline void SetUpdateToken(Aws::String&& value) { m_updateTokenHasBeenSet = true; m_updateToken = std::move(value); }
92
104 inline void SetUpdateToken(const char* value) { m_updateTokenHasBeenSet = true; m_updateToken.assign(value); }
105
117 inline UpdateRuleGroupRequest& WithUpdateToken(const Aws::String& value) { SetUpdateToken(value); return *this;}
118
130 inline UpdateRuleGroupRequest& WithUpdateToken(Aws::String&& value) { SetUpdateToken(std::move(value)); return *this;}
131
143 inline UpdateRuleGroupRequest& WithUpdateToken(const char* value) { SetUpdateToken(value); return *this;}
144
145
150 inline const Aws::String& GetRuleGroupArn() const{ return m_ruleGroupArn; }
151
156 inline bool RuleGroupArnHasBeenSet() const { return m_ruleGroupArnHasBeenSet; }
157
162 inline void SetRuleGroupArn(const Aws::String& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = value; }
163
168 inline void SetRuleGroupArn(Aws::String&& value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn = std::move(value); }
169
174 inline void SetRuleGroupArn(const char* value) { m_ruleGroupArnHasBeenSet = true; m_ruleGroupArn.assign(value); }
175
180 inline UpdateRuleGroupRequest& WithRuleGroupArn(const Aws::String& value) { SetRuleGroupArn(value); return *this;}
181
186 inline UpdateRuleGroupRequest& WithRuleGroupArn(Aws::String&& value) { SetRuleGroupArn(std::move(value)); return *this;}
187
192 inline UpdateRuleGroupRequest& WithRuleGroupArn(const char* value) { SetRuleGroupArn(value); return *this;}
193
194
200 inline const Aws::String& GetRuleGroupName() const{ return m_ruleGroupName; }
201
207 inline bool RuleGroupNameHasBeenSet() const { return m_ruleGroupNameHasBeenSet; }
208
214 inline void SetRuleGroupName(const Aws::String& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = value; }
215
221 inline void SetRuleGroupName(Aws::String&& value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName = std::move(value); }
222
228 inline void SetRuleGroupName(const char* value) { m_ruleGroupNameHasBeenSet = true; m_ruleGroupName.assign(value); }
229
235 inline UpdateRuleGroupRequest& WithRuleGroupName(const Aws::String& value) { SetRuleGroupName(value); return *this;}
236
242 inline UpdateRuleGroupRequest& WithRuleGroupName(Aws::String&& value) { SetRuleGroupName(std::move(value)); return *this;}
243
249 inline UpdateRuleGroupRequest& WithRuleGroupName(const char* value) { SetRuleGroupName(value); return *this;}
250
251
257 inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
258
264 inline bool RuleGroupHasBeenSet() const { return m_ruleGroupHasBeenSet; }
265
271 inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = value; }
272
278 inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroupHasBeenSet = true; m_ruleGroup = std::move(value); }
279
285 inline UpdateRuleGroupRequest& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
286
292 inline UpdateRuleGroupRequest& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
293
294
305 inline const Aws::String& GetRules() const{ return m_rules; }
306
317 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
318
329 inline void SetRules(const Aws::String& value) { m_rulesHasBeenSet = true; m_rules = value; }
330
341 inline void SetRules(Aws::String&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
342
353 inline void SetRules(const char* value) { m_rulesHasBeenSet = true; m_rules.assign(value); }
354
365 inline UpdateRuleGroupRequest& WithRules(const Aws::String& value) { SetRules(value); return *this;}
366
377 inline UpdateRuleGroupRequest& WithRules(Aws::String&& value) { SetRules(std::move(value)); return *this;}
378
389 inline UpdateRuleGroupRequest& WithRules(const char* value) { SetRules(value); return *this;}
390
391
398 inline const RuleGroupType& GetType() const{ return m_type; }
399
406 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
407
414 inline void SetType(const RuleGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
415
422 inline void SetType(RuleGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
423
430 inline UpdateRuleGroupRequest& WithType(const RuleGroupType& value) { SetType(value); return *this;}
431
438 inline UpdateRuleGroupRequest& WithType(RuleGroupType&& value) { SetType(std::move(value)); return *this;}
439
440
444 inline const Aws::String& GetDescription() const{ return m_description; }
445
449 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
450
454 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
455
459 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
460
464 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
465
469 inline UpdateRuleGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
470
474 inline UpdateRuleGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
475
479 inline UpdateRuleGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
480
481
493 inline bool GetDryRun() const{ return m_dryRun; }
494
506 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
507
519 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
520
532 inline UpdateRuleGroupRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
533
534
539 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
540
545 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
546
551 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
552
557 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
558
564
570
571
577 inline const SourceMetadata& GetSourceMetadata() const{ return m_sourceMetadata; }
578
584 inline bool SourceMetadataHasBeenSet() const { return m_sourceMetadataHasBeenSet; }
585
591 inline void SetSourceMetadata(const SourceMetadata& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = value; }
592
598 inline void SetSourceMetadata(SourceMetadata&& value) { m_sourceMetadataHasBeenSet = true; m_sourceMetadata = std::move(value); }
599
605 inline UpdateRuleGroupRequest& WithSourceMetadata(const SourceMetadata& value) { SetSourceMetadata(value); return *this;}
606
612 inline UpdateRuleGroupRequest& WithSourceMetadata(SourceMetadata&& value) { SetSourceMetadata(std::move(value)); return *this;}
613
614 private:
615
616 Aws::String m_updateToken;
617 bool m_updateTokenHasBeenSet = false;
618
619 Aws::String m_ruleGroupArn;
620 bool m_ruleGroupArnHasBeenSet = false;
621
622 Aws::String m_ruleGroupName;
623 bool m_ruleGroupNameHasBeenSet = false;
624
625 RuleGroup m_ruleGroup;
626 bool m_ruleGroupHasBeenSet = false;
627
628 Aws::String m_rules;
629 bool m_rulesHasBeenSet = false;
630
631 RuleGroupType m_type;
632 bool m_typeHasBeenSet = false;
633
634 Aws::String m_description;
635 bool m_descriptionHasBeenSet = false;
636
637 bool m_dryRun;
638 bool m_dryRunHasBeenSet = false;
639
640 EncryptionConfiguration m_encryptionConfiguration;
641 bool m_encryptionConfigurationHasBeenSet = false;
642
643 SourceMetadata m_sourceMetadata;
644 bool m_sourceMetadataHasBeenSet = false;
645 };
646
647} // namespace Model
648} // namespace NetworkFirewall
649} // namespace Aws
#define AWS_NETWORKFIREWALL_API
AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
UpdateRuleGroupRequest & WithRuleGroupName(Aws::String &&value)
UpdateRuleGroupRequest & WithRuleGroupArn(const char *value)
UpdateRuleGroupRequest & WithSourceMetadata(const SourceMetadata &value)
UpdateRuleGroupRequest & WithRules(Aws::String &&value)
UpdateRuleGroupRequest & WithRuleGroupArn(Aws::String &&value)
AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override
UpdateRuleGroupRequest & WithDescription(Aws::String &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
UpdateRuleGroupRequest & WithRules(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateRuleGroupRequest & WithRuleGroupArn(const Aws::String &value)
UpdateRuleGroupRequest & WithType(const RuleGroupType &value)
UpdateRuleGroupRequest & WithDescription(const char *value)
UpdateRuleGroupRequest & WithSourceMetadata(SourceMetadata &&value)
UpdateRuleGroupRequest & WithRuleGroupName(const Aws::String &value)
UpdateRuleGroupRequest & WithDescription(const Aws::String &value)
UpdateRuleGroupRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
UpdateRuleGroupRequest & WithRules(const char *value)
UpdateRuleGroupRequest & WithUpdateToken(Aws::String &&value)
UpdateRuleGroupRequest & WithRuleGroupName(const char *value)
UpdateRuleGroupRequest & WithRuleGroup(RuleGroup &&value)
UpdateRuleGroupRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
UpdateRuleGroupRequest & WithRuleGroup(const RuleGroup &value)
UpdateRuleGroupRequest & WithUpdateToken(const Aws::String &value)
UpdateRuleGroupRequest & WithUpdateToken(const char *value)
UpdateRuleGroupRequest & WithType(RuleGroupType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String