AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafRegionalWebAclDetails.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/AwsWafRegionalWebAclRulesListDetails.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
36 {
37 public:
38 AWS_SECURITYHUB_API AwsWafRegionalWebAclDetails() = default;
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetDefaultAction() const { return m_defaultAction; }
50 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
51 template<typename DefaultActionT = Aws::String>
52 void SetDefaultAction(DefaultActionT&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::forward<DefaultActionT>(value); }
53 template<typename DefaultActionT = Aws::String>
54 AwsWafRegionalWebAclDetails& WithDefaultAction(DefaultActionT&& value) { SetDefaultAction(std::forward<DefaultActionT>(value)); return *this;}
56
58
61 inline const Aws::String& GetMetricName() const { return m_metricName; }
62 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
63 template<typename MetricNameT = Aws::String>
64 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
65 template<typename MetricNameT = Aws::String>
66 AwsWafRegionalWebAclDetails& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 AwsWafRegionalWebAclDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
86 inline const Aws::Vector<AwsWafRegionalWebAclRulesListDetails>& GetRulesList() const { return m_rulesList; }
87 inline bool RulesListHasBeenSet() const { return m_rulesListHasBeenSet; }
88 template<typename RulesListT = Aws::Vector<AwsWafRegionalWebAclRulesListDetails>>
89 void SetRulesList(RulesListT&& value) { m_rulesListHasBeenSet = true; m_rulesList = std::forward<RulesListT>(value); }
90 template<typename RulesListT = Aws::Vector<AwsWafRegionalWebAclRulesListDetails>>
91 AwsWafRegionalWebAclDetails& WithRulesList(RulesListT&& value) { SetRulesList(std::forward<RulesListT>(value)); return *this;}
92 template<typename RulesListT = AwsWafRegionalWebAclRulesListDetails>
93 AwsWafRegionalWebAclDetails& AddRulesList(RulesListT&& value) { m_rulesListHasBeenSet = true; m_rulesList.emplace_back(std::forward<RulesListT>(value)); return *this; }
95
97
100 inline const Aws::String& GetWebAclId() const { return m_webAclId; }
101 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
102 template<typename WebAclIdT = Aws::String>
103 void SetWebAclId(WebAclIdT&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::forward<WebAclIdT>(value); }
104 template<typename WebAclIdT = Aws::String>
105 AwsWafRegionalWebAclDetails& WithWebAclId(WebAclIdT&& value) { SetWebAclId(std::forward<WebAclIdT>(value)); return *this;}
107 private:
108
109 Aws::String m_defaultAction;
110 bool m_defaultActionHasBeenSet = false;
111
112 Aws::String m_metricName;
113 bool m_metricNameHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
119 bool m_rulesListHasBeenSet = false;
120
121 Aws::String m_webAclId;
122 bool m_webAclIdHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace SecurityHub
127} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRegionalWebAclDetails & WithRulesList(RulesListT &&value)
AwsWafRegionalWebAclDetails & WithDefaultAction(DefaultActionT &&value)
AWS_SECURITYHUB_API AwsWafRegionalWebAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsWafRegionalWebAclRulesListDetails > & GetRulesList() const
AWS_SECURITYHUB_API AwsWafRegionalWebAclDetails()=default
AwsWafRegionalWebAclDetails & AddRulesList(RulesListT &&value)
AwsWafRegionalWebAclDetails & WithWebAclId(WebAclIdT &&value)
AWS_SECURITYHUB_API AwsWafRegionalWebAclDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafRegionalWebAclDetails & WithName(NameT &&value)
AwsWafRegionalWebAclDetails & WithMetricName(MetricNameT &&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