AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafv2RulesDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsWafv2RulesActionDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/AwsWafv2VisibilityConfigDetails.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 SecurityHub
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_SECURITYHUB_API AwsWafv2RulesDetails();
40 AWS_SECURITYHUB_API AwsWafv2RulesDetails(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const AwsWafv2RulesActionDetails& GetAction() const{ return m_action; }
52 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
53 inline void SetAction(const AwsWafv2RulesActionDetails& value) { m_actionHasBeenSet = true; m_action = value; }
54 inline void SetAction(AwsWafv2RulesActionDetails&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
55 inline AwsWafv2RulesDetails& WithAction(const AwsWafv2RulesActionDetails& value) { SetAction(value); return *this;}
56 inline AwsWafv2RulesDetails& WithAction(AwsWafv2RulesActionDetails&& value) { SetAction(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline AwsWafv2RulesDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline AwsWafv2RulesDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline AwsWafv2RulesDetails& WithName(const char* value) { SetName(value); return *this;}
72
74
78 inline const Aws::String& GetOverrideAction() const{ return m_overrideAction; }
79 inline bool OverrideActionHasBeenSet() const { return m_overrideActionHasBeenSet; }
80 inline void SetOverrideAction(const Aws::String& value) { m_overrideActionHasBeenSet = true; m_overrideAction = value; }
81 inline void SetOverrideAction(Aws::String&& value) { m_overrideActionHasBeenSet = true; m_overrideAction = std::move(value); }
82 inline void SetOverrideAction(const char* value) { m_overrideActionHasBeenSet = true; m_overrideAction.assign(value); }
83 inline AwsWafv2RulesDetails& WithOverrideAction(const Aws::String& value) { SetOverrideAction(value); return *this;}
84 inline AwsWafv2RulesDetails& WithOverrideAction(Aws::String&& value) { SetOverrideAction(std::move(value)); return *this;}
85 inline AwsWafv2RulesDetails& WithOverrideAction(const char* value) { SetOverrideAction(value); return *this;}
87
89
95 inline int GetPriority() const{ return m_priority; }
96 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
97 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
98 inline AwsWafv2RulesDetails& WithPriority(int value) { SetPriority(value); return *this;}
100
102
106 inline const AwsWafv2VisibilityConfigDetails& GetVisibilityConfig() const{ return m_visibilityConfig; }
107 inline bool VisibilityConfigHasBeenSet() const { return m_visibilityConfigHasBeenSet; }
108 inline void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = value; }
109 inline void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails&& value) { m_visibilityConfigHasBeenSet = true; m_visibilityConfig = std::move(value); }
113 private:
114
116 bool m_actionHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_overrideAction;
122 bool m_overrideActionHasBeenSet = false;
123
124 int m_priority;
125 bool m_priorityHasBeenSet = false;
126
127 AwsWafv2VisibilityConfigDetails m_visibilityConfig;
128 bool m_visibilityConfigHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace SecurityHub
133} // namespace Aws
AwsWafv2RulesDetails & WithName(const Aws::String &value)
AwsWafv2RulesDetails & WithOverrideAction(const char *value)
AwsWafv2RulesDetails & WithPriority(int value)
const AwsWafv2RulesActionDetails & GetAction() const
AwsWafv2RulesDetails & WithAction(AwsWafv2RulesActionDetails &&value)
const AwsWafv2VisibilityConfigDetails & GetVisibilityConfig() const
void SetAction(AwsWafv2RulesActionDetails &&value)
AwsWafv2RulesDetails & WithName(Aws::String &&value)
AWS_SECURITYHUB_API AwsWafv2RulesDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafv2RulesDetails & WithName(const char *value)
AwsWafv2RulesDetails & WithOverrideAction(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVisibilityConfig(const AwsWafv2VisibilityConfigDetails &value)
AwsWafv2RulesDetails & WithVisibilityConfig(AwsWafv2VisibilityConfigDetails &&value)
AwsWafv2RulesDetails & WithVisibilityConfig(const AwsWafv2VisibilityConfigDetails &value)
AwsWafv2RulesDetails & WithOverrideAction(Aws::String &&value)
void SetVisibilityConfig(AwsWafv2VisibilityConfigDetails &&value)
AWS_SECURITYHUB_API AwsWafv2RulesDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(const AwsWafv2RulesActionDetails &value)
AwsWafv2RulesDetails & WithAction(const AwsWafv2RulesActionDetails &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue