/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Violation detail for an EC2 instance resource.See Also:
AWS
* API Reference
The resource ID of the EC2 instance.
*/ inline const Aws::String& GetViolationTarget() const{ return m_violationTarget; } /** *The resource ID of the EC2 instance.
*/ inline bool ViolationTargetHasBeenSet() const { return m_violationTargetHasBeenSet; } /** *The resource ID of the EC2 instance.
*/ inline void SetViolationTarget(const Aws::String& value) { m_violationTargetHasBeenSet = true; m_violationTarget = value; } /** *The resource ID of the EC2 instance.
*/ inline void SetViolationTarget(Aws::String&& value) { m_violationTargetHasBeenSet = true; m_violationTarget = std::move(value); } /** *The resource ID of the EC2 instance.
*/ inline void SetViolationTarget(const char* value) { m_violationTargetHasBeenSet = true; m_violationTarget.assign(value); } /** *The resource ID of the EC2 instance.
*/ inline AwsEc2InstanceViolation& WithViolationTarget(const Aws::String& value) { SetViolationTarget(value); return *this;} /** *The resource ID of the EC2 instance.
*/ inline AwsEc2InstanceViolation& WithViolationTarget(Aws::String&& value) { SetViolationTarget(std::move(value)); return *this;} /** *The resource ID of the EC2 instance.
*/ inline AwsEc2InstanceViolation& WithViolationTarget(const char* value) { SetViolationTarget(value); return *this;} /** *Violation detail for network interfaces associated with the EC2 instance.
*/ inline const Aws::VectorViolation detail for network interfaces associated with the EC2 instance.
*/ inline bool AwsEc2NetworkInterfaceViolationsHasBeenSet() const { return m_awsEc2NetworkInterfaceViolationsHasBeenSet; } /** *Violation detail for network interfaces associated with the EC2 instance.
*/ inline void SetAwsEc2NetworkInterfaceViolations(const Aws::VectorViolation detail for network interfaces associated with the EC2 instance.
*/ inline void SetAwsEc2NetworkInterfaceViolations(Aws::VectorViolation detail for network interfaces associated with the EC2 instance.
*/ inline AwsEc2InstanceViolation& WithAwsEc2NetworkInterfaceViolations(const Aws::VectorViolation detail for network interfaces associated with the EC2 instance.
*/ inline AwsEc2InstanceViolation& WithAwsEc2NetworkInterfaceViolations(Aws::VectorViolation detail for network interfaces associated with the EC2 instance.
*/ inline AwsEc2InstanceViolation& AddAwsEc2NetworkInterfaceViolations(const AwsEc2NetworkInterfaceViolation& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations.push_back(value); return *this; } /** *Violation detail for network interfaces associated with the EC2 instance.
*/ inline AwsEc2InstanceViolation& AddAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation&& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations.push_back(std::move(value)); return *this; } private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; Aws::Vector