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

Violation detail for Network Firewall for a subnet that doesn't have a * Firewall Manager managed firewall in its VPC.

See Also:

AWS * API Reference

*/ class NetworkFirewallMissingFirewallViolation { public: AWS_FMS_API NetworkFirewallMissingFirewallViolation(); AWS_FMS_API NetworkFirewallMissingFirewallViolation(Aws::Utils::Json::JsonView jsonValue); AWS_FMS_API NetworkFirewallMissingFirewallViolation& 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 NetworkFirewallMissingFirewallViolation& WithViolationTarget(const Aws::String& value) { SetViolationTarget(value); return *this;} /** *

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

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

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

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

The resource ID of the VPC associated with a violating subnet.

*/ inline const Aws::String& GetVPC() const{ return m_vPC; } /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline bool VPCHasBeenSet() const { return m_vPCHasBeenSet; } /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline void SetVPC(const Aws::String& value) { m_vPCHasBeenSet = true; m_vPC = value; } /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline void SetVPC(Aws::String&& value) { m_vPCHasBeenSet = true; m_vPC = std::move(value); } /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline void SetVPC(const char* value) { m_vPCHasBeenSet = true; m_vPC.assign(value); } /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline NetworkFirewallMissingFirewallViolation& WithVPC(const Aws::String& value) { SetVPC(value); return *this;} /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline NetworkFirewallMissingFirewallViolation& WithVPC(Aws::String&& value) { SetVPC(std::move(value)); return *this;} /** *

The resource ID of the VPC associated with a violating subnet.

*/ inline NetworkFirewallMissingFirewallViolation& WithVPC(const char* value) { SetVPC(value); return *this;} /** *

The Availability Zone of a violating subnet.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone of a violating subnet.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone of a violating subnet.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone of a violating subnet.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone of a violating subnet.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone of a violating subnet.

*/ inline NetworkFirewallMissingFirewallViolation& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone of a violating subnet.

*/ inline NetworkFirewallMissingFirewallViolation& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone of a violating subnet.

*/ inline NetworkFirewallMissingFirewallViolation& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The reason the resource has this violation, if one is available.

*/ inline const Aws::String& GetTargetViolationReason() const{ return m_targetViolationReason; } /** *

The reason the resource has this violation, if one is available.

*/ inline bool TargetViolationReasonHasBeenSet() const { return m_targetViolationReasonHasBeenSet; } /** *

The reason the resource has this violation, if one is available.

*/ inline void SetTargetViolationReason(const Aws::String& value) { m_targetViolationReasonHasBeenSet = true; m_targetViolationReason = value; } /** *

The reason the resource has this violation, if one is available.

*/ inline void SetTargetViolationReason(Aws::String&& value) { m_targetViolationReasonHasBeenSet = true; m_targetViolationReason = std::move(value); } /** *

The reason the resource has this violation, if one is available.

*/ inline void SetTargetViolationReason(const char* value) { m_targetViolationReasonHasBeenSet = true; m_targetViolationReason.assign(value); } /** *

The reason the resource has this violation, if one is available.

*/ inline NetworkFirewallMissingFirewallViolation& WithTargetViolationReason(const Aws::String& value) { SetTargetViolationReason(value); return *this;} /** *

The reason the resource has this violation, if one is available.

*/ inline NetworkFirewallMissingFirewallViolation& WithTargetViolationReason(Aws::String&& value) { SetTargetViolationReason(std::move(value)); return *this;} /** *

The reason the resource has this violation, if one is available.

*/ inline NetworkFirewallMissingFirewallViolation& WithTargetViolationReason(const char* value) { SetTargetViolationReason(value); return *this;} private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; Aws::String m_vPC; bool m_vPCHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_targetViolationReason; bool m_targetViolationReasonHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws