AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateExtensionRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/Action.h>
10#include <aws/appconfig/model/ActionPoint.h>
11#include <aws/appconfig/model/Parameter.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AppConfig {
20namespace Model {
21
25 public:
26 AWS_APPCONFIG_API CreateExtensionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateExtension"; }
33
34 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 CreateExtensionRequest& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Map<ActionPoint, Aws::Vector<Action>>& GetActions() const { return m_actions; }
80 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
81 template <typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
82 void SetActions(ActionsT&& value) {
83 m_actionsHasBeenSet = true;
84 m_actions = std::forward<ActionsT>(value);
85 }
86 template <typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
88 SetActions(std::forward<ActionsT>(value));
89 return *this;
90 }
92 m_actionsHasBeenSet = true;
93 m_actions.emplace(key, value);
94 return *this;
95 }
97
99
105 inline const Aws::Map<Aws::String, Parameter>& GetParameters() const { return m_parameters; }
106 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
107 template <typename ParametersT = Aws::Map<Aws::String, Parameter>>
108 void SetParameters(ParametersT&& value) {
109 m_parametersHasBeenSet = true;
110 m_parameters = std::forward<ParametersT>(value);
111 }
112 template <typename ParametersT = Aws::Map<Aws::String, Parameter>>
114 SetParameters(std::forward<ParametersT>(value));
115 return *this;
116 }
117 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Parameter>
118 CreateExtensionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
119 m_parametersHasBeenSet = true;
120 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
121 return *this;
122 }
124
126
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateExtensionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
158 inline int GetLatestVersionNumber() const { return m_latestVersionNumber; }
159 inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
160 inline void SetLatestVersionNumber(int value) {
161 m_latestVersionNumberHasBeenSet = true;
162 m_latestVersionNumber = value;
163 }
166 return *this;
167 }
169 private:
170 Aws::String m_name;
171
172 Aws::String m_description;
173
175
177
179
180 int m_latestVersionNumber{0};
181 bool m_nameHasBeenSet = false;
182 bool m_descriptionHasBeenSet = false;
183 bool m_actionsHasBeenSet = false;
184 bool m_parametersHasBeenSet = false;
185 bool m_tagsHasBeenSet = false;
186 bool m_latestVersionNumberHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace AppConfig
191} // namespace Aws
const Aws::Map< ActionPoint, Aws::Vector< Action > > & GetActions() const
CreateExtensionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_APPCONFIG_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateExtensionRequest & WithDescription(DescriptionT &&value)
CreateExtensionRequest & WithActions(ActionsT &&value)
CreateExtensionRequest & WithName(NameT &&value)
AWS_APPCONFIG_API CreateExtensionRequest()=default
const Aws::Map< Aws::String, Parameter > & GetParameters() const
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateExtensionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExtensionRequest & WithTags(TagsT &&value)
CreateExtensionRequest & WithLatestVersionNumber(int value)
CreateExtensionRequest & AddActions(ActionPoint key, Aws::Vector< Action > value)
CreateExtensionRequest & WithParameters(ParametersT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector