AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PatchComplianceData.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/PatchComplianceDataState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
32 public:
33 AWS_SSM_API PatchComplianceData() = default;
37
39
42 inline const Aws::String& GetTitle() const { return m_title; }
43 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
44 template <typename TitleT = Aws::String>
45 void SetTitle(TitleT&& value) {
46 m_titleHasBeenSet = true;
47 m_title = std::forward<TitleT>(value);
48 }
49 template <typename TitleT = Aws::String>
50 PatchComplianceData& WithTitle(TitleT&& value) {
51 SetTitle(std::forward<TitleT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetKBId() const { return m_kBId; }
61 inline bool KBIdHasBeenSet() const { return m_kBIdHasBeenSet; }
62 template <typename KBIdT = Aws::String>
63 void SetKBId(KBIdT&& value) {
64 m_kBIdHasBeenSet = true;
65 m_kBId = std::forward<KBIdT>(value);
66 }
67 template <typename KBIdT = Aws::String>
68 PatchComplianceData& WithKBId(KBIdT&& value) {
69 SetKBId(std::forward<KBIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetClassification() const { return m_classification; }
80 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
81 template <typename ClassificationT = Aws::String>
82 void SetClassification(ClassificationT&& value) {
83 m_classificationHasBeenSet = true;
84 m_classification = std::forward<ClassificationT>(value);
85 }
86 template <typename ClassificationT = Aws::String>
87 PatchComplianceData& WithClassification(ClassificationT&& value) {
88 SetClassification(std::forward<ClassificationT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetSeverity() const { return m_severity; }
99 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
100 template <typename SeverityT = Aws::String>
101 void SetSeverity(SeverityT&& value) {
102 m_severityHasBeenSet = true;
103 m_severity = std::forward<SeverityT>(value);
104 }
105 template <typename SeverityT = Aws::String>
106 PatchComplianceData& WithSeverity(SeverityT&& value) {
107 SetSeverity(std::forward<SeverityT>(value));
108 return *this;
109 }
111
113
120 inline PatchComplianceDataState GetState() const { return m_state; }
121 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
123 m_stateHasBeenSet = true;
124 m_state = value;
125 }
127 SetState(value);
128 return *this;
129 }
131
133
137 inline const Aws::Utils::DateTime& GetInstalledTime() const { return m_installedTime; }
138 inline bool InstalledTimeHasBeenSet() const { return m_installedTimeHasBeenSet; }
139 template <typename InstalledTimeT = Aws::Utils::DateTime>
140 void SetInstalledTime(InstalledTimeT&& value) {
141 m_installedTimeHasBeenSet = true;
142 m_installedTime = std::forward<InstalledTimeT>(value);
143 }
144 template <typename InstalledTimeT = Aws::Utils::DateTime>
145 PatchComplianceData& WithInstalledTime(InstalledTimeT&& value) {
146 SetInstalledTime(std::forward<InstalledTimeT>(value));
147 return *this;
148 }
150
152
158 inline const Aws::String& GetCVEIds() const { return m_cVEIds; }
159 inline bool CVEIdsHasBeenSet() const { return m_cVEIdsHasBeenSet; }
160 template <typename CVEIdsT = Aws::String>
161 void SetCVEIds(CVEIdsT&& value) {
162 m_cVEIdsHasBeenSet = true;
163 m_cVEIds = std::forward<CVEIdsT>(value);
164 }
165 template <typename CVEIdsT = Aws::String>
166 PatchComplianceData& WithCVEIds(CVEIdsT&& value) {
167 SetCVEIds(std::forward<CVEIdsT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_title;
173
174 Aws::String m_kBId;
175
176 Aws::String m_classification;
177
178 Aws::String m_severity;
179
181
182 Aws::Utils::DateTime m_installedTime{};
183
184 Aws::String m_cVEIds;
185 bool m_titleHasBeenSet = false;
186 bool m_kBIdHasBeenSet = false;
187 bool m_classificationHasBeenSet = false;
188 bool m_severityHasBeenSet = false;
189 bool m_stateHasBeenSet = false;
190 bool m_installedTimeHasBeenSet = false;
191 bool m_cVEIdsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace SSM
196} // namespace Aws
const Aws::String & GetKBId() const
const Aws::String & GetCVEIds() const
PatchComplianceData & WithSeverity(SeverityT &&value)
PatchComplianceDataState GetState() const
PatchComplianceData & WithInstalledTime(InstalledTimeT &&value)
void SetState(PatchComplianceDataState value)
void SetClassification(ClassificationT &&value)
AWS_SSM_API PatchComplianceData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API PatchComplianceData()=default
const Aws::String & GetClassification() const
PatchComplianceData & WithClassification(ClassificationT &&value)
const Aws::String & GetTitle() const
PatchComplianceData & WithTitle(TitleT &&value)
PatchComplianceData & WithKBId(KBIdT &&value)
const Aws::Utils::DateTime & GetInstalledTime() const
void SetInstalledTime(InstalledTimeT &&value)
const Aws::String & GetSeverity() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
PatchComplianceData & WithCVEIds(CVEIdsT &&value)
AWS_SSM_API PatchComplianceData(Aws::Utils::Json::JsonView jsonValue)
PatchComplianceData & WithState(PatchComplianceDataState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue