AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ParameterMetadata.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/ssm/model/ParameterTier.h>
12#include <aws/core/utils/memory/stl/AWSVector.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
39 {
40 public:
41 AWS_SSM_API ParameterMetadata() = default;
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 ParameterMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
67 template<typename ARNT = Aws::String>
68 ParameterMetadata& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
70
72
76 inline ParameterType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ParameterType value) { m_typeHasBeenSet = true; m_type = value; }
79 inline ParameterMetadata& WithType(ParameterType value) { SetType(value); return *this;}
81
83
87 inline const Aws::String& GetKeyId() const { return m_keyId; }
88 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
89 template<typename KeyIdT = Aws::String>
90 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
91 template<typename KeyIdT = Aws::String>
92 ParameterMetadata& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
94
96
99 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
100 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
101 template<typename LastModifiedDateT = Aws::Utils::DateTime>
102 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
103 template<typename LastModifiedDateT = Aws::Utils::DateTime>
104 ParameterMetadata& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
106
108
112 inline const Aws::String& GetLastModifiedUser() const { return m_lastModifiedUser; }
113 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
114 template<typename LastModifiedUserT = Aws::String>
115 void SetLastModifiedUser(LastModifiedUserT&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::forward<LastModifiedUserT>(value); }
116 template<typename LastModifiedUserT = Aws::String>
117 ParameterMetadata& WithLastModifiedUser(LastModifiedUserT&& value) { SetLastModifiedUser(std::forward<LastModifiedUserT>(value)); return *this;}
119
121
124 inline const Aws::String& GetDescription() const { return m_description; }
125 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 template<typename DescriptionT = Aws::String>
127 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
128 template<typename DescriptionT = Aws::String>
129 ParameterMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
131
133
137 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
138 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
139 template<typename AllowedPatternT = Aws::String>
140 void SetAllowedPattern(AllowedPatternT&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::forward<AllowedPatternT>(value); }
141 template<typename AllowedPatternT = Aws::String>
142 ParameterMetadata& WithAllowedPattern(AllowedPatternT&& value) { SetAllowedPattern(std::forward<AllowedPatternT>(value)); return *this;}
144
146
149 inline long long GetVersion() const { return m_version; }
150 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
151 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
152 inline ParameterMetadata& WithVersion(long long value) { SetVersion(value); return *this;}
154
156
159 inline ParameterTier GetTier() const { return m_tier; }
160 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
161 inline void SetTier(ParameterTier value) { m_tierHasBeenSet = true; m_tier = value; }
162 inline ParameterMetadata& WithTier(ParameterTier value) { SetTier(value); return *this;}
164
166
169 inline const Aws::Vector<ParameterInlinePolicy>& GetPolicies() const { return m_policies; }
170 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
171 template<typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
172 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
173 template<typename PoliciesT = Aws::Vector<ParameterInlinePolicy>>
174 ParameterMetadata& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
175 template<typename PoliciesT = ParameterInlinePolicy>
176 ParameterMetadata& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
178
180
184 inline const Aws::String& GetDataType() const { return m_dataType; }
185 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
186 template<typename DataTypeT = Aws::String>
187 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
188 template<typename DataTypeT = Aws::String>
189 ParameterMetadata& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
191 private:
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_aRN;
197 bool m_aRNHasBeenSet = false;
198
200 bool m_typeHasBeenSet = false;
201
202 Aws::String m_keyId;
203 bool m_keyIdHasBeenSet = false;
204
205 Aws::Utils::DateTime m_lastModifiedDate{};
206 bool m_lastModifiedDateHasBeenSet = false;
207
208 Aws::String m_lastModifiedUser;
209 bool m_lastModifiedUserHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 Aws::String m_allowedPattern;
215 bool m_allowedPatternHasBeenSet = false;
216
217 long long m_version{0};
218 bool m_versionHasBeenSet = false;
219
221 bool m_tierHasBeenSet = false;
222
224 bool m_policiesHasBeenSet = false;
225
226 Aws::String m_dataType;
227 bool m_dataTypeHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace SSM
232} // 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