/** * 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 EC2 instance resource.

See Also:

AWS * API Reference

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

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::Vector& GetAwsEc2NetworkInterfaceViolations() const{ return m_awsEc2NetworkInterfaceViolations; } /** *

Violation 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::Vector& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations = value; } /** *

Violation detail for network interfaces associated with the EC2 instance.

*/ inline void SetAwsEc2NetworkInterfaceViolations(Aws::Vector&& value) { m_awsEc2NetworkInterfaceViolationsHasBeenSet = true; m_awsEc2NetworkInterfaceViolations = std::move(value); } /** *

Violation detail for network interfaces associated with the EC2 instance.

*/ inline AwsEc2InstanceViolation& WithAwsEc2NetworkInterfaceViolations(const Aws::Vector& value) { SetAwsEc2NetworkInterfaceViolations(value); return *this;} /** *

Violation detail for network interfaces associated with the EC2 instance.

*/ inline AwsEc2InstanceViolation& WithAwsEc2NetworkInterfaceViolations(Aws::Vector&& value) { SetAwsEc2NetworkInterfaceViolations(std::move(value)); return *this;} /** *

Violation 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 m_awsEc2NetworkInterfaceViolations; bool m_awsEc2NetworkInterfaceViolationsHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws