This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

146 lines
6.8 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/securityhub/SecurityHub_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SecurityHub
{
namespace Model
{
/**
* <p>Details about the action that CloudFront or AWS WAF takes when a web request
* matches the conditions in the rule. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/WafAction">AWS
* API Reference</a></p>
*/
class AWS_SECURITYHUB_API WafAction
{
public:
WafAction();
WafAction(Aws::Utils::Json::JsonView jsonValue);
WafAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline WafAction& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline WafAction& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Specifies how you want AWS WAF to respond to requests that match the settings
* in a rule.</p> <p>Valid settings include the following:</p> <ul> <li> <p>
* <code>ALLOW</code> - AWS WAF allows requests</p> </li> <li> <p>
* <code>BLOCK</code> - AWS WAF blocks requests</p> </li> <li> <p>
* <code>COUNT</code> - AWS WAF increments a counter of the requests that match all
* of the conditions in the rule. AWS WAF then continues to inspect the web request
* based on the remaining rules in the web ACL. You can't specify
* <code>COUNT</code> for the default action for a WebACL.</p> </li> </ul>
*/
inline WafAction& WithType(const char* value) { SetType(value); return *this;}
private:
Aws::String m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace SecurityHub
} // namespace Aws