AWS SDK for C++

AWS SDK for C++ Version 1.11.932

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2_EXPORTS.h>
9#include <aws/wafv2/model/RuleAction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
33 public:
34 AWS_WAFV2_API RuleSummary() = default;
35 AWS_WAFV2_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 RuleSummary& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
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) {
67 m_actionHasBeenSet = true;
68 m_action = std::forward<ActionT>(value);
69 }
70 template <typename ActionT = RuleAction>
71 RuleSummary& WithAction(ActionT&& value) {
72 SetAction(std::forward<ActionT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_name;
78
79 RuleAction m_action;
80 bool m_nameHasBeenSet = false;
81 bool m_actionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace WAFV2
86} // namespace Aws
AWS_WAFV2_API RuleSummary()=default
void SetName(NameT &&value)
Definition RuleSummary.h:46
const Aws::String & GetName() const
Definition RuleSummary.h:43
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:51
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:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue