AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PatchRuleGroup.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/model/PatchRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSM_API PatchRuleGroup() = default;
40
41
43
46 inline const Aws::Vector<PatchRule>& GetPatchRules() const { return m_patchRules; }
47 inline bool PatchRulesHasBeenSet() const { return m_patchRulesHasBeenSet; }
48 template<typename PatchRulesT = Aws::Vector<PatchRule>>
49 void SetPatchRules(PatchRulesT&& value) { m_patchRulesHasBeenSet = true; m_patchRules = std::forward<PatchRulesT>(value); }
50 template<typename PatchRulesT = Aws::Vector<PatchRule>>
51 PatchRuleGroup& WithPatchRules(PatchRulesT&& value) { SetPatchRules(std::forward<PatchRulesT>(value)); return *this;}
52 template<typename PatchRulesT = PatchRule>
53 PatchRuleGroup& AddPatchRules(PatchRulesT&& value) { m_patchRulesHasBeenSet = true; m_patchRules.emplace_back(std::forward<PatchRulesT>(value)); return *this; }
55 private:
56
57 Aws::Vector<PatchRule> m_patchRules;
58 bool m_patchRulesHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace SSM
63} // namespace Aws
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
PatchRuleGroup & WithPatchRules(PatchRulesT &&value)
AWS_SSM_API PatchRuleGroup()=default
PatchRuleGroup & AddPatchRules(PatchRulesT &&value)
void SetPatchRules(PatchRulesT &&value)
const Aws::Vector< PatchRule > & GetPatchRules() const
AWS_SSM_API PatchRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API PatchRuleGroup(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue