AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutParameterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/ParameterTier.h>
12#include <aws/ssm/model/ParameterType.h>
13#include <aws/ssm/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SSM {
19namespace Model {
20
24 public:
25 AWS_SSM_API PutParameterRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutParameter"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
38
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
78 PutParameterRequest& WithName(NameT&& value) {
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
98 PutParameterRequest& WithDescription(DescriptionT&& value) {
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
113 inline const Aws::String& GetValue() const { return m_value; }
114 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
115 template <typename ValueT = Aws::String>
116 void SetValue(ValueT&& value) {
117 m_valueHasBeenSet = true;
118 m_value = std::forward<ValueT>(value);
119 }
120 template <typename ValueT = Aws::String>
122 SetValue(std::forward<ValueT>(value));
123 return *this;
124 }
126
128
138 inline ParameterType GetType() const { return m_type; }
139 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
140 inline void SetType(ParameterType value) {
141 m_typeHasBeenSet = true;
142 m_type = value;
143 }
145 SetType(value);
146 return *this;
147 }
149
151
160 inline const Aws::String& GetKeyId() const { return m_keyId; }
161 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
162 template <typename KeyIdT = Aws::String>
163 void SetKeyId(KeyIdT&& value) {
164 m_keyIdHasBeenSet = true;
165 m_keyId = std::forward<KeyIdT>(value);
166 }
167 template <typename KeyIdT = Aws::String>
169 SetKeyId(std::forward<KeyIdT>(value));
170 return *this;
171 }
173
175
178 inline bool GetOverwrite() const { return m_overwrite; }
179 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
180 inline void SetOverwrite(bool value) {
181 m_overwriteHasBeenSet = true;
182 m_overwrite = value;
183 }
184 inline PutParameterRequest& WithOverwrite(bool value) {
185 SetOverwrite(value);
186 return *this;
187 }
189
191
196 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
197 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
198 template <typename AllowedPatternT = Aws::String>
199 void SetAllowedPattern(AllowedPatternT&& value) {
200 m_allowedPatternHasBeenSet = true;
201 m_allowedPattern = std::forward<AllowedPatternT>(value);
202 }
203 template <typename AllowedPatternT = Aws::String>
204 PutParameterRequest& WithAllowedPattern(AllowedPatternT&& value) {
205 SetAllowedPattern(std::forward<AllowedPatternT>(value));
206 return *this;
207 }
209
211
224 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 template <typename TagsT = Aws::Vector<Tag>>
227 void SetTags(TagsT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags = std::forward<TagsT>(value);
230 }
231 template <typename TagsT = Aws::Vector<Tag>>
233 SetTags(std::forward<TagsT>(value));
234 return *this;
235 }
236 template <typename TagsT = Tag>
237 PutParameterRequest& AddTags(TagsT&& value) {
238 m_tagsHasBeenSet = true;
239 m_tags.emplace_back(std::forward<TagsT>(value));
240 return *this;
241 }
243
245
293 inline ParameterTier GetTier() const { return m_tier; }
294 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
295 inline void SetTier(ParameterTier value) {
296 m_tierHasBeenSet = true;
297 m_tier = value;
298 }
300 SetTier(value);
301 return *this;
302 }
304
306
326 inline const Aws::String& GetPolicies() const { return m_policies; }
327 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
328 template <typename PoliciesT = Aws::String>
329 void SetPolicies(PoliciesT&& value) {
330 m_policiesHasBeenSet = true;
331 m_policies = std::forward<PoliciesT>(value);
332 }
333 template <typename PoliciesT = Aws::String>
334 PutParameterRequest& WithPolicies(PoliciesT&& value) {
335 SetPolicies(std::forward<PoliciesT>(value));
336 return *this;
337 }
339
341
368 inline const Aws::String& GetDataType() const { return m_dataType; }
369 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
370 template <typename DataTypeT = Aws::String>
371 void SetDataType(DataTypeT&& value) {
372 m_dataTypeHasBeenSet = true;
373 m_dataType = std::forward<DataTypeT>(value);
374 }
375 template <typename DataTypeT = Aws::String>
376 PutParameterRequest& WithDataType(DataTypeT&& value) {
377 SetDataType(std::forward<DataTypeT>(value));
378 return *this;
379 }
381 private:
382 Aws::String m_name;
383
384 Aws::String m_description;
385
386 Aws::String m_value;
387
389
390 Aws::String m_keyId;
391
392 bool m_overwrite{false};
393
394 Aws::String m_allowedPattern;
395
396 Aws::Vector<Tag> m_tags;
397
399
400 Aws::String m_policies;
401
402 Aws::String m_dataType;
403 bool m_nameHasBeenSet = false;
404 bool m_descriptionHasBeenSet = false;
405 bool m_valueHasBeenSet = false;
406 bool m_typeHasBeenSet = false;
407 bool m_keyIdHasBeenSet = false;
408 bool m_overwriteHasBeenSet = false;
409 bool m_allowedPatternHasBeenSet = false;
410 bool m_tagsHasBeenSet = false;
411 bool m_tierHasBeenSet = false;
412 bool m_policiesHasBeenSet = false;
413 bool m_dataTypeHasBeenSet = false;
414};
415
416} // namespace Model
417} // namespace SSM
418} // namespace Aws
AWS_SSM_API Aws::String SerializePayload() const override
const Aws::String & GetDescription() const
PutParameterRequest & WithDescription(DescriptionT &&value)
PutParameterRequest & WithPolicies(PoliciesT &&value)
PutParameterRequest & WithValue(ValueT &&value)
PutParameterRequest & WithType(ParameterType value)
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAllowedPattern() const
PutParameterRequest & WithAllowedPattern(AllowedPatternT &&value)
void SetDescription(DescriptionT &&value)
PutParameterRequest & WithOverwrite(bool value)
PutParameterRequest & WithDataType(DataTypeT &&value)
PutParameterRequest & WithTier(ParameterTier value)
const Aws::String & GetDataType() const
AWS_SSM_API PutParameterRequest()=default
const Aws::String & GetName() const
PutParameterRequest & AddTags(TagsT &&value)
const Aws::String & GetPolicies() const
PutParameterRequest & WithName(NameT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutParameterRequest & WithKeyId(KeyIdT &&value)
void SetAllowedPattern(AllowedPatternT &&value)
PutParameterRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector