AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDefaultAction(const Aws::String& value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
52 inline void SetDefaultAction(Aws::String&& value) { m_defaultActionHasBeenSet = true; m_defaultAction = std::move(value); }
53 inline void SetDefaultAction(const char* value) { m_defaultActionHasBeenSet = true; m_defaultAction.assign(value); }
54 inline AwsWafRegionalWebAclDetails& WithDefaultAction(const Aws::String& value) { SetDefaultAction(value); return *this;}
55 inline AwsWafRegionalWebAclDetails& WithDefaultAction(Aws::String&& value) { SetDefaultAction(std::move(value)); return *this;}
56 inline AwsWafRegionalWebAclDetails& WithDefaultAction(const char* value) { SetDefaultAction(value); return *this;}
58
60
63 inline const Aws::String& GetMetricName() const{ return m_metricName; }
64 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
65 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
66 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
67 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
68 inline AwsWafRegionalWebAclDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
69 inline AwsWafRegionalWebAclDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
70 inline AwsWafRegionalWebAclDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;}
72
74
77 inline const Aws::String& GetName() const{ return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
80 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
81 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
82 inline AwsWafRegionalWebAclDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
83 inline AwsWafRegionalWebAclDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84 inline AwsWafRegionalWebAclDetails& WithName(const char* value) { SetName(value); return *this;}
86
88
92 inline const Aws::Vector<AwsWafRegionalWebAclRulesListDetails>& GetRulesList() const{ return m_rulesList; }
93 inline bool RulesListHasBeenSet() const { return m_rulesListHasBeenSet; }
94 inline void SetRulesList(const Aws::Vector<AwsWafRegionalWebAclRulesListDetails>& value) { m_rulesListHasBeenSet = true; m_rulesList = value; }
95 inline void SetRulesList(Aws::Vector<AwsWafRegionalWebAclRulesListDetails>&& value) { m_rulesListHasBeenSet = true; m_rulesList = std::move(value); }
98 inline AwsWafRegionalWebAclDetails& AddRulesList(const AwsWafRegionalWebAclRulesListDetails& value) { m_rulesListHasBeenSet = true; m_rulesList.push_back(value); return *this; }
99 inline AwsWafRegionalWebAclDetails& AddRulesList(AwsWafRegionalWebAclRulesListDetails&& value) { m_rulesListHasBeenSet = true; m_rulesList.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::String& GetWebAclId() const{ return m_webAclId; }
107 inline bool WebAclIdHasBeenSet() const { return m_webAclIdHasBeenSet; }
108 inline void SetWebAclId(const Aws::String& value) { m_webAclIdHasBeenSet = true; m_webAclId = value; }
109 inline void SetWebAclId(Aws::String&& value) { m_webAclIdHasBeenSet = true; m_webAclId = std::move(value); }
110 inline void SetWebAclId(const char* value) { m_webAclIdHasBeenSet = true; m_webAclId.assign(value); }
111 inline AwsWafRegionalWebAclDetails& WithWebAclId(const Aws::String& value) { SetWebAclId(value); return *this;}
112 inline AwsWafRegionalWebAclDetails& WithWebAclId(Aws::String&& value) { SetWebAclId(std::move(value)); return *this;}
113 inline AwsWafRegionalWebAclDetails& WithWebAclId(const char* value) { SetWebAclId(value); return *this;}
115 private:
116
117 Aws::String m_defaultAction;
118 bool m_defaultActionHasBeenSet = false;
119
120 Aws::String m_metricName;
121 bool m_metricNameHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
127 bool m_rulesListHasBeenSet = false;
128
129 Aws::String m_webAclId;
130 bool m_webAclIdHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SecurityHub
135} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRegionalWebAclDetails & WithWebAclId(const Aws::String &value)
AwsWafRegionalWebAclDetails & WithDefaultAction(Aws::String &&value)
AwsWafRegionalWebAclDetails & AddRulesList(AwsWafRegionalWebAclRulesListDetails &&value)
AWS_SECURITYHUB_API AwsWafRegionalWebAclDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafRegionalWebAclDetails & WithDefaultAction(const char *value)
AwsWafRegionalWebAclDetails & WithRulesList(const Aws::Vector< AwsWafRegionalWebAclRulesListDetails > &value)
AwsWafRegionalWebAclDetails & WithName(Aws::String &&value)
AwsWafRegionalWebAclDetails & WithRulesList(Aws::Vector< AwsWafRegionalWebAclRulesListDetails > &&value)
const Aws::Vector< AwsWafRegionalWebAclRulesListDetails > & GetRulesList() const
AwsWafRegionalWebAclDetails & WithDefaultAction(const Aws::String &value)
AwsWafRegionalWebAclDetails & WithMetricName(const Aws::String &value)
AwsWafRegionalWebAclDetails & WithWebAclId(const char *value)
AwsWafRegionalWebAclDetails & WithWebAclId(Aws::String &&value)
AwsWafRegionalWebAclDetails & WithMetricName(Aws::String &&value)
AwsWafRegionalWebAclDetails & WithName(const char *value)
AwsWafRegionalWebAclDetails & WithMetricName(const char *value)
AWS_SECURITYHUB_API AwsWafRegionalWebAclDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafRegionalWebAclDetails & AddRulesList(const AwsWafRegionalWebAclRulesListDetails &value)
void SetRulesList(const Aws::Vector< AwsWafRegionalWebAclRulesListDetails > &value)
void SetRulesList(Aws::Vector< AwsWafRegionalWebAclRulesListDetails > &&value)
AwsWafRegionalWebAclDetails & WithName(const Aws::String &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