/** * 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 SSM { namespace Model { /** *

A set of rules defining the approval rules for a patch * baseline.

See Also:

AWS * API Reference

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

The rules that make up the rule group.

*/ inline const Aws::Vector& GetPatchRules() const{ return m_patchRules; } /** *

The rules that make up the rule group.

*/ inline bool PatchRulesHasBeenSet() const { return m_patchRulesHasBeenSet; } /** *

The rules that make up the rule group.

*/ inline void SetPatchRules(const Aws::Vector& value) { m_patchRulesHasBeenSet = true; m_patchRules = value; } /** *

The rules that make up the rule group.

*/ inline void SetPatchRules(Aws::Vector&& value) { m_patchRulesHasBeenSet = true; m_patchRules = std::move(value); } /** *

The rules that make up the rule group.

*/ inline PatchRuleGroup& WithPatchRules(const Aws::Vector& value) { SetPatchRules(value); return *this;} /** *

The rules that make up the rule group.

*/ inline PatchRuleGroup& WithPatchRules(Aws::Vector&& value) { SetPatchRules(std::move(value)); return *this;} /** *

The rules that make up the rule group.

*/ inline PatchRuleGroup& AddPatchRules(const PatchRule& value) { m_patchRulesHasBeenSet = true; m_patchRules.push_back(value); return *this; } /** *

The rules that make up the rule group.

*/ inline PatchRuleGroup& AddPatchRules(PatchRule&& value) { m_patchRulesHasBeenSet = true; m_patchRules.push_back(std::move(value)); return *this; } private: Aws::Vector m_patchRules; bool m_patchRulesHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws