AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
45
46
48
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline ParameterMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline ParameterMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline ParameterMetadata& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetARN() const{ return m_aRN; }
66 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
67 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
68 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
69 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
70 inline ParameterMetadata& WithARN(const Aws::String& value) { SetARN(value); return *this;}
71 inline ParameterMetadata& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
72 inline ParameterMetadata& WithARN(const char* value) { SetARN(value); return *this;}
74
76
80 inline const ParameterType& GetType() const{ return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(const ParameterType& value) { m_typeHasBeenSet = true; m_type = value; }
83 inline void SetType(ParameterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
84 inline ParameterMetadata& WithType(const ParameterType& value) { SetType(value); return *this;}
85 inline ParameterMetadata& WithType(ParameterType&& value) { SetType(std::move(value)); return *this;}
87
89
93 inline const Aws::String& GetKeyId() const{ return m_keyId; }
94 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
95 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
96 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
97 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
98 inline ParameterMetadata& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
99 inline ParameterMetadata& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
100 inline ParameterMetadata& WithKeyId(const char* value) { SetKeyId(value); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
108 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
109 inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
110 inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
112 inline ParameterMetadata& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
114
116
120 inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; }
121 inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
122 inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; }
123 inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); }
124 inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); }
125 inline ParameterMetadata& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;}
126 inline ParameterMetadata& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;}
127 inline ParameterMetadata& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;}
129
131
134 inline const Aws::String& GetDescription() const{ return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
138 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
139 inline ParameterMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
140 inline ParameterMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
141 inline ParameterMetadata& WithDescription(const char* value) { SetDescription(value); return *this;}
143
145
149 inline const Aws::String& GetAllowedPattern() const{ return m_allowedPattern; }
150 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
151 inline void SetAllowedPattern(const Aws::String& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = value; }
152 inline void SetAllowedPattern(Aws::String&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::move(value); }
153 inline void SetAllowedPattern(const char* value) { m_allowedPatternHasBeenSet = true; m_allowedPattern.assign(value); }
154 inline ParameterMetadata& WithAllowedPattern(const Aws::String& value) { SetAllowedPattern(value); return *this;}
155 inline ParameterMetadata& WithAllowedPattern(Aws::String&& value) { SetAllowedPattern(std::move(value)); return *this;}
156 inline ParameterMetadata& WithAllowedPattern(const char* value) { SetAllowedPattern(value); return *this;}
158
160
163 inline long long GetVersion() const{ return m_version; }
164 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
165 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
166 inline ParameterMetadata& WithVersion(long long value) { SetVersion(value); return *this;}
168
170
173 inline const ParameterTier& GetTier() const{ return m_tier; }
174 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
175 inline void SetTier(const ParameterTier& value) { m_tierHasBeenSet = true; m_tier = value; }
176 inline void SetTier(ParameterTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
177 inline ParameterMetadata& WithTier(const ParameterTier& value) { SetTier(value); return *this;}
178 inline ParameterMetadata& WithTier(ParameterTier&& value) { SetTier(std::move(value)); return *this;}
180
182
185 inline const Aws::Vector<ParameterInlinePolicy>& GetPolicies() const{ return m_policies; }
186 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
187 inline void SetPolicies(const Aws::Vector<ParameterInlinePolicy>& value) { m_policiesHasBeenSet = true; m_policies = value; }
188 inline void SetPolicies(Aws::Vector<ParameterInlinePolicy>&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); }
190 inline ParameterMetadata& WithPolicies(Aws::Vector<ParameterInlinePolicy>&& value) { SetPolicies(std::move(value)); return *this;}
191 inline ParameterMetadata& AddPolicies(const ParameterInlinePolicy& value) { m_policiesHasBeenSet = true; m_policies.push_back(value); return *this; }
192 inline ParameterMetadata& AddPolicies(ParameterInlinePolicy&& value) { m_policiesHasBeenSet = true; m_policies.push_back(std::move(value)); return *this; }
194
196
200 inline const Aws::String& GetDataType() const{ return m_dataType; }
201 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
202 inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
203 inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
204 inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
205 inline ParameterMetadata& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
206 inline ParameterMetadata& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
207 inline ParameterMetadata& WithDataType(const char* value) { SetDataType(value); return *this;}
209 private:
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_aRN;
215 bool m_aRNHasBeenSet = false;
216
217 ParameterType m_type;
218 bool m_typeHasBeenSet = false;
219
220 Aws::String m_keyId;
221 bool m_keyIdHasBeenSet = false;
222
223 Aws::Utils::DateTime m_lastModifiedDate;
224 bool m_lastModifiedDateHasBeenSet = false;
225
226 Aws::String m_lastModifiedUser;
227 bool m_lastModifiedUserHasBeenSet = false;
228
229 Aws::String m_description;
230 bool m_descriptionHasBeenSet = false;
231
232 Aws::String m_allowedPattern;
233 bool m_allowedPatternHasBeenSet = false;
234
235 long long m_version;
236 bool m_versionHasBeenSet = false;
237
238 ParameterTier m_tier;
239 bool m_tierHasBeenSet = false;
240
242 bool m_policiesHasBeenSet = false;
243
244 Aws::String m_dataType;
245 bool m_dataTypeHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace SSM
250} // namespace Aws
ParameterMetadata & WithName(const char *value)
ParameterMetadata & WithAllowedPattern(const char *value)
const Aws::String & GetKeyId() const
void SetName(Aws::String &&value)
void SetTier(ParameterTier &&value)
const Aws::Vector< ParameterInlinePolicy > & GetPolicies() const
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
void SetAllowedPattern(Aws::String &&value)
ParameterMetadata & WithKeyId(const Aws::String &value)
ParameterMetadata & WithARN(Aws::String &&value)
ParameterMetadata & WithLastModifiedDate(Aws::Utils::DateTime &&value)
ParameterMetadata & WithARN(const char *value)
const Aws::String & GetARN() const
ParameterMetadata & WithAllowedPattern(const Aws::String &value)
ParameterMetadata & WithPolicies(Aws::Vector< ParameterInlinePolicy > &&value)
const Aws::String & GetName() const
void SetType(ParameterType &&value)
const ParameterTier & GetTier() const
void SetAllowedPattern(const Aws::String &value)
void SetDescription(Aws::String &&value)
ParameterMetadata & WithPolicies(const Aws::Vector< ParameterInlinePolicy > &value)
const ParameterType & GetType() const
ParameterMetadata & WithTier(ParameterTier &&value)
ParameterMetadata & WithARN(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
ParameterMetadata & WithLastModifiedUser(const char *value)
AWS_SSM_API ParameterMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterMetadata & WithVersion(long long value)
const Aws::String & GetDataType() const
void SetLastModifiedUser(const Aws::String &value)
ParameterMetadata & WithType(const ParameterType &value)
ParameterMetadata & WithLastModifiedUser(Aws::String &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterMetadata & WithDescription(Aws::String &&value)
ParameterMetadata & WithLastModifiedUser(const Aws::String &value)
void SetType(const ParameterType &value)
const Aws::String & GetLastModifiedUser() const
ParameterMetadata & WithKeyId(Aws::String &&value)
void SetDataType(const Aws::String &value)
const Aws::String & GetDescription() const
ParameterMetadata & WithDescription(const Aws::String &value)
ParameterMetadata & WithDescription(const char *value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
void SetARN(const Aws::String &value)
void SetDescription(const Aws::String &value)
ParameterMetadata & WithName(const Aws::String &value)
void SetLastModifiedUser(Aws::String &&value)
ParameterMetadata & WithTier(const ParameterTier &value)
ParameterMetadata & WithType(ParameterType &&value)
ParameterMetadata & WithDataType(Aws::String &&value)
void SetDataType(Aws::String &&value)
void SetARN(Aws::String &&value)
ParameterMetadata & WithName(Aws::String &&value)
ParameterMetadata & WithKeyId(const char *value)
void SetName(const Aws::String &value)
const Aws::String & GetAllowedPattern() const
AWS_SSM_API ParameterMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetPolicies(Aws::Vector< ParameterInlinePolicy > &&value)
void SetLastModifiedUser(const char *value)
void SetKeyId(Aws::String &&value)
void SetTier(const ParameterTier &value)
ParameterMetadata & WithAllowedPattern(Aws::String &&value)
void SetKeyId(const Aws::String &value)
void SetDescription(const char *value)
ParameterMetadata & WithDataType(const char *value)
void SetAllowedPattern(const char *value)
ParameterMetadata & AddPolicies(ParameterInlinePolicy &&value)
ParameterMetadata & AddPolicies(const ParameterInlinePolicy &value)
ParameterMetadata & WithDataType(const Aws::String &value)
void SetPolicies(const Aws::Vector< ParameterInlinePolicy > &value)
ParameterMetadata & WithLastModifiedDate(const Aws::Utils::DateTime &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