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

The reference rule that partially matches the ViolationTarget * rule and violation reason.

See Also:

AWS * API Reference

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

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline const Aws::String& GetReference() const{ return m_reference; } /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; } /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline void SetReference(const Aws::String& value) { m_referenceHasBeenSet = true; m_reference = value; } /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline void SetReference(Aws::String&& value) { m_referenceHasBeenSet = true; m_reference = std::move(value); } /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline void SetReference(const char* value) { m_referenceHasBeenSet = true; m_reference.assign(value); } /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline PartialMatch& WithReference(const Aws::String& value) { SetReference(value); return *this;} /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline PartialMatch& WithReference(Aws::String&& value) { SetReference(std::move(value)); return *this;} /** *

The reference rule from the primary security group of the Firewall Manager * policy.

*/ inline PartialMatch& WithReference(const char* value) { SetReference(value); return *this;} /** *

The violation reason.

*/ inline const Aws::Vector& GetTargetViolationReasons() const{ return m_targetViolationReasons; } /** *

The violation reason.

*/ inline bool TargetViolationReasonsHasBeenSet() const { return m_targetViolationReasonsHasBeenSet; } /** *

The violation reason.

*/ inline void SetTargetViolationReasons(const Aws::Vector& value) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons = value; } /** *

The violation reason.

*/ inline void SetTargetViolationReasons(Aws::Vector&& value) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons = std::move(value); } /** *

The violation reason.

*/ inline PartialMatch& WithTargetViolationReasons(const Aws::Vector& value) { SetTargetViolationReasons(value); return *this;} /** *

The violation reason.

*/ inline PartialMatch& WithTargetViolationReasons(Aws::Vector&& value) { SetTargetViolationReasons(std::move(value)); return *this;} /** *

The violation reason.

*/ inline PartialMatch& AddTargetViolationReasons(const Aws::String& value) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons.push_back(value); return *this; } /** *

The violation reason.

*/ inline PartialMatch& AddTargetViolationReasons(Aws::String&& value) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons.push_back(std::move(value)); return *this; } /** *

The violation reason.

*/ inline PartialMatch& AddTargetViolationReasons(const char* value) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons.push_back(value); return *this; } private: Aws::String m_reference; bool m_referenceHasBeenSet = false; Aws::Vector m_targetViolationReasons; bool m_targetViolationReasonsHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws