AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafRuleDetails.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/AwsWafRulePredicateListDetails.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 AwsWafRuleDetails() = default;
38 AWS_SECURITYHUB_API AwsWafRuleDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMetricName() const { return m_metricName; }
48 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 template<typename MetricNameT = Aws::String>
50 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
51 template<typename MetricNameT = Aws::String>
52 AwsWafRuleDetails& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 AwsWafRuleDetails& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
75 inline const Aws::Vector<AwsWafRulePredicateListDetails>& GetPredicateList() const { return m_predicateList; }
76 inline bool PredicateListHasBeenSet() const { return m_predicateListHasBeenSet; }
77 template<typename PredicateListT = Aws::Vector<AwsWafRulePredicateListDetails>>
78 void SetPredicateList(PredicateListT&& value) { m_predicateListHasBeenSet = true; m_predicateList = std::forward<PredicateListT>(value); }
79 template<typename PredicateListT = Aws::Vector<AwsWafRulePredicateListDetails>>
80 AwsWafRuleDetails& WithPredicateList(PredicateListT&& value) { SetPredicateList(std::forward<PredicateListT>(value)); return *this;}
81 template<typename PredicateListT = AwsWafRulePredicateListDetails>
82 AwsWafRuleDetails& AddPredicateList(PredicateListT&& value) { m_predicateListHasBeenSet = true; m_predicateList.emplace_back(std::forward<PredicateListT>(value)); return *this; }
84
86
89 inline const Aws::String& GetRuleId() const { return m_ruleId; }
90 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
91 template<typename RuleIdT = Aws::String>
92 void SetRuleId(RuleIdT&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::forward<RuleIdT>(value); }
93 template<typename RuleIdT = Aws::String>
94 AwsWafRuleDetails& WithRuleId(RuleIdT&& value) { SetRuleId(std::forward<RuleIdT>(value)); return *this;}
96 private:
97
98 Aws::String m_metricName;
99 bool m_metricNameHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
105 bool m_predicateListHasBeenSet = false;
106
107 Aws::String m_ruleId;
108 bool m_ruleIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SecurityHub
113} // namespace Aws
AWS_SECURITYHUB_API AwsWafRuleDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AwsWafRulePredicateListDetails > & GetPredicateList() const
AwsWafRuleDetails & WithPredicateList(PredicateListT &&value)
AwsWafRuleDetails & WithRuleId(RuleIdT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRuleDetails & WithName(NameT &&value)
AWS_SECURITYHUB_API AwsWafRuleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPredicateList(PredicateListT &&value)
AWS_SECURITYHUB_API AwsWafRuleDetails()=default
AwsWafRuleDetails & AddPredicateList(PredicateListT &&value)
AwsWafRuleDetails & 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