/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NetworkFirewall { namespace Model { /** *

A list of IP addresses and address ranges, in CIDR notation. This is part of * a RuleVariables.

See Also:

AWS * API Reference

*/ class IPSet { public: AWS_NETWORKFIREWALL_API IPSet(); AWS_NETWORKFIREWALL_API IPSet(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API IPSet& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKFIREWALL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline const Aws::Vector& GetDefinition() const{ return m_definition; } /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline void SetDefinition(const Aws::Vector& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline void SetDefinition(Aws::Vector&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline IPSet& WithDefinition(const Aws::Vector& value) { SetDefinition(value); return *this;} /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline IPSet& WithDefinition(Aws::Vector&& value) { SetDefinition(std::move(value)); return *this;} /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline IPSet& AddDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.push_back(value); return *this; } /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline IPSet& AddDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.push_back(std::move(value)); return *this; } /** *

The list of IP addresses and address ranges, in CIDR notation.

*/ inline IPSet& AddDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.push_back(value); return *this; } private: Aws::Vector m_definition; bool m_definitionHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws