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
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-waf/include/aws/waf/model/RuleUpdate.h

142 lines
4.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf/WAF_EXPORTS.h>
#include <aws/waf/model/ChangeAction.h>
#include <aws/waf/model/Predicate.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAF
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>Specifies a
* <code>Predicate</code> (such as an <code>IPSet</code>) and indicates whether you
* want to add it to a <code>Rule</code> or delete it from a
* <code>Rule</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/RuleUpdate">AWS API
* Reference</a></p>
*/
class AWS_WAF_API RuleUpdate
{
public:
RuleUpdate();
RuleUpdate(Aws::Utils::Json::JsonView jsonValue);
RuleUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specify <code>INSERT</code> to add a <code>Predicate</code> to a
* <code>Rule</code>. Use <code>DELETE</code> to remove a <code>Predicate</code>
* from a <code>Rule</code>.</p>
*/
inline const ChangeAction& GetAction() const{ return m_action; }
/**
* <p>Specify <code>INSERT</code> to add a <code>Predicate</code> to a
* <code>Rule</code>. Use <code>DELETE</code> to remove a <code>Predicate</code>
* from a <code>Rule</code>.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>Specify <code>INSERT</code> to add a <code>Predicate</code> to a
* <code>Rule</code>. Use <code>DELETE</code> to remove a <code>Predicate</code>
* from a <code>Rule</code>.</p>
*/
inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>Specify <code>INSERT</code> to add a <code>Predicate</code> to a
* <code>Rule</code>. Use <code>DELETE</code> to remove a <code>Predicate</code>
* from a <code>Rule</code>.</p>
*/
inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>Specify <code>INSERT</code> to add a <code>Predicate</code> to a
* <code>Rule</code>. Use <code>DELETE</code> to remove a <code>Predicate</code>
* from a <code>Rule</code>.</p>
*/
inline RuleUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
/**
* <p>Specify <code>INSERT</code> to add a <code>Predicate</code> to a
* <code>Rule</code>. Use <code>DELETE</code> to remove a <code>Predicate</code>
* from a <code>Rule</code>.</p>
*/
inline RuleUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>The ID of the <code>Predicate</code> (such as an <code>IPSet</code>) that you
* want to add to a <code>Rule</code>.</p>
*/
inline const Predicate& GetPredicate() const{ return m_predicate; }
/**
* <p>The ID of the <code>Predicate</code> (such as an <code>IPSet</code>) that you
* want to add to a <code>Rule</code>.</p>
*/
inline bool PredicateHasBeenSet() const { return m_predicateHasBeenSet; }
/**
* <p>The ID of the <code>Predicate</code> (such as an <code>IPSet</code>) that you
* want to add to a <code>Rule</code>.</p>
*/
inline void SetPredicate(const Predicate& value) { m_predicateHasBeenSet = true; m_predicate = value; }
/**
* <p>The ID of the <code>Predicate</code> (such as an <code>IPSet</code>) that you
* want to add to a <code>Rule</code>.</p>
*/
inline void SetPredicate(Predicate&& value) { m_predicateHasBeenSet = true; m_predicate = std::move(value); }
/**
* <p>The ID of the <code>Predicate</code> (such as an <code>IPSet</code>) that you
* want to add to a <code>Rule</code>.</p>
*/
inline RuleUpdate& WithPredicate(const Predicate& value) { SetPredicate(value); return *this;}
/**
* <p>The ID of the <code>Predicate</code> (such as an <code>IPSet</code>) that you
* want to add to a <code>Rule</code>.</p>
*/
inline RuleUpdate& WithPredicate(Predicate&& value) { SetPredicate(std::move(value)); return *this;}
private:
ChangeAction m_action;
bool m_actionHasBeenSet;
Predicate m_predicate;
bool m_predicateHasBeenSet;
};
} // namespace Model
} // namespace WAF
} // namespace Aws