AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline PutParameterRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline PutParameterRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline PutParameterRequest& WithName(const char* value) { SetName(value); return *this;}
78
80
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline PutParameterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline PutParameterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline PutParameterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
103 inline const Aws::String& GetValue() const{ return m_value; }
104 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
105 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
106 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
107 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
108 inline PutParameterRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
109 inline PutParameterRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
110 inline PutParameterRequest& WithValue(const char* value) { SetValue(value); return *this;}
112
114
124 inline const ParameterType& GetType() const{ return m_type; }
125 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
126 inline void SetType(const ParameterType& value) { m_typeHasBeenSet = true; m_type = value; }
127 inline void SetType(ParameterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
128 inline PutParameterRequest& WithType(const ParameterType& value) { SetType(value); return *this;}
129 inline PutParameterRequest& WithType(ParameterType&& value) { SetType(std::move(value)); return *this;}
131
133
142 inline const Aws::String& GetKeyId() const{ return m_keyId; }
143 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
144 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
145 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
146 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
147 inline PutParameterRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
148 inline PutParameterRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
149 inline PutParameterRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
151
153
156 inline bool GetOverwrite() const{ return m_overwrite; }
157 inline bool OverwriteHasBeenSet() const { return m_overwriteHasBeenSet; }
158 inline void SetOverwrite(bool value) { m_overwriteHasBeenSet = true; m_overwrite = value; }
159 inline PutParameterRequest& WithOverwrite(bool value) { SetOverwrite(value); return *this;}
161
163
168 inline const Aws::String& GetAllowedPattern() const{ return m_allowedPattern; }
169 inline bool AllowedPatternHasBeenSet() const { return m_allowedPatternHasBeenSet; }
170 inline void SetAllowedPattern(const Aws::String& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = value; }
171 inline void SetAllowedPattern(Aws::String&& value) { m_allowedPatternHasBeenSet = true; m_allowedPattern = std::move(value); }
172 inline void SetAllowedPattern(const char* value) { m_allowedPatternHasBeenSet = true; m_allowedPattern.assign(value); }
173 inline PutParameterRequest& WithAllowedPattern(const Aws::String& value) { SetAllowedPattern(value); return *this;}
174 inline PutParameterRequest& WithAllowedPattern(Aws::String&& value) { SetAllowedPattern(std::move(value)); return *this;}
175 inline PutParameterRequest& WithAllowedPattern(const char* value) { SetAllowedPattern(value); return *this;}
177
179
192 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
195 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
196 inline PutParameterRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
197 inline PutParameterRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
198 inline PutParameterRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
199 inline PutParameterRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
201
203
251 inline const ParameterTier& GetTier() const{ return m_tier; }
252 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
253 inline void SetTier(const ParameterTier& value) { m_tierHasBeenSet = true; m_tier = value; }
254 inline void SetTier(ParameterTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
255 inline PutParameterRequest& WithTier(const ParameterTier& value) { SetTier(value); return *this;}
256 inline PutParameterRequest& WithTier(ParameterTier&& value) { SetTier(std::move(value)); return *this;}
258
260
280 inline const Aws::String& GetPolicies() const{ return m_policies; }
281 inline bool PoliciesHasBeenSet() const { return m_policiesHasBeenSet; }
282 inline void SetPolicies(const Aws::String& value) { m_policiesHasBeenSet = true; m_policies = value; }
283 inline void SetPolicies(Aws::String&& value) { m_policiesHasBeenSet = true; m_policies = std::move(value); }
284 inline void SetPolicies(const char* value) { m_policiesHasBeenSet = true; m_policies.assign(value); }
285 inline PutParameterRequest& WithPolicies(const Aws::String& value) { SetPolicies(value); return *this;}
286 inline PutParameterRequest& WithPolicies(Aws::String&& value) { SetPolicies(std::move(value)); return *this;}
287 inline PutParameterRequest& WithPolicies(const char* value) { SetPolicies(value); return *this;}
289
291
318 inline const Aws::String& GetDataType() const{ return m_dataType; }
319 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
320 inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
321 inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::move(value); }
322 inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
323 inline PutParameterRequest& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
324 inline PutParameterRequest& WithDataType(Aws::String&& value) { SetDataType(std::move(value)); return *this;}
325 inline PutParameterRequest& WithDataType(const char* value) { SetDataType(value); return *this;}
327 private:
328
329 Aws::String m_name;
330 bool m_nameHasBeenSet = false;
331
332 Aws::String m_description;
333 bool m_descriptionHasBeenSet = false;
334
335 Aws::String m_value;
336 bool m_valueHasBeenSet = false;
337
338 ParameterType m_type;
339 bool m_typeHasBeenSet = false;
340
341 Aws::String m_keyId;
342 bool m_keyIdHasBeenSet = false;
343
344 bool m_overwrite;
345 bool m_overwriteHasBeenSet = false;
346
347 Aws::String m_allowedPattern;
348 bool m_allowedPatternHasBeenSet = false;
349
350 Aws::Vector<Tag> m_tags;
351 bool m_tagsHasBeenSet = false;
352
353 ParameterTier m_tier;
354 bool m_tierHasBeenSet = false;
355
356 Aws::String m_policies;
357 bool m_policiesHasBeenSet = false;
358
359 Aws::String m_dataType;
360 bool m_dataTypeHasBeenSet = false;
361 };
362
363} // namespace Model
364} // namespace SSM
365} // namespace Aws
AWS_SSM_API Aws::String SerializePayload() const override
PutParameterRequest & WithValue(Aws::String &&value)
const Aws::String & GetDescription() const
void SetKeyId(const Aws::String &value)
PutParameterRequest & WithTags(Aws::Vector< Tag > &&value)
PutParameterRequest & WithName(const Aws::String &value)
const ParameterTier & GetTier() const
void SetDescription(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
virtual const char * GetServiceRequestName() const override
PutParameterRequest & WithPolicies(Aws::String &&value)
const Aws::String & GetAllowedPattern() const
void SetName(const Aws::String &value)
void SetAllowedPattern(const Aws::String &value)
PutParameterRequest & AddTags(Tag &&value)
PutParameterRequest & WithOverwrite(bool value)
void SetAllowedPattern(Aws::String &&value)
void SetType(const ParameterType &value)
void SetTags(const Aws::Vector< Tag > &value)
PutParameterRequest & WithTags(const Aws::Vector< Tag > &value)
PutParameterRequest & WithAllowedPattern(const char *value)
PutParameterRequest & WithKeyId(const char *value)
PutParameterRequest & WithDescription(const Aws::String &value)
const Aws::String & GetDataType() const
PutParameterRequest & WithDataType(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetValue(const Aws::String &value)
const Aws::String & GetName() const
PutParameterRequest & WithName(Aws::String &&value)
void SetPolicies(const Aws::String &value)
void SetDataType(const Aws::String &value)
PutParameterRequest & WithDescription(Aws::String &&value)
PutParameterRequest & WithType(ParameterType &&value)
PutParameterRequest & WithType(const ParameterType &value)
PutParameterRequest & WithAllowedPattern(Aws::String &&value)
PutParameterRequest & WithKeyId(const Aws::String &value)
const Aws::String & GetPolicies() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutParameterRequest & WithTier(const ParameterTier &value)
PutParameterRequest & WithPolicies(const Aws::String &value)
PutParameterRequest & WithTier(ParameterTier &&value)
const ParameterType & GetType() const
PutParameterRequest & WithValue(const Aws::String &value)
PutParameterRequest & WithValue(const char *value)
void SetDescription(const Aws::String &value)
PutParameterRequest & AddTags(const Tag &value)
PutParameterRequest & WithPolicies(const char *value)
PutParameterRequest & WithName(const char *value)
PutParameterRequest & WithDescription(const char *value)
PutParameterRequest & WithKeyId(Aws::String &&value)
PutParameterRequest & WithDataType(const char *value)
void SetTier(const ParameterTier &value)
PutParameterRequest & WithDataType(Aws::String &&value)
PutParameterRequest & WithAllowedPattern(const Aws::String &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