AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EffectivePatch.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/model/Patch.h>
9#include <aws/ssm/model/PatchStatus.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
38 {
39 public:
40 AWS_SSM_API EffectivePatch() = default;
44
45
47
52 inline const Patch& GetPatch() const { return m_patch; }
53 inline bool PatchHasBeenSet() const { return m_patchHasBeenSet; }
54 template<typename PatchT = Patch>
55 void SetPatch(PatchT&& value) { m_patchHasBeenSet = true; m_patch = std::forward<PatchT>(value); }
56 template<typename PatchT = Patch>
57 EffectivePatch& WithPatch(PatchT&& value) { SetPatch(std::forward<PatchT>(value)); return *this;}
59
61
67 inline const PatchStatus& GetPatchStatus() const { return m_patchStatus; }
68 inline bool PatchStatusHasBeenSet() const { return m_patchStatusHasBeenSet; }
69 template<typename PatchStatusT = PatchStatus>
70 void SetPatchStatus(PatchStatusT&& value) { m_patchStatusHasBeenSet = true; m_patchStatus = std::forward<PatchStatusT>(value); }
71 template<typename PatchStatusT = PatchStatus>
72 EffectivePatch& WithPatchStatus(PatchStatusT&& value) { SetPatchStatus(std::forward<PatchStatusT>(value)); return *this;}
74 private:
75
76 Patch m_patch;
77 bool m_patchHasBeenSet = false;
78
79 PatchStatus m_patchStatus;
80 bool m_patchStatusHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace SSM
85} // namespace Aws
AWS_SSM_API EffectivePatch()=default
AWS_SSM_API EffectivePatch(Aws::Utils::Json::JsonView jsonValue)
void SetPatch(PatchT &&value)
const Patch & GetPatch() const
EffectivePatch & WithPatch(PatchT &&value)
const PatchStatus & GetPatchStatus() const
void SetPatchStatus(PatchStatusT &&value)
EffectivePatch & WithPatchStatus(PatchStatusT &&value)
AWS_SSM_API EffectivePatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue