AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 AwsWafRuleDetails& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
53 inline AwsWafRuleDetails& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
54 inline AwsWafRuleDetails& 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 AwsWafRuleDetails& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline AwsWafRuleDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline AwsWafRuleDetails& WithName(const char* value) { SetName(value); return *this;}
70
72
79 inline const Aws::Vector<AwsWafRulePredicateListDetails>& GetPredicateList() const{ return m_predicateList; }
80 inline bool PredicateListHasBeenSet() const { return m_predicateListHasBeenSet; }
81 inline void SetPredicateList(const Aws::Vector<AwsWafRulePredicateListDetails>& value) { m_predicateListHasBeenSet = true; m_predicateList = value; }
82 inline void SetPredicateList(Aws::Vector<AwsWafRulePredicateListDetails>&& value) { m_predicateListHasBeenSet = true; m_predicateList = std::move(value); }
85 inline AwsWafRuleDetails& AddPredicateList(const AwsWafRulePredicateListDetails& value) { m_predicateListHasBeenSet = true; m_predicateList.push_back(value); return *this; }
86 inline AwsWafRuleDetails& AddPredicateList(AwsWafRulePredicateListDetails&& 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 AwsWafRuleDetails& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;}
99 inline AwsWafRuleDetails& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;}
100 inline AwsWafRuleDetails& 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
AwsWafRuleDetails & WithMetricName(Aws::String &&value)
void SetName(const Aws::String &value)
AWS_SECURITYHUB_API AwsWafRuleDetails(Aws::Utils::Json::JsonView jsonValue)
void SetPredicateList(const Aws::Vector< AwsWafRulePredicateListDetails > &value)
AwsWafRuleDetails & WithMetricName(const char *value)
AwsWafRuleDetails & WithMetricName(const Aws::String &value)
AwsWafRuleDetails & WithPredicateList(const Aws::Vector< AwsWafRulePredicateListDetails > &value)
const Aws::Vector< AwsWafRulePredicateListDetails > & GetPredicateList() const
AwsWafRuleDetails & WithName(const char *value)
AwsWafRuleDetails & AddPredicateList(AwsWafRulePredicateListDetails &&value)
AwsWafRuleDetails & AddPredicateList(const AwsWafRulePredicateListDetails &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafRuleDetails & WithRuleId(Aws::String &&value)
void SetMetricName(const Aws::String &value)
AwsWafRuleDetails & WithRuleId(const Aws::String &value)
AwsWafRuleDetails & WithRuleId(const char *value)
AWS_SECURITYHUB_API AwsWafRuleDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsWafRuleDetails & WithName(const Aws::String &value)
AwsWafRuleDetails & WithPredicateList(Aws::Vector< AwsWafRulePredicateListDetails > &&value)
void SetPredicateList(Aws::Vector< AwsWafRulePredicateListDetails > &&value)
AwsWafRuleDetails & WithName(Aws::String &&value)
void SetRuleId(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