AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ParameterHistory.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ParameterType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/ParameterTier.h>
13#include <aws/ssm/model/ParameterInlinePolicy.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SSM
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_SSM_API ParameterHistory() = default;
43
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 ParameterHistory& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
61 inline ParameterType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(ParameterType value) { m_typeHasBeenSet = true; m_type = value; }
64 inline ParameterHistory& WithType(ParameterType value) { SetType(value); return *this;}
66
68
72 inline const Aws::String& GetKeyId() const { return m_keyId; }
73 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
74 template<typename KeyIdT = Aws::String>
75 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
76 template<typename KeyIdT = Aws::String>
77 ParameterHistory& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
85 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
86 template<typename LastModifiedDateT = Aws::Utils::DateTime>
87 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
88 template<typename LastModifiedDateT = Aws::Utils::DateTime>
89 ParameterHistory& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
91
93
97 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
98 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
99 template<typename LastModifiedUserT = Aws::String>
100 void SetLastModifiedUser(LastModifiedUserT&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::forward<LastModifiedUserT>(value); }
101 template<typename LastModifiedUserT = Aws::String>
102 ParameterHistory& WithLastModifiedUser(LastModifiedUserT&& value) { SetLastModifiedUser(std::forward<LastModifiedUserT>(value)); return *this;}
104
106
109 inline const Aws::String& GetDescription() const { return m_description; }
110 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
111 template<typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
113 template<typename DescriptionT = Aws::String>
114 ParameterHistory& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
116
118
121 inline const Aws::String& GetValue() const { return m_value; }
122 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
123 template<typename ValueT = Aws::String>
124 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
125 template<typename ValueT = Aws::String>
126 ParameterHistory& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
128
130
134 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
135 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
136 template<typename AllowedPatternT = Aws::String>
137 void SetAllowedPattern(AllowedPatternT&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::forward<AllowedPatternT>(value); }
138 template<typename AllowedPatternT = Aws::String>
139 ParameterHistory& WithAllowedPattern(AllowedPatternT&& value) { SetAllowedPattern(std::forward<AllowedPatternT>(value)); return *this;}
141
143
146 inline long long GetVersion() const { return m_version; }
147 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
148 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
149 inline ParameterHistory& WithVersion(long long value) { SetVersion(value); return *this;}
151
153
156 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
157 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
158 template<typename LabelsT = Aws::Vector<Aws::String>>
159 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
160 template<typename LabelsT = Aws::Vector<Aws::String>>
161 ParameterHistory& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
162 template<typename LabelsT = Aws::String>
163 ParameterHistory& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
165
167
170 inline ParameterTier GetTier() const { return m_tier; }
171 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
172 inline void SetTier(ParameterTier value) { m_tierHasBeenSet = true; m_tier = value; }
173 inline ParameterHistory& WithTier(ParameterTier value) { SetTier(value); return *this;}
175
177
183 inline const Aws::Vector<ParameterInlinePolicy>& GetPolicies() const { return m_policies; }
184 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
185 template<typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
186 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
187 template<typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
188 ParameterHistory& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
189 template<typename PoliciesT = ParameterInlinePolicy>
190 ParameterHistory& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
192
194
198 inline const Aws::String& GetDataType() const { return m_dataType; }
199 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
200 template<typename DataTypeT = Aws::String>
201 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
202 template<typename DataTypeT = Aws::String>
203 ParameterHistory& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
205 private:
206
207 Aws::String m_name;
208 bool m_nameHasBeenSet = false;
209
211 bool m_typeHasBeenSet = false;
212
213 Aws::String m_keyId;
214 bool m_keyIdHasBeenSet = false;
215
216 Aws::Utils::DateTime m_lastModifiedDate{};
217 bool m_lastModifiedDateHasBeenSet = false;
218
219 Aws::String m_lastModifiedUser;
220 bool m_lastModifiedUserHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 Aws::String m_value;
226 bool m_valueHasBeenSet = false;
227
228 Aws::String m_allowedPattern;
229 bool m_allowedPatternHasBeenSet = false;
230
231 long long m_version{0};
232 bool m_versionHasBeenSet = false;
233
235 bool m_labelsHasBeenSet = false;
236
238 bool m_tierHasBeenSet = false;
239
241 bool m_policiesHasBeenSet = false;
242
243 Aws::String m_dataType;
244 bool m_dataTypeHasBeenSet = false;
245 };
246
247} // namespace Model
248} // namespace SSM
249} // 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