AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const Aws::Vector<PatchRule>& GetPatchRules() const{ return m_patchRules; }
47 inline bool PatchRulesHasBeenSet() const { return m_patchRulesHasBeenSet; }
48 inline void SetPatchRules(const Aws::Vector<PatchRule>& value) { m_patchRulesHasBeenSet = true; m_patchRules = value; }
49 inline void SetPatchRules(Aws::Vector<PatchRule>&& value) { m_patchRulesHasBeenSet = true; m_patchRules = std::move(value); }
50 inline PatchRuleGroup& WithPatchRules(const Aws::Vector<PatchRule>& value) { SetPatchRules(value); return *this;}
51 inline PatchRuleGroup& WithPatchRules(Aws::Vector<PatchRule>&& value) { SetPatchRules(std::move(value)); return *this;}
52 inline PatchRuleGroup& AddPatchRules(const PatchRule& value) { m_patchRulesHasBeenSet = true; m_patchRules.push_back(value); return *this; }
53 inline PatchRuleGroup& AddPatchRules(PatchRule&& value) { m_patchRulesHasBeenSet = true; m_patchRules.push_back(std::move(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
void SetPatchRules(const Aws::Vector< PatchRule > &value)
PatchRuleGroup & AddPatchRules(PatchRule &&value)
PatchRuleGroup & AddPatchRules(const PatchRule &value)
PatchRuleGroup & WithPatchRules(const Aws::Vector< PatchRule > &value)
PatchRuleGroup & WithPatchRules(Aws::Vector< PatchRule > &&value)
const Aws::Vector< PatchRule > & GetPatchRules() const
AWS_SSM_API PatchRuleGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPatchRules(Aws::Vector< PatchRule > &&value)
AWS_SSM_API PatchRuleGroup(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue