AWS SDK for C++  1.9.104
AWS SDK for C++
AllowAction.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WAFV2
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
51  inline const CustomRequestHandling& GetCustomRequestHandling() const{ return m_customRequestHandling; }
52 
61  inline bool CustomRequestHandlingHasBeenSet() const { return m_customRequestHandlingHasBeenSet; }
62 
71  inline void SetCustomRequestHandling(const CustomRequestHandling& value) { m_customRequestHandlingHasBeenSet = true; m_customRequestHandling = value; }
72 
81  inline void SetCustomRequestHandling(CustomRequestHandling&& value) { m_customRequestHandlingHasBeenSet = true; m_customRequestHandling = std::move(value); }
82 
91  inline AllowAction& WithCustomRequestHandling(const CustomRequestHandling& value) { SetCustomRequestHandling(value); return *this;}
92 
101  inline AllowAction& WithCustomRequestHandling(CustomRequestHandling&& value) { SetCustomRequestHandling(std::move(value)); return *this;}
102 
103  private:
104 
105  CustomRequestHandling m_customRequestHandling;
106  bool m_customRequestHandlingHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace WAFV2
111 } // namespace Aws
Aws::WAFV2::Model::AllowAction::GetCustomRequestHandling
const CustomRequestHandling & GetCustomRequestHandling() const
Definition: AllowAction.h:51
Aws::WAFV2::Model::AllowAction
Definition: AllowAction.h:35
Aws::WAFV2::Model::AllowAction::WithCustomRequestHandling
AllowAction & WithCustomRequestHandling(const CustomRequestHandling &value)
Definition: AllowAction.h:91
Aws::WAFV2::Model::CustomRequestHandling
Definition: CustomRequestHandling.h:40
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
WAFV2_EXPORTS.h
Aws::WAFV2::Model::AllowAction::SetCustomRequestHandling
void SetCustomRequestHandling(const CustomRequestHandling &value)
Definition: AllowAction.h:71
Aws::WAFV2::Model::AllowAction::operator=
AllowAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::AllowAction::SetCustomRequestHandling
void SetCustomRequestHandling(CustomRequestHandling &&value)
Definition: AllowAction.h:81
CustomRequestHandling.h
Aws::WAFV2::Model::AllowAction::CustomRequestHandlingHasBeenSet
bool CustomRequestHandlingHasBeenSet() const
Definition: AllowAction.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::AllowAction::AllowAction
AllowAction(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::AllowAction::WithCustomRequestHandling
AllowAction & WithCustomRequestHandling(CustomRequestHandling &&value)
Definition: AllowAction.h:101
Aws::WAFV2::Model::AllowAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WAFV2::Model::AllowAction::AllowAction
AllowAction()