AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsWafv2ActionBlockDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/AwsWafv2CustomResponseDetails.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 SecurityHub
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_SECURITYHUB_API AwsWafv2ActionBlockDetails() = default;
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const AwsWafv2CustomResponseDetails& GetCustomResponse() const { return m_customResponse; }
49 inline bool CustomResponseHasBeenSet() const { return m_customResponseHasBeenSet; }
50 template<typename CustomResponseT = AwsWafv2CustomResponseDetails>
51 void SetCustomResponse(CustomResponseT&& value) { m_customResponseHasBeenSet = true; m_customResponse = std::forward<CustomResponseT>(value); }
52 template<typename CustomResponseT = AwsWafv2CustomResponseDetails>
53 AwsWafv2ActionBlockDetails& WithCustomResponse(CustomResponseT&& value) { SetCustomResponse(std::forward<CustomResponseT>(value)); return *this;}
55 private:
56
57 AwsWafv2CustomResponseDetails m_customResponse;
58 bool m_customResponseHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace SecurityHub
63} // namespace Aws
AWS_SECURITYHUB_API AwsWafv2ActionBlockDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsWafv2ActionBlockDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsWafv2ActionBlockDetails()=default
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsWafv2ActionBlockDetails & WithCustomResponse(CustomResponseT &&value)
const AwsWafv2CustomResponseDetails & GetCustomResponse() const
Aws::Utils::Json::JsonValue JsonValue