/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Violation detail for network interfaces associated with an EC2
* instance.See Also:
AWS
* API Reference
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::VectorList 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::VectorList of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.
*/ inline void SetViolatingSecurityGroups(Aws::VectorList of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.
*/ inline AwsEc2NetworkInterfaceViolation& WithViolatingSecurityGroups(const Aws::VectorList of security groups that violate the rules specified in the primary * security group of the Firewall Manager policy.
*/ inline AwsEc2NetworkInterfaceViolation& WithViolatingSecurityGroups(Aws::VectorList 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