AWS SDK for C++  1.9.104
AWS SDK for C++
BlockAction.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 CustomResponse& GetCustomResponse() const{ return m_customResponse; }
52 
61  inline bool CustomResponseHasBeenSet() const { return m_customResponseHasBeenSet; }
62 
71  inline void SetCustomResponse(const CustomResponse& value) { m_customResponseHasBeenSet = true; m_customResponse = value; }
72 
81  inline void SetCustomResponse(CustomResponse&& value) { m_customResponseHasBeenSet = true; m_customResponse = std::move(value); }
82 
91  inline BlockAction& WithCustomResponse(const CustomResponse& value) { SetCustomResponse(value); return *this;}
92 
101  inline BlockAction& WithCustomResponse(CustomResponse&& value) { SetCustomResponse(std::move(value)); return *this;}
102 
103  private:
104 
105  CustomResponse m_customResponse;
106  bool m_customResponseHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace WAFV2
111 } // namespace Aws
Aws::WAFV2::Model::BlockAction
Definition: BlockAction.h:35
Aws::WAFV2::Model::BlockAction::operator=
BlockAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WAFV2::Model::BlockAction::GetCustomResponse
const CustomResponse & GetCustomResponse() const
Definition: BlockAction.h:51
CustomResponse.h
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::BlockAction::CustomResponseHasBeenSet
bool CustomResponseHasBeenSet() const
Definition: BlockAction.h:61
Aws::WAFV2::Model::BlockAction::BlockAction
BlockAction(Aws::Utils::Json::JsonView jsonValue)
WAFV2_EXPORTS.h
Aws::WAFV2::Model::BlockAction::BlockAction
BlockAction()
Aws::WAFV2::Model::BlockAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WAFV2::Model::CustomResponse
Definition: CustomResponse.h:40
Aws::WAFV2::Model::BlockAction::SetCustomResponse
void SetCustomResponse(const CustomResponse &value)
Definition: BlockAction.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::BlockAction::WithCustomResponse
BlockAction & WithCustomResponse(CustomResponse &&value)
Definition: BlockAction.h:101
Aws::WAFV2::Model::BlockAction::WithCustomResponse
BlockAction & WithCustomResponse(const CustomResponse &value)
Definition: BlockAction.h:91
Aws::WAFV2::Model::BlockAction::SetCustomResponse
void SetCustomResponse(CustomResponse &&value)
Definition: BlockAction.h:81