AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 RuleSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
63 inline const RuleAction& GetAction() const { return m_action; }
64 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
65 template<typename ActionT = RuleAction>
66 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
67 template<typename ActionT = RuleAction>
68 RuleSummary& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
70 private:
71
72 Aws::String m_name;
73 bool m_nameHasBeenSet = false;
74
75 RuleAction m_action;
76 bool m_actionHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace WAFV2
81} // namespace Aws
AWS_WAFV2_API RuleSummary()=default
void SetName(NameT &&value)
Definition RuleSummary.h:52
const Aws::String & GetName() const
Definition RuleSummary.h:49
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:54
void SetAction(ActionT &&value)
Definition RuleSummary.h:66
const RuleAction & GetAction() const
Definition RuleSummary.h:63
AWS_WAFV2_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithAction(ActionT &&value)
Definition RuleSummary.h:68
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue