AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ParameterHistory.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/ParameterInlinePolicy.h>
12#include <aws/ssm/model/ParameterTier.h>
13#include <aws/ssm/model/ParameterType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM {
25namespace Model {
26
33 public:
34 AWS_SSM_API ParameterHistory() = default;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 ParameterHistory& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline ParameterType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(ParameterType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetKeyId() const { return m_keyId; }
79 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
80 template <typename KeyIdT = Aws::String>
81 void SetKeyId(KeyIdT&& value) {
82 m_keyIdHasBeenSet = true;
83 m_keyId = std::forward<KeyIdT>(value);
84 }
85 template <typename KeyIdT = Aws::String>
86 ParameterHistory& WithKeyId(KeyIdT&& value) {
87 SetKeyId(std::forward<KeyIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
97 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
98 template <typename LastModifiedDateT = Aws::Utils::DateTime>
99 void SetLastModifiedDate(LastModifiedDateT&& value) {
100 m_lastModifiedDateHasBeenSet = true;
101 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
102 }
103 template <typename LastModifiedDateT = Aws::Utils::DateTime>
104 ParameterHistory& WithLastModifiedDate(LastModifiedDateT&& value) {
105 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
116 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
117 template <typename LastModifiedUserT = Aws::String>
118 void SetLastModifiedUser(LastModifiedUserT&& value) {
119 m_lastModifiedUserHasBeenSet = true;
120 m_lastModifiedUser = std::forward<LastModifiedUserT>(value);
121 }
122 template <typename LastModifiedUserT = Aws::String>
123 ParameterHistory& WithLastModifiedUser(LastModifiedUserT&& value) {
124 SetLastModifiedUser(std::forward<LastModifiedUserT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetDescription() const { return m_description; }
134 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
135 template <typename DescriptionT = Aws::String>
136 void SetDescription(DescriptionT&& value) {
137 m_descriptionHasBeenSet = true;
138 m_description = std::forward<DescriptionT>(value);
139 }
140 template <typename DescriptionT = Aws::String>
141 ParameterHistory& WithDescription(DescriptionT&& value) {
142 SetDescription(std::forward<DescriptionT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetValue() const { return m_value; }
152 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
153 template <typename ValueT = Aws::String>
154 void SetValue(ValueT&& value) {
155 m_valueHasBeenSet = true;
156 m_value = std::forward<ValueT>(value);
157 }
158 template <typename ValueT = Aws::String>
159 ParameterHistory& WithValue(ValueT&& value) {
160 SetValue(std::forward<ValueT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
171 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
172 template <typename AllowedPatternT = Aws::String>
173 void SetAllowedPattern(AllowedPatternT&& value) {
174 m_allowedPatternHasBeenSet = true;
175 m_allowedPattern = std::forward<AllowedPatternT>(value);
176 }
177 template <typename AllowedPatternT = Aws::String>
178 ParameterHistory& WithAllowedPattern(AllowedPatternT&& value) {
179 SetAllowedPattern(std::forward<AllowedPatternT>(value));
180 return *this;
181 }
183
185
188 inline long long GetVersion() const { return m_version; }
189 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
190 inline void SetVersion(long long value) {
191 m_versionHasBeenSet = true;
192 m_version = value;
193 }
194 inline ParameterHistory& WithVersion(long long value) {
195 SetVersion(value);
196 return *this;
197 }
199
201
204 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
205 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
206 template <typename LabelsT = Aws::Vector<Aws::String>>
207 void SetLabels(LabelsT&& value) {
208 m_labelsHasBeenSet = true;
209 m_labels = std::forward<LabelsT>(value);
210 }
211 template <typename LabelsT = Aws::Vector<Aws::String>>
212 ParameterHistory& WithLabels(LabelsT&& value) {
213 SetLabels(std::forward<LabelsT>(value));
214 return *this;
215 }
216 template <typename LabelsT = Aws::String>
217 ParameterHistory& AddLabels(LabelsT&& value) {
218 m_labelsHasBeenSet = true;
219 m_labels.emplace_back(std::forward<LabelsT>(value));
220 return *this;
221 }
223
225
228 inline ParameterTier GetTier() const { return m_tier; }
229 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
230 inline void SetTier(ParameterTier value) {
231 m_tierHasBeenSet = true;
232 m_tier = value;
233 }
235 SetTier(value);
236 return *this;
237 }
239
241
247 inline const Aws::Vector<ParameterInlinePolicy>& GetPolicies() const { return m_policies; }
248 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
249 template <typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
250 void SetPolicies(PoliciesT&& value) {
251 m_policiesHasBeenSet = true;
252 m_policies = std::forward<PoliciesT>(value);
253 }
254 template <typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
255 ParameterHistory& WithPolicies(PoliciesT&& value) {
256 SetPolicies(std::forward<PoliciesT>(value));
257 return *this;
258 }
259 template <typename PoliciesT = ParameterInlinePolicy>
260 ParameterHistory& AddPolicies(PoliciesT&& value) {
261 m_policiesHasBeenSet = true;
262 m_policies.emplace_back(std::forward<PoliciesT>(value));
263 return *this;
264 }
266
268
272 inline const Aws::String& GetDataType() const { return m_dataType; }
273 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
274 template <typename DataTypeT = Aws::String>
275 void SetDataType(DataTypeT&& value) {
276 m_dataTypeHasBeenSet = true;
277 m_dataType = std::forward<DataTypeT>(value);
278 }
279 template <typename DataTypeT = Aws::String>
280 ParameterHistory& WithDataType(DataTypeT&& value) {
281 SetDataType(std::forward<DataTypeT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_name;
287
289
290 Aws::String m_keyId;
291
292 Aws::Utils::DateTime m_lastModifiedDate{};
293
294 Aws::String m_lastModifiedUser;
295
296 Aws::String m_description;
297
298 Aws::String m_value;
299
300 Aws::String m_allowedPattern;
301
302 long long m_version{0};
303
305
307
309
310 Aws::String m_dataType;
311 bool m_nameHasBeenSet = false;
312 bool m_typeHasBeenSet = false;
313 bool m_keyIdHasBeenSet = false;
314 bool m_lastModifiedDateHasBeenSet = false;
315 bool m_lastModifiedUserHasBeenSet = false;
316 bool m_descriptionHasBeenSet = false;
317 bool m_valueHasBeenSet = false;
318 bool m_allowedPatternHasBeenSet = false;
319 bool m_versionHasBeenSet = false;
320 bool m_labelsHasBeenSet = false;
321 bool m_tierHasBeenSet = false;
322 bool m_policiesHasBeenSet = false;
323 bool m_dataTypeHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace SSM
328} // namespace Aws
void SetDescription(DescriptionT &&value)
ParameterHistory & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::Vector< ParameterInlinePolicy > & GetPolicies() const
ParameterHistory & WithVersion(long long value)
ParameterHistory & WithName(NameT &&value)
AWS_SSM_API ParameterHistory()=default
void SetLastModifiedDate(LastModifiedDateT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
ParameterHistory & AddPolicies(PoliciesT &&value)
void SetType(ParameterType value)
ParameterHistory & WithLastModifiedUser(LastModifiedUserT &&value)
ParameterHistory & WithTier(ParameterTier value)
const Aws::String & GetDescription() const
const Aws::String & GetLastModifiedUser() const
const Aws::Vector< Aws::String > & GetLabels() const
ParameterHistory & WithDataType(DataTypeT &&value)
AWS_SSM_API ParameterHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllowedPattern(AllowedPatternT &&value)
const Aws::String & GetAllowedPattern() const
ParameterHistory & WithType(ParameterType value)
const Aws::String & GetName() const
AWS_SSM_API ParameterHistory(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKeyId() const
ParameterHistory & WithKeyId(KeyIdT &&value)
ParameterHistory & WithLabels(LabelsT &&value)
void SetDataType(DataTypeT &&value)
const Aws::String & GetDataType() const
void SetLastModifiedUser(LastModifiedUserT &&value)
ParameterHistory & AddLabels(LabelsT &&value)
ParameterHistory & WithDescription(DescriptionT &&value)
void SetPolicies(PoliciesT &&value)
void SetTier(ParameterTier value)
ParameterHistory & WithAllowedPattern(AllowedPatternT &&value)
ParameterHistory & WithPolicies(PoliciesT &&value)
const Aws::String & GetValue() const
ParameterHistory & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue