/** * 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 interfaces associated with an EC2 * instance.

See Also:

AWS * API Reference

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

The resource ID of the network interface.

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

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline const Aws::Vector& GetViolatingSecurityGroups() const{ return m_violatingSecurityGroups; } /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline bool ViolatingSecurityGroupsHasBeenSet() const { return m_violatingSecurityGroupsHasBeenSet; } /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline void SetViolatingSecurityGroups(const Aws::Vector& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups = value; } /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline void SetViolatingSecurityGroups(Aws::Vector&& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups = std::move(value); } /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline AwsEc2NetworkInterfaceViolation& WithViolatingSecurityGroups(const Aws::Vector& value) { SetViolatingSecurityGroups(value); return *this;} /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline AwsEc2NetworkInterfaceViolation& WithViolatingSecurityGroups(Aws::Vector&& value) { SetViolatingSecurityGroups(std::move(value)); return *this;} /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline AwsEc2NetworkInterfaceViolation& AddViolatingSecurityGroups(const Aws::String& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups.push_back(value); return *this; } /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline AwsEc2NetworkInterfaceViolation& AddViolatingSecurityGroups(Aws::String&& value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups.push_back(std::move(value)); return *this; } /** *

List of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.

*/ inline AwsEc2NetworkInterfaceViolation& AddViolatingSecurityGroups(const char* value) { m_violatingSecurityGroupsHasBeenSet = true; m_violatingSecurityGroups.push_back(value); return *this; } private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; Aws::Vector m_violatingSecurityGroups; bool m_violatingSecurityGroupsHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws