/** * 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 expected route missing in Network * Firewall.

See Also:

AWS * API Reference

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

The target of the violation.

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

The target of the violation.

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

The target of the violation.

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

The target of the violation.

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

The target of the violation.

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

The target of the violation.

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

The target of the violation.

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

The target of the violation.

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

The expected routes.

*/ inline const Aws::Vector& GetExpectedRoutes() const{ return m_expectedRoutes; } /** *

The expected routes.

*/ inline bool ExpectedRoutesHasBeenSet() const { return m_expectedRoutesHasBeenSet; } /** *

The expected routes.

*/ inline void SetExpectedRoutes(const Aws::Vector& value) { m_expectedRoutesHasBeenSet = true; m_expectedRoutes = value; } /** *

The expected routes.

*/ inline void SetExpectedRoutes(Aws::Vector&& value) { m_expectedRoutesHasBeenSet = true; m_expectedRoutes = std::move(value); } /** *

The expected routes.

*/ inline NetworkFirewallMissingExpectedRoutesViolation& WithExpectedRoutes(const Aws::Vector& value) { SetExpectedRoutes(value); return *this;} /** *

The expected routes.

*/ inline NetworkFirewallMissingExpectedRoutesViolation& WithExpectedRoutes(Aws::Vector&& value) { SetExpectedRoutes(std::move(value)); return *this;} /** *

The expected routes.

*/ inline NetworkFirewallMissingExpectedRoutesViolation& AddExpectedRoutes(const ExpectedRoute& value) { m_expectedRoutesHasBeenSet = true; m_expectedRoutes.push_back(value); return *this; } /** *

The expected routes.

*/ inline NetworkFirewallMissingExpectedRoutesViolation& AddExpectedRoutes(ExpectedRoute&& value) { m_expectedRoutesHasBeenSet = true; m_expectedRoutes.push_back(std::move(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 NetworkFirewallMissingExpectedRoutesViolation& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

Information about the VPC ID.

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

Information about the VPC ID.

*/ inline NetworkFirewallMissingExpectedRoutesViolation& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; Aws::Vector m_expectedRoutes; bool m_expectedRoutesHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws