/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FMS { namespace Model { /** *

A DNS Firewall rule group that Firewall Manager tried to associate with a VPC * is already associated with the VPC and can't be associated again.

See * Also:

AWS * API Reference

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

Information about the VPC ID.

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

Information about the VPC ID.

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

Information about the VPC ID.

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

Information about the VPC ID.

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

Information about the VPC ID.

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

Information about the VPC ID.

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

Information about the VPC ID.

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

Information about the VPC ID.

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

A description of the violation that specifies the rule group and VPC.

*/ inline const Aws::String& GetViolationTargetDescription() const{ return m_violationTargetDescription; } /** *

A description of the violation that specifies the rule group and VPC.

*/ inline bool ViolationTargetDescriptionHasBeenSet() const { return m_violationTargetDescriptionHasBeenSet; } /** *

A description of the violation that specifies the rule group and VPC.

*/ inline void SetViolationTargetDescription(const Aws::String& value) { m_violationTargetDescriptionHasBeenSet = true; m_violationTargetDescription = value; } /** *

A description of the violation that specifies the rule group and VPC.

*/ inline void SetViolationTargetDescription(Aws::String&& value) { m_violationTargetDescriptionHasBeenSet = true; m_violationTargetDescription = std::move(value); } /** *

A description of the violation that specifies the rule group and VPC.

*/ inline void SetViolationTargetDescription(const char* value) { m_violationTargetDescriptionHasBeenSet = true; m_violationTargetDescription.assign(value); } /** *

A description of the violation that specifies the rule group and VPC.

*/ inline DnsDuplicateRuleGroupViolation& WithViolationTargetDescription(const Aws::String& value) { SetViolationTargetDescription(value); return *this;} /** *

A description of the violation that specifies the rule group and VPC.

*/ inline DnsDuplicateRuleGroupViolation& WithViolationTargetDescription(Aws::String&& value) { SetViolationTargetDescription(std::move(value)); return *this;} /** *

A description of the violation that specifies the rule group and VPC.

*/ inline DnsDuplicateRuleGroupViolation& WithViolationTargetDescription(const char* value) { SetViolationTargetDescription(value); return *this;} private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; Aws::String m_violationTargetDescription; bool m_violationTargetDescriptionHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws