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/IPSetUpdate.h

135 lines
4.6 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/waf/WAF_EXPORTS.h>
#include <aws/waf/model/ChangeAction.h>
#include <aws/waf/model/IPSetDescriptor.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 the type of
* update to perform to an <a>IPSet</a> with <a>UpdateIPSet</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/IPSetUpdate">AWS API
* Reference</a></p>
*/
class AWS_WAF_API IPSetUpdate
{
public:
IPSetUpdate();
IPSetUpdate(Aws::Utils::Json::JsonView jsonValue);
IPSetUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies whether to insert or delete an IP address with
* <a>UpdateIPSet</a>.</p>
*/
inline const ChangeAction& GetAction() const{ return m_action; }
/**
* <p>Specifies whether to insert or delete an IP address with
* <a>UpdateIPSet</a>.</p>
*/
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
/**
* <p>Specifies whether to insert or delete an IP address with
* <a>UpdateIPSet</a>.</p>
*/
inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
/**
* <p>Specifies whether to insert or delete an IP address with
* <a>UpdateIPSet</a>.</p>
*/
inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
/**
* <p>Specifies whether to insert or delete an IP address with
* <a>UpdateIPSet</a>.</p>
*/
inline IPSetUpdate& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
/**
* <p>Specifies whether to insert or delete an IP address with
* <a>UpdateIPSet</a>.</p>
*/
inline IPSetUpdate& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
/**
* <p>The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP
* address range (in CIDR notation) that web requests originate from.</p>
*/
inline const IPSetDescriptor& GetIPSetDescriptor() const{ return m_iPSetDescriptor; }
/**
* <p>The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP
* address range (in CIDR notation) that web requests originate from.</p>
*/
inline bool IPSetDescriptorHasBeenSet() const { return m_iPSetDescriptorHasBeenSet; }
/**
* <p>The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP
* address range (in CIDR notation) that web requests originate from.</p>
*/
inline void SetIPSetDescriptor(const IPSetDescriptor& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = value; }
/**
* <p>The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP
* address range (in CIDR notation) that web requests originate from.</p>
*/
inline void SetIPSetDescriptor(IPSetDescriptor&& value) { m_iPSetDescriptorHasBeenSet = true; m_iPSetDescriptor = std::move(value); }
/**
* <p>The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP
* address range (in CIDR notation) that web requests originate from.</p>
*/
inline IPSetUpdate& WithIPSetDescriptor(const IPSetDescriptor& value) { SetIPSetDescriptor(value); return *this;}
/**
* <p>The IP address type (<code>IPV4</code> or <code>IPV6</code>) and the IP
* address range (in CIDR notation) that web requests originate from.</p>
*/
inline IPSetUpdate& WithIPSetDescriptor(IPSetDescriptor&& value) { SetIPSetDescriptor(std::move(value)); return *this;}
private:
ChangeAction m_action;
bool m_actionHasBeenSet;
IPSetDescriptor m_iPSetDescriptor;
bool m_iPSetDescriptorHasBeenSet;
};
} // namespace Model
} // namespace WAF
} // namespace Aws