AWS SDK for C++

AWS SDK for C++ Version 1.11.550

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 PutParameterRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
85 inline const Aws::String& GetDescription() const { return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 template<typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
89 template<typename DescriptionT = Aws::String>
90 PutParameterRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
92
94
102 inline const Aws::String& GetValue() const { return m_value; }
103 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
104 template<typename ValueT = Aws::String>
105 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
106 template<typename ValueT = Aws::String>
107 PutParameterRequest& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
109
111
121 inline ParameterType GetType() const { return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(ParameterType value) { m_typeHasBeenSet = true; m_type = value; }
124 inline PutParameterRequest& WithType(ParameterType value) { SetType(value); return *this;}
126
128
137 inline const Aws::String& GetKeyId() const { return m_keyId; }
138 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
139 template<typename KeyIdT = Aws::String>
140 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
141 template<typename KeyIdT = Aws::String>
142 PutParameterRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
144
146
149 inline bool GetOverwrite() const { return m_overwrite; }
150 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
151 inline void SetOverwrite(bool value) { m_overwriteHasBeenSet = true; m_overwrite = value; }
152 inline PutParameterRequest& WithOverwrite(bool value) { SetOverwrite(value); return *this;}
154
156
161 inline const Aws::String& GetAllowedPattern() const { return m_allowedPattern; }
162 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
163 template<typename AllowedPatternT = Aws::String>
164 void SetAllowedPattern(AllowedPatternT&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::forward<AllowedPatternT>(value); }
165 template<typename AllowedPatternT = Aws::String>
166 PutParameterRequest& WithAllowedPattern(AllowedPatternT&& value) { SetAllowedPattern(std::forward<AllowedPatternT>(value)); return *this;}
168
170
183 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
184 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
185 template<typename TagsT = Aws::Vector<Tag>>
186 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
187 template<typename TagsT = Aws::Vector<Tag>>
188 PutParameterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
189 template<typename TagsT = Tag>
190 PutParameterRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
192
194
242 inline ParameterTier GetTier() const { return m_tier; }
243 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
244 inline void SetTier(ParameterTier value) { m_tierHasBeenSet = true; m_tier = value; }
245 inline PutParameterRequest& WithTier(ParameterTier value) { SetTier(value); return *this;}
247
249
269 inline const Aws::String& GetPolicies() const { return m_policies; }
270 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
271 template<typename PoliciesT = Aws::String>
272 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
273 template<typename PoliciesT = Aws::String>
274 PutParameterRequest& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
276
278
305 inline const Aws::String& GetDataType() const { return m_dataType; }
306 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
307 template<typename DataTypeT = Aws::String>
308 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
309 template<typename DataTypeT = Aws::String>
310 PutParameterRequest& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
312 private:
313
314 Aws::String m_name;
315 bool m_nameHasBeenSet = false;
316
317 Aws::String m_description;
318 bool m_descriptionHasBeenSet = false;
319
320 Aws::String m_value;
321 bool m_valueHasBeenSet = false;
322
324 bool m_typeHasBeenSet = false;
325
326 Aws::String m_keyId;
327 bool m_keyIdHasBeenSet = false;
328
329 bool m_overwrite{false};
330 bool m_overwriteHasBeenSet = false;
331
332 Aws::String m_allowedPattern;
333 bool m_allowedPatternHasBeenSet = false;
334
335 Aws::Vector<Tag> m_tags;
336 bool m_tagsHasBeenSet = false;
337
339 bool m_tierHasBeenSet = false;
340
341 Aws::String m_policies;
342 bool m_policiesHasBeenSet = false;
343
344 Aws::String m_dataType;
345 bool m_dataTypeHasBeenSet = false;
346 };
347
348} // namespace Model
349} // namespace SSM
350} // 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