AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
PutParameterRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/ParameterType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/ParameterTier.h>
13#include <aws/ssm/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SSM_API PutParameterRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutParameter"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 PutParameterRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 PutParameterRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95
97
105 inline const Aws::String& GetValue() const { return m_value; }
106 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
107 template<typename ValueT = Aws::String>
108 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
109 template<typename ValueT = Aws::String>
110 PutParameterRequest& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
112
114
124 inline ParameterType GetType() const { return m_type; }
125 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
126 inline void SetType(ParameterType value) { m_typeHasBeenSet = true; m_type = value; }
127 inline PutParameterRequest& WithType(ParameterType value) { SetType(value); return *this;}
129
131
140 inline const Aws::String& GetKeyId() const { return m_keyId; }
141 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
142 template<typename KeyIdT = Aws::String>
143 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
144 template<typename KeyIdT = Aws::String>
145 PutParameterRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
147
149
152 inline bool GetOverwrite() const { return m_overwrite; }
153 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
154 inline void SetOverwrite(bool value) { m_overwriteHasBeenSet = true; m_overwrite = value; }
155 inline PutParameterRequest& WithOverwrite(bool value) { SetOverwrite(value); return *this;}
157
159
164 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
165 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
166 template<typename AllowedPatternT = Aws::String>
167 void SetAllowedPattern(AllowedPatternT&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::forward<AllowedPatternT>(value); }
168 template<typename AllowedPatternT = Aws::String>
169 PutParameterRequest& WithAllowedPattern(AllowedPatternT&& value) { SetAllowedPattern(std::forward<AllowedPatternT>(value)); return *this;}
171
173
186 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 template<typename TagsT = Aws::Vector<Tag>>
189 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
190 template<typename TagsT = Aws::Vector<Tag>>
191 PutParameterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
192 template<typename TagsT = Tag>
193 PutParameterRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
195
197
245 inline ParameterTier GetTier() const { return m_tier; }
246 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
247 inline void SetTier(ParameterTier value) { m_tierHasBeenSet = true; m_tier = value; }
248 inline PutParameterRequest& WithTier(ParameterTier value) { SetTier(value); return *this;}
250
252
272 inline const Aws::String& GetPolicies() const { return m_policies; }
273 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
274 template<typename PoliciesT = Aws::String>
275 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
276 template<typename PoliciesT = Aws::String>
277 PutParameterRequest& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
279
281
308 inline const Aws::String& GetDataType() const { return m_dataType; }
309 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
310 template<typename DataTypeT = Aws::String>
311 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
312 template<typename DataTypeT = Aws::String>
313 PutParameterRequest& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
315 private:
316
317 Aws::String m_name;
318 bool m_nameHasBeenSet = false;
319
320 Aws::String m_description;
321 bool m_descriptionHasBeenSet = false;
322
323 Aws::String m_value;
324 bool m_valueHasBeenSet = false;
325
327 bool m_typeHasBeenSet = false;
328
329 Aws::String m_keyId;
330 bool m_keyIdHasBeenSet = false;
331
332 bool m_overwrite{false};
333 bool m_overwriteHasBeenSet = false;
334
335 Aws::String m_allowedPattern;
336 bool m_allowedPatternHasBeenSet = false;
337
338 Aws::Vector<Tag> m_tags;
339 bool m_tagsHasBeenSet = false;
340
342 bool m_tierHasBeenSet = false;
343
344 Aws::String m_policies;
345 bool m_policiesHasBeenSet = false;
346
347 Aws::String m_dataType;
348 bool m_dataTypeHasBeenSet = false;
349 };
350
351} // namespace Model
352} // namespace SSM
353} // 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