/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The VPC that Firewall Manager was applying a DNS Fireall policy to reached
* the limit for associated DNS Firewall rule groups. Firewall Manager tried to
* associate another rule group with the VPC and failed due to the limit.
* See Also:
AWS
* API Reference
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 DnsRuleGroupLimitExceededViolation& WithViolationTarget(const Aws::String& value) { SetViolationTarget(value); return *this;} /** *Information about the VPC ID.
*/ inline DnsRuleGroupLimitExceededViolation& WithViolationTarget(Aws::String&& value) { SetViolationTarget(std::move(value)); return *this;} /** *Information about the VPC ID.
*/ inline DnsRuleGroupLimitExceededViolation& 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 DnsRuleGroupLimitExceededViolation& WithViolationTargetDescription(const Aws::String& value) { SetViolationTargetDescription(value); return *this;} /** *A description of the violation that specifies the rule group and VPC.
*/ inline DnsRuleGroupLimitExceededViolation& WithViolationTargetDescription(Aws::String&& value) { SetViolationTargetDescription(std::move(value)); return *this;} /** *A description of the violation that specifies the rule group and VPC.
*/ inline DnsRuleGroupLimitExceededViolation& WithViolationTargetDescription(const char* value) { SetViolationTargetDescription(value); return *this;} /** *The number of rule groups currently associated with the VPC.
*/ inline int GetNumberOfRuleGroupsAlreadyAssociated() const{ return m_numberOfRuleGroupsAlreadyAssociated; } /** *The number of rule groups currently associated with the VPC.
*/ inline bool NumberOfRuleGroupsAlreadyAssociatedHasBeenSet() const { return m_numberOfRuleGroupsAlreadyAssociatedHasBeenSet; } /** *The number of rule groups currently associated with the VPC.
*/ inline void SetNumberOfRuleGroupsAlreadyAssociated(int value) { m_numberOfRuleGroupsAlreadyAssociatedHasBeenSet = true; m_numberOfRuleGroupsAlreadyAssociated = value; } /** *The number of rule groups currently associated with the VPC.
*/ inline DnsRuleGroupLimitExceededViolation& WithNumberOfRuleGroupsAlreadyAssociated(int value) { SetNumberOfRuleGroupsAlreadyAssociated(value); return *this;} private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet = false; Aws::String m_violationTargetDescription; bool m_violationTargetDescriptionHasBeenSet = false; int m_numberOfRuleGroupsAlreadyAssociated; bool m_numberOfRuleGroupsAlreadyAssociatedHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws