AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WafAction.h
1
6#pragma once
7#include <aws/waf-regional/WAFRegional_EXPORTS.h>
8#include <aws/waf-regional/model/WafActionType.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFRegional
22{
23namespace Model
24{
25
44 {
45 public:
46 AWS_WAFREGIONAL_API WafAction();
47 AWS_WAFREGIONAL_API WafAction(Aws::Utils::Json::JsonView jsonValue);
48 AWS_WAFREGIONAL_API WafAction& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
64 inline const WafActionType& GetType() const{ return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(const WafActionType& value) { m_typeHasBeenSet = true; m_type = value; }
67 inline void SetType(WafActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 inline WafAction& WithType(const WafActionType& value) { SetType(value); return *this;}
69 inline WafAction& WithType(WafActionType&& value) { SetType(std::move(value)); return *this;}
71 private:
72
73 WafActionType m_type;
74 bool m_typeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace WAFRegional
79} // namespace Aws
void SetType(const WafActionType &value)
Definition WafAction.h:66
AWS_WAFREGIONAL_API WafAction(Aws::Utils::Json::JsonView jsonValue)
WafAction & WithType(const WafActionType &value)
Definition WafAction.h:68
AWS_WAFREGIONAL_API WafAction()
AWS_WAFREGIONAL_API Aws::Utils::Json::JsonValue Jsonize() const
const WafActionType & GetType() const
Definition WafAction.h:64
WafAction & WithType(WafActionType &&value)
Definition WafAction.h:69
AWS_WAFREGIONAL_API WafAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(WafActionType &&value)
Definition WafAction.h:67
Aws::Utils::Json::JsonValue JsonValue