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

Summarizes the CIDR blocks used by the IP set references in a firewall. * Network Firewall calculates the number of CIDRs by taking an aggregated count of * all CIDRs used by the IP sets you are referencing.

See Also:

AWS * API Reference

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

The number of CIDR blocks available for use by the IP set references in a * firewall.

*/ inline int GetAvailableCIDRCount() const{ return m_availableCIDRCount; } /** *

The number of CIDR blocks available for use by the IP set references in a * firewall.

*/ inline bool AvailableCIDRCountHasBeenSet() const { return m_availableCIDRCountHasBeenSet; } /** *

The number of CIDR blocks available for use by the IP set references in a * firewall.

*/ inline void SetAvailableCIDRCount(int value) { m_availableCIDRCountHasBeenSet = true; m_availableCIDRCount = value; } /** *

The number of CIDR blocks available for use by the IP set references in a * firewall.

*/ inline CIDRSummary& WithAvailableCIDRCount(int value) { SetAvailableCIDRCount(value); return *this;} /** *

The number of CIDR blocks used by the IP set references in a firewall.

*/ inline int GetUtilizedCIDRCount() const{ return m_utilizedCIDRCount; } /** *

The number of CIDR blocks used by the IP set references in a firewall.

*/ inline bool UtilizedCIDRCountHasBeenSet() const { return m_utilizedCIDRCountHasBeenSet; } /** *

The number of CIDR blocks used by the IP set references in a firewall.

*/ inline void SetUtilizedCIDRCount(int value) { m_utilizedCIDRCountHasBeenSet = true; m_utilizedCIDRCount = value; } /** *

The number of CIDR blocks used by the IP set references in a firewall.

*/ inline CIDRSummary& WithUtilizedCIDRCount(int value) { SetUtilizedCIDRCount(value); return *this;} /** *

The list of the IP set references used by a firewall.

*/ inline const Aws::Map& GetIPSetReferences() const{ return m_iPSetReferences; } /** *

The list of the IP set references used by a firewall.

*/ inline bool IPSetReferencesHasBeenSet() const { return m_iPSetReferencesHasBeenSet; } /** *

The list of the IP set references used by a firewall.

*/ inline void SetIPSetReferences(const Aws::Map& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = value; } /** *

The list of the IP set references used by a firewall.

*/ inline void SetIPSetReferences(Aws::Map&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences = std::move(value); } /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& WithIPSetReferences(const Aws::Map& value) { SetIPSetReferences(value); return *this;} /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& WithIPSetReferences(Aws::Map&& value) { SetIPSetReferences(std::move(value)); return *this;} /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& AddIPSetReferences(const Aws::String& key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; } /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& AddIPSetReferences(Aws::String&& key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), value); return *this; } /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& AddIPSetReferences(const Aws::String& key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; } /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& AddIPSetReferences(Aws::String&& key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(std::move(key), std::move(value)); return *this; } /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& AddIPSetReferences(const char* key, IPSetMetadata&& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, std::move(value)); return *this; } /** *

The list of the IP set references used by a firewall.

*/ inline CIDRSummary& AddIPSetReferences(const char* key, const IPSetMetadata& value) { m_iPSetReferencesHasBeenSet = true; m_iPSetReferences.emplace(key, value); return *this; } private: int m_availableCIDRCount; bool m_availableCIDRCountHasBeenSet = false; int m_utilizedCIDRCount; bool m_utilizedCIDRCountHasBeenSet = false; Aws::Map m_iPSetReferences; bool m_iPSetReferencesHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws