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

Violation detail for an unexpected route that's present in a route * table.

See Also:

AWS * API Reference

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

The subnet ID for the firewall.

*/ inline const Aws::String& GetFirewallSubnetId() const{ return m_firewallSubnetId; } /** *

The subnet ID for the firewall.

*/ inline bool FirewallSubnetIdHasBeenSet() const { return m_firewallSubnetIdHasBeenSet; } /** *

The subnet ID for the firewall.

*/ inline void SetFirewallSubnetId(const Aws::String& value) { m_firewallSubnetIdHasBeenSet = true; m_firewallSubnetId = value; } /** *

The subnet ID for the firewall.

*/ inline void SetFirewallSubnetId(Aws::String&& value) { m_firewallSubnetIdHasBeenSet = true; m_firewallSubnetId = std::move(value); } /** *

The subnet ID for the firewall.

*/ inline void SetFirewallSubnetId(const char* value) { m_firewallSubnetIdHasBeenSet = true; m_firewallSubnetId.assign(value); } /** *

The subnet ID for the firewall.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithFirewallSubnetId(const Aws::String& value) { SetFirewallSubnetId(value); return *this;} /** *

The subnet ID for the firewall.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithFirewallSubnetId(Aws::String&& value) { SetFirewallSubnetId(std::move(value)); return *this;} /** *

The subnet ID for the firewall.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithFirewallSubnetId(const char* value) { SetFirewallSubnetId(value); return *this;} /** *

The routes that are in violation.

*/ inline const Aws::Vector& GetViolatingRoutes() const{ return m_violatingRoutes; } /** *

The routes that are in violation.

*/ inline bool ViolatingRoutesHasBeenSet() const { return m_violatingRoutesHasBeenSet; } /** *

The routes that are in violation.

*/ inline void SetViolatingRoutes(const Aws::Vector& value) { m_violatingRoutesHasBeenSet = true; m_violatingRoutes = value; } /** *

The routes that are in violation.

*/ inline void SetViolatingRoutes(Aws::Vector&& value) { m_violatingRoutesHasBeenSet = true; m_violatingRoutes = std::move(value); } /** *

The routes that are in violation.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithViolatingRoutes(const Aws::Vector& value) { SetViolatingRoutes(value); return *this;} /** *

The routes that are in violation.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithViolatingRoutes(Aws::Vector&& value) { SetViolatingRoutes(std::move(value)); return *this;} /** *

The routes that are in violation.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& AddViolatingRoutes(const Route& value) { m_violatingRoutesHasBeenSet = true; m_violatingRoutes.push_back(value); return *this; } /** *

The routes that are in violation.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& AddViolatingRoutes(Route&& value) { m_violatingRoutesHasBeenSet = true; m_violatingRoutes.push_back(std::move(value)); return *this; } /** *

The ID of the route table.

*/ inline const Aws::String& GetRouteTableId() const{ return m_routeTableId; } /** *

The ID of the route table.

*/ inline bool RouteTableIdHasBeenSet() const { return m_routeTableIdHasBeenSet; } /** *

The ID of the route table.

*/ inline void SetRouteTableId(const Aws::String& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = value; } /** *

The ID of the route table.

*/ inline void SetRouteTableId(Aws::String&& value) { m_routeTableIdHasBeenSet = true; m_routeTableId = std::move(value); } /** *

The ID of the route table.

*/ inline void SetRouteTableId(const char* value) { m_routeTableIdHasBeenSet = true; m_routeTableId.assign(value); } /** *

The ID of the route table.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithRouteTableId(const Aws::String& value) { SetRouteTableId(value); return *this;} /** *

The ID of the route table.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithRouteTableId(Aws::String&& value) { SetRouteTableId(std::move(value)); return *this;} /** *

The ID of the route table.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithRouteTableId(const char* value) { SetRouteTableId(value); return *this;} /** *

The endpoint of the firewall.

*/ inline const Aws::String& GetFirewallEndpoint() const{ return m_firewallEndpoint; } /** *

The endpoint of the firewall.

*/ inline bool FirewallEndpointHasBeenSet() const { return m_firewallEndpointHasBeenSet; } /** *

The endpoint of the firewall.

*/ inline void SetFirewallEndpoint(const Aws::String& value) { m_firewallEndpointHasBeenSet = true; m_firewallEndpoint = value; } /** *

The endpoint of the firewall.

*/ inline void SetFirewallEndpoint(Aws::String&& value) { m_firewallEndpointHasBeenSet = true; m_firewallEndpoint = std::move(value); } /** *

The endpoint of the firewall.

*/ inline void SetFirewallEndpoint(const char* value) { m_firewallEndpointHasBeenSet = true; m_firewallEndpoint.assign(value); } /** *

The endpoint of the firewall.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithFirewallEndpoint(const Aws::String& value) { SetFirewallEndpoint(value); return *this;} /** *

The endpoint of the firewall.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithFirewallEndpoint(Aws::String&& value) { SetFirewallEndpoint(std::move(value)); return *this;} /** *

The endpoint of the firewall.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithFirewallEndpoint(const char* value) { SetFirewallEndpoint(value); return *this;} /** *

Information about the VPC ID.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

Information about the VPC ID.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

Information about the VPC ID.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

Information about the VPC ID.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

Information about the VPC ID.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

Information about the VPC ID.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

Information about the VPC ID.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

Information about the VPC ID.

*/ inline NetworkFirewallUnexpectedFirewallRoutesViolation& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::String m_firewallSubnetId; bool m_firewallSubnetIdHasBeenSet = false; Aws::Vector m_violatingRoutes; bool m_violatingRoutesHasBeenSet = false; Aws::String m_routeTableId; bool m_routeTableIdHasBeenSet = false; Aws::String m_firewallEndpoint; bool m_firewallEndpointHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws