AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ParameterMetadata.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
35 public:
36 AWS_SSM_API ParameterMetadata() = default;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
53 ParameterMetadata& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetARN() const { return m_aRN; }
64 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
65 template <typename ARNT = Aws::String>
66 void SetARN(ARNT&& value) {
67 m_aRNHasBeenSet = true;
68 m_aRN = std::forward<ARNT>(value);
69 }
70 template <typename ARNT = Aws::String>
71 ParameterMetadata& WithARN(ARNT&& value) {
72 SetARN(std::forward<ARNT>(value));
73 return *this;
74 }
76
78
82 inline ParameterType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(ParameterType value) {
85 m_typeHasBeenSet = true;
86 m_type = value;
87 }
89 SetType(value);
90 return *this;
91 }
93
95
99 inline const Aws::String& GetKeyId() const { return m_keyId; }
100 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
101 template <typename KeyIdT = Aws::String>
102 void SetKeyId(KeyIdT&& value) {
103 m_keyIdHasBeenSet = true;
104 m_keyId = std::forward<KeyIdT>(value);
105 }
106 template <typename KeyIdT = Aws::String>
107 ParameterMetadata& WithKeyId(KeyIdT&& value) {
108 SetKeyId(std::forward<KeyIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
118 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
119 template <typename LastModifiedDateT = Aws::Utils::DateTime>
120 void SetLastModifiedDate(LastModifiedDateT&& value) {
121 m_lastModifiedDateHasBeenSet = true;
122 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
123 }
124 template <typename LastModifiedDateT = Aws::Utils::DateTime>
125 ParameterMetadata& WithLastModifiedDate(LastModifiedDateT&& value) {
126 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
137 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
138 template <typename LastModifiedUserT = Aws::String>
139 void SetLastModifiedUser(LastModifiedUserT&& value) {
140 m_lastModifiedUserHasBeenSet = true;
141 m_lastModifiedUser = std::forward<LastModifiedUserT>(value);
142 }
143 template <typename LastModifiedUserT = Aws::String>
144 ParameterMetadata& WithLastModifiedUser(LastModifiedUserT&& value) {
145 SetLastModifiedUser(std::forward<LastModifiedUserT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetDescription() const { return m_description; }
155 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 template <typename DescriptionT = Aws::String>
157 void SetDescription(DescriptionT&& value) {
158 m_descriptionHasBeenSet = true;
159 m_description = std::forward<DescriptionT>(value);
160 }
161 template <typename DescriptionT = Aws::String>
162 ParameterMetadata& WithDescription(DescriptionT&& value) {
163 SetDescription(std::forward<DescriptionT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
174 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
175 template <typename AllowedPatternT = Aws::String>
176 void SetAllowedPattern(AllowedPatternT&& value) {
177 m_allowedPatternHasBeenSet = true;
178 m_allowedPattern = std::forward<AllowedPatternT>(value);
179 }
180 template <typename AllowedPatternT = Aws::String>
181 ParameterMetadata& WithAllowedPattern(AllowedPatternT&& value) {
182 SetAllowedPattern(std::forward<AllowedPatternT>(value));
183 return *this;
184 }
186
188
191 inline long long GetVersion() const { return m_version; }
192 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
193 inline void SetVersion(long long value) {
194 m_versionHasBeenSet = true;
195 m_version = value;
196 }
197 inline ParameterMetadata& WithVersion(long long value) {
198 SetVersion(value);
199 return *this;
200 }
202
204
207 inline ParameterTier GetTier() const { return m_tier; }
208 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
209 inline void SetTier(ParameterTier value) {
210 m_tierHasBeenSet = true;
211 m_tier = value;
212 }
214 SetTier(value);
215 return *this;
216 }
218
220
223 inline const Aws::Vector<ParameterInlinePolicy>& GetPolicies() const { return m_policies; }
224 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
225 template <typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
226 void SetPolicies(PoliciesT&& value) {
227 m_policiesHasBeenSet = true;
228 m_policies = std::forward<PoliciesT>(value);
229 }
230 template <typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
231 ParameterMetadata& WithPolicies(PoliciesT&& value) {
232 SetPolicies(std::forward<PoliciesT>(value));
233 return *this;
234 }
235 template <typename PoliciesT = ParameterInlinePolicy>
236 ParameterMetadata& AddPolicies(PoliciesT&& value) {
237 m_policiesHasBeenSet = true;
238 m_policies.emplace_back(std::forward<PoliciesT>(value));
239 return *this;
240 }
242
244
248 inline const Aws::String& GetDataType() const { return m_dataType; }
249 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
250 template <typename DataTypeT = Aws::String>
251 void SetDataType(DataTypeT&& value) {
252 m_dataTypeHasBeenSet = true;
253 m_dataType = std::forward<DataTypeT>(value);
254 }
255 template <typename DataTypeT = Aws::String>
256 ParameterMetadata& WithDataType(DataTypeT&& value) {
257 SetDataType(std::forward<DataTypeT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_name;
263
264 Aws::String m_aRN;
265
267
268 Aws::String m_keyId;
269
270 Aws::Utils::DateTime m_lastModifiedDate{};
271
272 Aws::String m_lastModifiedUser;
273
274 Aws::String m_description;
275
276 Aws::String m_allowedPattern;
277
278 long long m_version{0};
279
281
283
284 Aws::String m_dataType;
285 bool m_nameHasBeenSet = false;
286 bool m_aRNHasBeenSet = false;
287 bool m_typeHasBeenSet = false;
288 bool m_keyIdHasBeenSet = false;
289 bool m_lastModifiedDateHasBeenSet = false;
290 bool m_lastModifiedUserHasBeenSet = false;
291 bool m_descriptionHasBeenSet = false;
292 bool m_allowedPatternHasBeenSet = false;
293 bool m_versionHasBeenSet = false;
294 bool m_tierHasBeenSet = false;
295 bool m_policiesHasBeenSet = false;
296 bool m_dataTypeHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace SSM
301} // namespace Aws
ParameterMetadata & WithLastModifiedDate(LastModifiedDateT &&value)
const Aws::String & GetKeyId() const
const Aws::Vector< ParameterInlinePolicy > & GetPolicies() const
void SetLastModifiedDate(LastModifiedDateT &&value)
ParameterMetadata & WithPolicies(PoliciesT &&value)
ParameterMetadata & WithName(NameT &&value)
const Aws::String & GetARN() const
const Aws::String & GetName() const
ParameterMetadata & WithDescription(DescriptionT &&value)
void SetLastModifiedUser(LastModifiedUserT &&value)
AWS_SSM_API ParameterMetadata()=default
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_SSM_API ParameterMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterMetadata & WithVersion(long long value)
const Aws::String & GetDataType() const
ParameterMetadata & WithLastModifiedUser(LastModifiedUserT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterMetadata & WithDataType(DataTypeT &&value)
void SetAllowedPattern(AllowedPatternT &&value)
ParameterMetadata & WithTier(ParameterTier value)
ParameterMetadata & WithKeyId(KeyIdT &&value)
const Aws::String & GetLastModifiedUser() const
const Aws::String & GetDescription() const
void SetTier(ParameterTier value)
ParameterMetadata & WithARN(ARNT &&value)
const Aws::String & GetAllowedPattern() const
void SetDescription(DescriptionT &&value)
AWS_SSM_API ParameterMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetType(ParameterType value)
ParameterMetadata & WithType(ParameterType value)
ParameterMetadata & WithAllowedPattern(AllowedPatternT &&value)
ParameterMetadata & AddPolicies(PoliciesT &&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