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

Details of the rule violation in a security group when compared to the master * security group of the AWS Firewall Manager policy.

See Also:

AWS * API Reference

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

The security group rule that is being evaluated.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

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

A description of the security group that violates the policy.

*/ inline AwsVPCSecurityGroupViolation& WithViolationTargetDescription(const char* value) { SetViolationTargetDescription(value); return *this;} /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline const Aws::Vector& GetPartialMatches() const{ return m_partialMatches; } /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline bool PartialMatchesHasBeenSet() const { return m_partialMatchesHasBeenSet; } /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline void SetPartialMatches(const Aws::Vector& value) { m_partialMatchesHasBeenSet = true; m_partialMatches = value; } /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline void SetPartialMatches(Aws::Vector&& value) { m_partialMatchesHasBeenSet = true; m_partialMatches = std::move(value); } /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline AwsVPCSecurityGroupViolation& WithPartialMatches(const Aws::Vector& value) { SetPartialMatches(value); return *this;} /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline AwsVPCSecurityGroupViolation& WithPartialMatches(Aws::Vector&& value) { SetPartialMatches(std::move(value)); return *this;} /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline AwsVPCSecurityGroupViolation& AddPartialMatches(const PartialMatch& value) { m_partialMatchesHasBeenSet = true; m_partialMatches.push_back(value); return *this; } /** *

List of rules specified in the security group of the AWS Firewall Manager * policy that partially match the ViolationTarget rule.

*/ inline AwsVPCSecurityGroupViolation& AddPartialMatches(PartialMatch&& value) { m_partialMatchesHasBeenSet = true; m_partialMatches.push_back(std::move(value)); return *this; } /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline const Aws::Vector& GetPossibleSecurityGroupRemediationActions() const{ return m_possibleSecurityGroupRemediationActions; } /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline bool PossibleSecurityGroupRemediationActionsHasBeenSet() const { return m_possibleSecurityGroupRemediationActionsHasBeenSet; } /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline void SetPossibleSecurityGroupRemediationActions(const Aws::Vector& value) { m_possibleSecurityGroupRemediationActionsHasBeenSet = true; m_possibleSecurityGroupRemediationActions = value; } /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline void SetPossibleSecurityGroupRemediationActions(Aws::Vector&& value) { m_possibleSecurityGroupRemediationActionsHasBeenSet = true; m_possibleSecurityGroupRemediationActions = std::move(value); } /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline AwsVPCSecurityGroupViolation& WithPossibleSecurityGroupRemediationActions(const Aws::Vector& value) { SetPossibleSecurityGroupRemediationActions(value); return *this;} /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline AwsVPCSecurityGroupViolation& WithPossibleSecurityGroupRemediationActions(Aws::Vector&& value) { SetPossibleSecurityGroupRemediationActions(std::move(value)); return *this;} /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline AwsVPCSecurityGroupViolation& AddPossibleSecurityGroupRemediationActions(const SecurityGroupRemediationAction& value) { m_possibleSecurityGroupRemediationActionsHasBeenSet = true; m_possibleSecurityGroupRemediationActions.push_back(value); return *this; } /** *

Remediation options for the rule specified in the * ViolationTarget.

*/ inline AwsVPCSecurityGroupViolation& AddPossibleSecurityGroupRemediationActions(SecurityGroupRemediationAction&& value) { m_possibleSecurityGroupRemediationActionsHasBeenSet = true; m_possibleSecurityGroupRemediationActions.push_back(std::move(value)); return *this; } private: Aws::String m_violationTarget; bool m_violationTargetHasBeenSet; Aws::String m_violationTargetDescription; bool m_violationTargetDescriptionHasBeenSet; Aws::Vector m_partialMatches; bool m_partialMatchesHasBeenSet; Aws::Vector m_possibleSecurityGroupRemediationActions; bool m_possibleSecurityGroupRemediationActionsHasBeenSet; }; } // namespace Model } // namespace FMS } // namespace Aws