AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
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
34 public:
35 AWS_SSM_API EffectivePatch() = default;
39
41
46 inline const Patch& GetPatch() const { return m_patch; }
47 inline bool PatchHasBeenSet() const { return m_patchHasBeenSet; }
48 template <typename PatchT = Patch>
49 void SetPatch(PatchT&& value) {
50 m_patchHasBeenSet = true;
51 m_patch = std::forward<PatchT>(value);
52 }
53 template <typename PatchT = Patch>
54 EffectivePatch& WithPatch(PatchT&& value) {
55 SetPatch(std::forward<PatchT>(value));
56 return *this;
57 }
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) {
71 m_patchStatusHasBeenSet = true;
72 m_patchStatus = std::forward<PatchStatusT>(value);
73 }
74 template <typename PatchStatusT = PatchStatus>
75 EffectivePatch& WithPatchStatus(PatchStatusT&& value) {
76 SetPatchStatus(std::forward<PatchStatusT>(value));
77 return *this;
78 }
80 private:
81 Patch m_patch;
82
83 PatchStatus m_patchStatus;
84 bool m_patchHasBeenSet = false;
85 bool m_patchStatusHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace SSM
90} // 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