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

A destination IP address or range.

See Also:

AWS * API Reference

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

An IP address or a block of IP addresses.

*/ inline const Aws::String& GetAddressDefinition() const{ return m_addressDefinition; } /** *

An IP address or a block of IP addresses.

*/ inline bool AddressDefinitionHasBeenSet() const { return m_addressDefinitionHasBeenSet; } /** *

An IP address or a block of IP addresses.

*/ inline void SetAddressDefinition(const Aws::String& value) { m_addressDefinitionHasBeenSet = true; m_addressDefinition = value; } /** *

An IP address or a block of IP addresses.

*/ inline void SetAddressDefinition(Aws::String&& value) { m_addressDefinitionHasBeenSet = true; m_addressDefinition = std::move(value); } /** *

An IP address or a block of IP addresses.

*/ inline void SetAddressDefinition(const char* value) { m_addressDefinitionHasBeenSet = true; m_addressDefinition.assign(value); } /** *

An IP address or a block of IP addresses.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesDestinations& WithAddressDefinition(const Aws::String& value) { SetAddressDefinition(value); return *this;} /** *

An IP address or a block of IP addresses.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesDestinations& WithAddressDefinition(Aws::String&& value) { SetAddressDefinition(std::move(value)); return *this;} /** *

An IP address or a block of IP addresses.

*/ inline RuleGroupSourceStatelessRuleMatchAttributesDestinations& WithAddressDefinition(const char* value) { SetAddressDefinition(value); return *this;} private: Aws::String m_addressDefinition; bool m_addressDefinitionHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws