AWS SDK for C++  1.9.107
AWS SDK for C++
RuleGroupReferenceStatement.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace WAFV2
24 {
25 namespace Model
26 {
27 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetARN() const{ return m_aRN; }
52 
56  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
57 
61  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
62 
66  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
67 
71  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
72 
76  inline RuleGroupReferenceStatement& WithARN(const Aws::String& value) { SetARN(value); return *this;}
77 
81  inline RuleGroupReferenceStatement& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
82 
86  inline RuleGroupReferenceStatement& WithARN(const char* value) { SetARN(value); return *this;}
87 
88 
93  inline const Aws::Vector<ExcludedRule>& GetExcludedRules() const{ return m_excludedRules; }
94 
99  inline bool ExcludedRulesHasBeenSet() const { return m_excludedRulesHasBeenSet; }
100 
105  inline void SetExcludedRules(const Aws::Vector<ExcludedRule>& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = value; }
106 
111  inline void SetExcludedRules(Aws::Vector<ExcludedRule>&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules = std::move(value); }
112 
117  inline RuleGroupReferenceStatement& WithExcludedRules(const Aws::Vector<ExcludedRule>& value) { SetExcludedRules(value); return *this;}
118 
123  inline RuleGroupReferenceStatement& WithExcludedRules(Aws::Vector<ExcludedRule>&& value) { SetExcludedRules(std::move(value)); return *this;}
124 
129  inline RuleGroupReferenceStatement& AddExcludedRules(const ExcludedRule& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(value); return *this; }
130 
135  inline RuleGroupReferenceStatement& AddExcludedRules(ExcludedRule&& value) { m_excludedRulesHasBeenSet = true; m_excludedRules.push_back(std::move(value)); return *this; }
136 
137  private:
138 
139  Aws::String m_aRN;
140  bool m_aRNHasBeenSet;
141 
142  Aws::Vector<ExcludedRule> m_excludedRules;
143  bool m_excludedRulesHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace WAFV2
148 } // namespace Aws
Aws::WAFV2::Model::ExcludedRule
Definition: ExcludedRule.h:35
Aws::WAFV2::Model::RuleGroupReferenceStatement::WithARN
RuleGroupReferenceStatement & WithARN(Aws::String &&value)
Definition: RuleGroupReferenceStatement.h:81
Aws::WAFV2::Model::RuleGroupReferenceStatement::GetExcludedRules
const Aws::Vector< ExcludedRule > & GetExcludedRules() const
Definition: RuleGroupReferenceStatement.h:93
Aws::WAFV2::Model::RuleGroupReferenceStatement::SetExcludedRules
void SetExcludedRules(const Aws::Vector< ExcludedRule > &value)
Definition: RuleGroupReferenceStatement.h:105
Aws::WAFV2::Model::RuleGroupReferenceStatement::GetARN
const Aws::String & GetARN() const
Definition: RuleGroupReferenceStatement.h:51
Aws::WAFV2::Model::RuleGroupReferenceStatement::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: RuleGroupReferenceStatement.h:56
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::RuleGroupReferenceStatement::operator=
RuleGroupReferenceStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RuleGroupReferenceStatement::AddExcludedRules
RuleGroupReferenceStatement & AddExcludedRules(const ExcludedRule &value)
Definition: RuleGroupReferenceStatement.h:129
AWSVector.h
Aws::WAFV2::Model::RuleGroupReferenceStatement::ExcludedRulesHasBeenSet
bool ExcludedRulesHasBeenSet() const
Definition: RuleGroupReferenceStatement.h:99
Aws::WAFV2::Model::RuleGroupReferenceStatement::AddExcludedRules
RuleGroupReferenceStatement & AddExcludedRules(ExcludedRule &&value)
Definition: RuleGroupReferenceStatement.h:135
WAFV2_EXPORTS.h
Aws::WAFV2::Model::RuleGroupReferenceStatement::RuleGroupReferenceStatement
RuleGroupReferenceStatement(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RuleGroupReferenceStatement::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::RuleGroupReferenceStatement::WithExcludedRules
RuleGroupReferenceStatement & WithExcludedRules(Aws::Vector< ExcludedRule > &&value)
Definition: RuleGroupReferenceStatement.h:123
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::RuleGroupReferenceStatement::SetARN
void SetARN(const Aws::String &value)
Definition: RuleGroupReferenceStatement.h:61
Aws::WAFV2::Model::RuleGroupReferenceStatement::SetARN
void SetARN(Aws::String &&value)
Definition: RuleGroupReferenceStatement.h:66
ExcludedRule.h
Aws::WAFV2::Model::RuleGroupReferenceStatement::WithARN
RuleGroupReferenceStatement & WithARN(const Aws::String &value)
Definition: RuleGroupReferenceStatement.h:76
Aws::WAFV2::Model::RuleGroupReferenceStatement::WithExcludedRules
RuleGroupReferenceStatement & WithExcludedRules(const Aws::Vector< ExcludedRule > &value)
Definition: RuleGroupReferenceStatement.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::RuleGroupReferenceStatement::SetARN
void SetARN(const char *value)
Definition: RuleGroupReferenceStatement.h:71
Aws::WAFV2::Model::RuleGroupReferenceStatement
Definition: RuleGroupReferenceStatement.h:40
Aws::WAFV2::Model::RuleGroupReferenceStatement::SetExcludedRules
void SetExcludedRules(Aws::Vector< ExcludedRule > &&value)
Definition: RuleGroupReferenceStatement.h:111
Aws::WAFV2::Model::RuleGroupReferenceStatement::RuleGroupReferenceStatement
RuleGroupReferenceStatement()
Aws::WAFV2::Model::RuleGroupReferenceStatement::WithARN
RuleGroupReferenceStatement & WithARN(const char *value)
Definition: RuleGroupReferenceStatement.h:86