AWS SDK for C++  1.9.108
AWS SDK for C++
RuleSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace WAFV2
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline RuleSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline RuleSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
83  inline RuleSummary& WithName(const char* value) { SetName(value); return *this;}
84 
85 
91  inline const RuleAction& GetAction() const{ return m_action; }
92 
98  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
99 
105  inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
106 
112  inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
113 
119  inline RuleSummary& WithAction(const RuleAction& value) { SetAction(value); return *this;}
120 
126  inline RuleSummary& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
127 
128  private:
129 
130  Aws::String m_name;
131  bool m_nameHasBeenSet;
132 
133  RuleAction m_action;
134  bool m_actionHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace WAFV2
139 } // namespace Aws
Aws::WAFV2::Model::RuleSummary::RuleSummary
RuleSummary()
Aws::WAFV2::Model::RuleSummary::operator=
RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::RuleSummary::WithAction
RuleSummary & WithAction(RuleAction &&value)
Definition: RuleSummary.h:126
RuleAction.h
Aws::WAFV2::Model::RuleSummary::SetName
void SetName(const char *value)
Definition: RuleSummary.h:68
Aws::WAFV2::Model::RuleAction
Definition: RuleAction.h:36
Aws::WAFV2::Model::RuleSummary::SetName
void SetName(Aws::String &&value)
Definition: RuleSummary.h:63
Aws::WAFV2::Model::RuleSummary::WithName
RuleSummary & WithName(const Aws::String &value)
Definition: RuleSummary.h:73
Aws::WAFV2::Model::RuleSummary::SetAction
void SetAction(const RuleAction &value)
Definition: RuleSummary.h:105
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::RuleSummary::WithName
RuleSummary & WithName(const char *value)
Definition: RuleSummary.h:83
Aws::WAFV2::Model::RuleSummary::GetAction
const RuleAction & GetAction() const
Definition: RuleSummary.h:91
WAFV2_EXPORTS.h
Aws::WAFV2::Model::RuleSummary::SetName
void SetName(const Aws::String &value)
Definition: RuleSummary.h:58
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::WAFV2::Model::RuleSummary
Definition: RuleSummary.h:37
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::RuleSummary::WithAction
RuleSummary & WithAction(const RuleAction &value)
Definition: RuleSummary.h:119
Aws::WAFV2::Model::RuleSummary::WithName
RuleSummary & WithName(Aws::String &&value)
Definition: RuleSummary.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::RuleSummary::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: RuleSummary.h:98
Aws::WAFV2::Model::RuleSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::RuleSummary::SetAction
void SetAction(RuleAction &&value)
Definition: RuleSummary.h:112
Aws::WAFV2::Model::RuleSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RuleSummary.h:53
Aws::WAFV2::Model::RuleSummary::GetName
const Aws::String & GetName() const
Definition: RuleSummary.h:48
Aws::WAFV2::Model::RuleSummary::RuleSummary
RuleSummary(Aws::Utils::Json::JsonView jsonValue)