AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RuleActionOverride.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
42 {
43 public:
44 AWS_WAFV2_API RuleActionOverride() = default;
47 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 RuleActionOverride& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
70 inline const RuleAction& GetActionToUse() const { return m_actionToUse; }
71 inline bool ActionToUseHasBeenSet() const { return m_actionToUseHasBeenSet; }
72 template<typename ActionToUseT = RuleAction>
73 void SetActionToUse(ActionToUseT&& value) { m_actionToUseHasBeenSet = true; m_actionToUse = std::forward<ActionToUseT>(value); }
74 template<typename ActionToUseT = RuleAction>
75 RuleActionOverride& WithActionToUse(ActionToUseT&& value) { SetActionToUse(std::forward<ActionToUseT>(value)); return *this;}
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 RuleAction m_actionToUse;
83 bool m_actionToUseHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace WAFV2
88} // namespace Aws
RuleActionOverride & WithActionToUse(ActionToUseT &&value)
RuleActionOverride & WithName(NameT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActionToUse(ActionToUseT &&value)
const Aws::String & GetName() const
AWS_WAFV2_API RuleActionOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API RuleActionOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API RuleActionOverride()=default
const RuleAction & GetActionToUse() const
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