AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PatchRuleGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/PatchRule.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSM {
21namespace Model {
22
30 public:
31 AWS_SSM_API PatchRuleGroup() = default;
35
37
40 inline const Aws::Vector<PatchRule>& GetPatchRules() const { return m_patchRules; }
41 inline bool PatchRulesHasBeenSet() const { return m_patchRulesHasBeenSet; }
42 template <typename PatchRulesT = Aws::Vector<PatchRule>>
43 void SetPatchRules(PatchRulesT&& value) {
44 m_patchRulesHasBeenSet = true;
45 m_patchRules = std::forward<PatchRulesT>(value);
46 }
47 template <typename PatchRulesT = Aws::Vector<PatchRule>>
48 PatchRuleGroup& WithPatchRules(PatchRulesT&& value) {
49 SetPatchRules(std::forward<PatchRulesT>(value));
50 return *this;
51 }
52 template <typename PatchRulesT = PatchRule>
53 PatchRuleGroup& AddPatchRules(PatchRulesT&& value) {
54 m_patchRulesHasBeenSet = true;
55 m_patchRules.emplace_back(std::forward<PatchRulesT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<PatchRule> m_patchRules;
61 bool m_patchRulesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace SSM
66} // 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