AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AwsWafWebAclDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/AwsWafWebAclRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API AwsWafWebAclDetails() = default;
33 AWS_SECURITYHUB_API AwsWafWebAclDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 AwsWafWebAclDetails& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDefaultAction() const { return m_defaultAction; }
62 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
63 template <typename DefaultActionT = Aws::String>
64 void SetDefaultAction(DefaultActionT&& value) {
65 m_defaultActionHasBeenSet = true;
66 m_defaultAction = std::forward<DefaultActionT>(value);
67 }
68 template <typename DefaultActionT = Aws::String>
69 AwsWafWebAclDetails& WithDefaultAction(DefaultActionT&& value) {
70 SetDefaultAction(std::forward<DefaultActionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<AwsWafWebAclRule>& GetRules() const { return m_rules; }
81 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
82 template <typename RulesT = Aws::Vector<AwsWafWebAclRule>>
83 void SetRules(RulesT&& value) {
84 m_rulesHasBeenSet = true;
85 m_rules = std::forward<RulesT>(value);
86 }
87 template <typename RulesT = Aws::Vector<AwsWafWebAclRule>>
88 AwsWafWebAclDetails& WithRules(RulesT&& value) {
89 SetRules(std::forward<RulesT>(value));
90 return *this;
91 }
92 template <typename RulesT = AwsWafWebAclRule>
93 AwsWafWebAclDetails& AddRules(RulesT&& value) {
94 m_rulesHasBeenSet = true;
95 m_rules.emplace_back(std::forward<RulesT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetWebAclId() const { return m_webAclId; }
105 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
106 template <typename WebAclIdT = Aws::String>
107 void SetWebAclId(WebAclIdT&& value) {
108 m_webAclIdHasBeenSet = true;
109 m_webAclId = std::forward<WebAclIdT>(value);
110 }
111 template <typename WebAclIdT = Aws::String>
112 AwsWafWebAclDetails& WithWebAclId(WebAclIdT&& value) {
113 SetWebAclId(std::forward<WebAclIdT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_name;
119
120 Aws::String m_defaultAction;
121
123
124 Aws::String m_webAclId;
125 bool m_nameHasBeenSet = false;
126 bool m_defaultActionHasBeenSet = false;
127 bool m_rulesHasBeenSet = false;
128 bool m_webAclIdHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SecurityHub
133} // namespace Aws
AwsWafWebAclDetails & WithName(NameT &&value)
AWS_SECURITYHUB_API AwsWafWebAclDetails()=default
const Aws::Vector< AwsWafWebAclRule > & GetRules() const
AwsWafWebAclDetails & WithWebAclId(WebAclIdT &&value)
AwsWafWebAclDetails & AddRules(RulesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafWebAclDetails & WithDefaultAction(DefaultActionT &&value)
AWS_SECURITYHUB_API AwsWafWebAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsWafWebAclDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafWebAclDetails & WithRules(RulesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue