AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsWafRegionalRuleDetails.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/AwsWafRegionalRulePredicateListDetails.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 AwsWafRegionalRuleDetails();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
50 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
51 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
52 inline AwsWafRegionalRuleDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
53 inline AwsWafRegionalRuleDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
54 inline AwsWafRegionalRuleDetails& WithMetricName(const char* value) { SetMetricName(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline AwsWafRegionalRuleDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline AwsWafRegionalRuleDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline AwsWafRegionalRuleDetails& WithName(const char* value) { SetName(value); return *this;}
70
72
79 inline const Aws::Vector<AwsWafRegionalRulePredicateListDetails>& GetPredicateList() const{ return m_predicateList; }
80 inline bool PredicateListHasBeenSet() const { return m_predicateListHasBeenSet; }
81 inline void SetPredicateList(const Aws::Vector<AwsWafRegionalRulePredicateListDetails>& value) { m_predicateListHasBeenSet = true; m_predicateList = value; }
82 inline void SetPredicateList(Aws::Vector<AwsWafRegionalRulePredicateListDetails>&& value) { m_predicateListHasBeenSet = true; m_predicateList = std::move(value); }
85 inline AwsWafRegionalRuleDetails& AddPredicateList(const AwsWafRegionalRulePredicateListDetails& value) { m_predicateListHasBeenSet = true; m_predicateList.push_back(value); return *this; }
86 inline AwsWafRegionalRuleDetails& AddPredicateList(AwsWafRegionalRulePredicateListDetails&& value) { m_predicateListHasBeenSet = true; m_predicateList.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::String& GetRuleId() const{ return m_ruleId; }
94 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
95 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; }
96 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); }
97 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); }
98 inline AwsWafRegionalRuleDetails& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
99 inline AwsWafRegionalRuleDetails& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
100 inline AwsWafRegionalRuleDetails& WithRuleId(const char* value) { SetRuleId(value); return *this;}
102 private:
103
104 Aws::String m_metricName;
105 bool m_metricNameHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
111 bool m_predicateListHasBeenSet = false;
112
113 Aws::String m_ruleId;
114 bool m_ruleIdHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace SecurityHub
119} // namespace Aws
AwsWafRegionalRuleDetails & WithMetricName(const Aws::String &value)
AWS_SECURITYHUB_API AwsWafRegionalRuleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPredicateList(Aws::Vector< AwsWafRegionalRulePredicateListDetails > &&value)
const Aws::Vector< AwsWafRegionalRulePredicateListDetails > & GetPredicateList() const
AwsWafRegionalRuleDetails & WithMetricName(const char *value)
AwsWafRegionalRuleDetails & AddPredicateList(const AwsWafRegionalRulePredicateListDetails &value)
AwsWafRegionalRuleDetails & WithMetricName(Aws::String &&value)
AwsWafRegionalRuleDetails & WithPredicateList(const Aws::Vector< AwsWafRegionalRulePredicateListDetails > &value)
AWS_SECURITYHUB_API AwsWafRegionalRuleDetails(Aws::Utils::Json::JsonView jsonValue)
AwsWafRegionalRuleDetails & WithName(Aws::String &&value)
AwsWafRegionalRuleDetails & WithPredicateList(Aws::Vector< AwsWafRegionalRulePredicateListDetails > &&value)
void SetPredicateList(const Aws::Vector< AwsWafRegionalRulePredicateListDetails > &value)
AwsWafRegionalRuleDetails & AddPredicateList(AwsWafRegionalRulePredicateListDetails &&value)
AwsWafRegionalRuleDetails & WithName(const char *value)
AwsWafRegionalRuleDetails & WithRuleId(const char *value)
AwsWafRegionalRuleDetails & WithRuleId(Aws::String &&value)
AwsWafRegionalRuleDetails & WithName(const Aws::String &value)
AwsWafRegionalRuleDetails & WithRuleId(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue