/** * 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 { /** *

Violation detail for Network Firewall for a firewall policy that has a * different NetworkFirewallPolicyDescription than is required by the * Firewall Manager policy.

See Also:

AWS * API Reference

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

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline const Aws::String& GetViolationTarget() const{ return m_violationTarget; } /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline bool ViolationTargetHasBeenSet() const { return m_violationTargetHasBeenSet; } /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline void SetViolationTarget(const Aws::String& value) { m_violationTargetHasBeenSet = true; m_violationTarget = value; } /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline void SetViolationTarget(Aws::String&& value) { m_violationTargetHasBeenSet = true; m_violationTarget = std::move(value); } /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline void SetViolationTarget(const char* value) { m_violationTargetHasBeenSet = true; m_violationTarget.assign(value); } /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline NetworkFirewallPolicyModifiedViolation& WithViolationTarget(const Aws::String& value) { SetViolationTarget(value); return *this;} /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline NetworkFirewallPolicyModifiedViolation& WithViolationTarget(Aws::String&& value) { SetViolationTarget(std::move(value)); return *this;} /** *

The ID of the Network Firewall or VPC resource that's in violation.

*/ inline NetworkFirewallPolicyModifiedViolation& WithViolationTarget(const char* value) { SetViolationTarget(value); return *this;} /** *

The policy that's currently in use in the individual account.

*/ inline const NetworkFirewallPolicyDescription& GetCurrentPolicyDescription() const{ return m_currentPolicyDescription; } /** *

The policy that's currently in use in the individual account.

*/ inline bool CurrentPolicyDescriptionHasBeenSet() const { return m_currentPolicyDescriptionHasBeenSet; } /** *

The policy that's currently in use in the individual account.

*/ inline void SetCurrentPolicyDescription(const NetworkFirewallPolicyDescription& value) { m_currentPolicyDescriptionHasBeenSet = true; m_currentPolicyDescription = value; } /** *

The policy that's currently in use in the individual account.

*/ inline void SetCurrentPolicyDescription(NetworkFirewallPolicyDescription&& value) { m_currentPolicyDescriptionHasBeenSet = true; m_currentPolicyDescription = std::move(value); } /** *

The policy that's currently in use in the individual account.

*/ inline NetworkFirewallPolicyModifiedViolation& WithCurrentPolicyDescription(const NetworkFirewallPolicyDescription& value) { SetCurrentPolicyDescription(value); return *this;} /** *

The policy that's currently in use in the individual account.

*/ inline NetworkFirewallPolicyModifiedViolation& WithCurrentPolicyDescription(NetworkFirewallPolicyDescription&& value) { SetCurrentPolicyDescription(std::move(value)); return *this;} /** *

The policy that should be in use in the individual account in order to be * compliant.

*/ inline const NetworkFirewallPolicyDescription& GetExpectedPolicyDescription() const{ return m_expectedPolicyDescription; } /** *

The policy that should be in use in the individual account in order to be * compliant.

*/ inline bool ExpectedPolicyDescriptionHasBeenSet() const { return m_expectedPolicyDescriptionHasBeenSet; } /** *

The policy that should be in use in the individual account in order to be * compliant.

*/ inline void SetExpectedPolicyDescription(const NetworkFirewallPolicyDescription& value) { m_expectedPolicyDescriptionHasBeenSet = true; m_expectedPolicyDescription = value; } /** *

The policy that should be in use in the individual account in order to be * compliant.

*/ inline void SetExpectedPolicyDescription(NetworkFirewallPolicyDescription&& value) { m_expectedPolicyDescriptionHasBeenSet = true; m_expectedPolicyDescription = std::move(value); } /** *

The policy that should be in use in the individual account in order to be * compliant.

*/ inline NetworkFirewallPolicyModifiedViolation& WithExpectedPolicyDescription(const NetworkFirewallPolicyDescription& value) { SetExpectedPolicyDescription(value); return *this;} /** *

The policy that should be in use in the individual account in order to be * compliant.

*/ inline NetworkFirewallPolicyModifiedViolation& WithExpectedPolicyDescription(NetworkFirewallPolicyDescription&& value) { SetExpectedPolicyDescription(std::move(value)); return *this;} private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; NetworkFirewallPolicyDescription m_currentPolicyDescription; bool m_currentPolicyDescriptionHasBeenSet = false; NetworkFirewallPolicyDescription m_expectedPolicyDescription; bool m_expectedPolicyDescriptionHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws