AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafWebAclDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/model/AwsWafWebAclRule.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
35 {
36 public:
37 AWS_SECURITYHUB_API AwsWafWebAclDetails() = default;
38 AWS_SECURITYHUB_API AwsWafWebAclDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 AwsWafWebAclDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_defaultActionHasBeenSet = true; m_defaultAction = std::forward<DefaultActionT>(value); }
65 template<typename DefaultActionT = Aws::String>
66 AwsWafWebAclDetails& WithDefaultAction(DefaultActionT&& value) { SetDefaultAction(std::forward<DefaultActionT>(value)); return *this;}
68
70
74 inline const Aws::Vector<AwsWafWebAclRule>& GetRules() const { return m_rules; }
75 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
76 template<typename RulesT = Aws::Vector<AwsWafWebAclRule>>
77 void SetRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
78 template<typename RulesT = Aws::Vector<AwsWafWebAclRule>>
79 AwsWafWebAclDetails& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
80 template<typename RulesT = AwsWafWebAclRule>
81 AwsWafWebAclDetails& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
83
85
88 inline const Aws::String& GetWebAclId() const { return m_webAclId; }
89 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
90 template<typename WebAclIdT = Aws::String>
91 void SetWebAclId(WebAclIdT&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::forward<WebAclIdT>(value); }
92 template<typename WebAclIdT = Aws::String>
93 AwsWafWebAclDetails& WithWebAclId(WebAclIdT&& value) { SetWebAclId(std::forward<WebAclIdT>(value)); return *this;}
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_defaultAction;
101 bool m_defaultActionHasBeenSet = false;
102
104 bool m_rulesHasBeenSet = false;
105
106 Aws::String m_webAclId;
107 bool m_webAclIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SecurityHub
112} // 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