AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/model/RuleAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_WAFV2_API RuleSummary();
40 AWS_WAFV2_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline RuleSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline RuleSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline RuleSummary& WithName(const char* value) { SetName(value); return *this;}
58
60
65 inline const RuleAction& GetAction() const{ return m_action; }
66 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
67 inline void SetAction(const RuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
68 inline void SetAction(RuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
69 inline RuleSummary& WithAction(const RuleAction& value) { SetAction(value); return *this;}
70 inline RuleSummary& WithAction(RuleAction&& value) { SetAction(std::move(value)); return *this;}
72 private:
73
74 Aws::String m_name;
75 bool m_nameHasBeenSet = false;
76
77 RuleAction m_action;
78 bool m_actionHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace WAFV2
83} // namespace Aws
const Aws::String & GetName() const
Definition RuleSummary.h:49
RuleSummary & WithAction(const RuleAction &value)
Definition RuleSummary.h:69
void SetName(const Aws::String &value)
Definition RuleSummary.h:51
void SetAction(const RuleAction &value)
Definition RuleSummary.h:67
const RuleAction & GetAction() const
Definition RuleSummary.h:65
AWS_WAFV2_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithName(const char *value)
Definition RuleSummary.h:56
void SetName(const char *value)
Definition RuleSummary.h:53
RuleSummary & WithName(const Aws::String &value)
Definition RuleSummary.h:54
AWS_WAFV2_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithName(Aws::String &&value)
Definition RuleSummary.h:55
RuleSummary & WithAction(RuleAction &&value)
Definition RuleSummary.h:70
void SetAction(RuleAction &&value)
Definition RuleSummary.h:68
void SetName(Aws::String &&value)
Definition RuleSummary.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue