/** * 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 FMS { namespace Model { /** *

Contains the Network Firewall firewall policy options to configure the * policy's deployment model and third-party firewall policy * settings.

See Also:

AWS * API Reference

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

Defines the deployment model to use for the firewall policy.

*/ inline const NetworkFirewallPolicy& GetNetworkFirewallPolicy() const{ return m_networkFirewallPolicy; } /** *

Defines the deployment model to use for the firewall policy.

*/ inline bool NetworkFirewallPolicyHasBeenSet() const { return m_networkFirewallPolicyHasBeenSet; } /** *

Defines the deployment model to use for the firewall policy.

*/ inline void SetNetworkFirewallPolicy(const NetworkFirewallPolicy& value) { m_networkFirewallPolicyHasBeenSet = true; m_networkFirewallPolicy = value; } /** *

Defines the deployment model to use for the firewall policy.

*/ inline void SetNetworkFirewallPolicy(NetworkFirewallPolicy&& value) { m_networkFirewallPolicyHasBeenSet = true; m_networkFirewallPolicy = std::move(value); } /** *

Defines the deployment model to use for the firewall policy.

*/ inline PolicyOption& WithNetworkFirewallPolicy(const NetworkFirewallPolicy& value) { SetNetworkFirewallPolicy(value); return *this;} /** *

Defines the deployment model to use for the firewall policy.

*/ inline PolicyOption& WithNetworkFirewallPolicy(NetworkFirewallPolicy&& value) { SetNetworkFirewallPolicy(std::move(value)); return *this;} /** *

Defines the policy options for a third-party firewall policy.

*/ inline const ThirdPartyFirewallPolicy& GetThirdPartyFirewallPolicy() const{ return m_thirdPartyFirewallPolicy; } /** *

Defines the policy options for a third-party firewall policy.

*/ inline bool ThirdPartyFirewallPolicyHasBeenSet() const { return m_thirdPartyFirewallPolicyHasBeenSet; } /** *

Defines the policy options for a third-party firewall policy.

*/ inline void SetThirdPartyFirewallPolicy(const ThirdPartyFirewallPolicy& value) { m_thirdPartyFirewallPolicyHasBeenSet = true; m_thirdPartyFirewallPolicy = value; } /** *

Defines the policy options for a third-party firewall policy.

*/ inline void SetThirdPartyFirewallPolicy(ThirdPartyFirewallPolicy&& value) { m_thirdPartyFirewallPolicyHasBeenSet = true; m_thirdPartyFirewallPolicy = std::move(value); } /** *

Defines the policy options for a third-party firewall policy.

*/ inline PolicyOption& WithThirdPartyFirewallPolicy(const ThirdPartyFirewallPolicy& value) { SetThirdPartyFirewallPolicy(value); return *this;} /** *

Defines the policy options for a third-party firewall policy.

*/ inline PolicyOption& WithThirdPartyFirewallPolicy(ThirdPartyFirewallPolicy&& value) { SetThirdPartyFirewallPolicy(std::move(value)); return *this;} private: NetworkFirewallPolicy m_networkFirewallPolicy; bool m_networkFirewallPolicyHasBeenSet = false; ThirdPartyFirewallPolicy m_thirdPartyFirewallPolicy; bool m_thirdPartyFirewallPolicyHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws