AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
UpdateExtensionResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/Action.h>
9#include <aws/appconfig/model/ActionPoint.h>
10#include <aws/appconfig/model/Parameter.h>
11#include <aws/core/http/HttpResponse.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 {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace AppConfig {
28namespace Model {
30 public:
31 AWS_APPCONFIG_API UpdateExtensionResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline int GetVersionNumber() const { return m_versionNumber; }
74 inline void SetVersionNumber(int value) {
75 m_versionNumberHasBeenSet = true;
76 m_versionNumber = value;
77 }
79 SetVersionNumber(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetArn() const { return m_arn; }
89 template <typename ArnT = Aws::String>
90 void SetArn(ArnT&& value) {
91 m_arnHasBeenSet = true;
92 m_arn = std::forward<ArnT>(value);
93 }
94 template <typename ArnT = Aws::String>
96 SetArn(std::forward<ArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
112 UpdateExtensionResult& WithDescription(DescriptionT&& value) {
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<ActionPoint, Aws::Vector<Action>>& GetActions() const { return m_actions; }
123 template <typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
124 void SetActions(ActionsT&& value) {
125 m_actionsHasBeenSet = true;
126 m_actions = std::forward<ActionsT>(value);
127 }
128 template <typename ActionsT = Aws::Map<ActionPoint, Aws::Vector<Action>>>
130 SetActions(std::forward<ActionsT>(value));
131 return *this;
132 }
134 m_actionsHasBeenSet = true;
135 m_actions.emplace(key, value);
136 return *this;
137 }
139
141
147 inline const Aws::Map<Aws::String, Parameter>& GetParameters() const { return m_parameters; }
148 template <typename ParametersT = Aws::Map<Aws::String, Parameter>>
149 void SetParameters(ParametersT&& value) {
150 m_parametersHasBeenSet = true;
151 m_parameters = std::forward<ParametersT>(value);
152 }
153 template <typename ParametersT = Aws::Map<Aws::String, Parameter>>
154 UpdateExtensionResult& WithParameters(ParametersT&& value) {
155 SetParameters(std::forward<ParametersT>(value));
156 return *this;
157 }
158 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Parameter>
159 UpdateExtensionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
160 m_parametersHasBeenSet = true;
161 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
162 return *this;
163 }
165
167
168 inline const Aws::String& GetRequestId() const { return m_requestId; }
169 template <typename RequestIdT = Aws::String>
170 void SetRequestId(RequestIdT&& value) {
171 m_requestIdHasBeenSet = true;
172 m_requestId = std::forward<RequestIdT>(value);
173 }
174 template <typename RequestIdT = Aws::String>
176 SetRequestId(std::forward<RequestIdT>(value));
177 return *this;
178 }
180 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
181
182 private:
183 Aws::String m_id;
184
185 Aws::String m_name;
186
187 int m_versionNumber{0};
188
189 Aws::String m_arn;
190
191 Aws::String m_description;
192
194
196
197 Aws::String m_requestId;
198 Aws::Http::HttpResponseCode m_HttpResponseCode;
199 bool m_idHasBeenSet = false;
200 bool m_nameHasBeenSet = false;
201 bool m_versionNumberHasBeenSet = false;
202 bool m_arnHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_actionsHasBeenSet = false;
205 bool m_parametersHasBeenSet = false;
206 bool m_requestIdHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace AppConfig
211} // namespace Aws
AWS_APPCONFIG_API UpdateExtensionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateExtensionResult & WithRequestId(RequestIdT &&value)
UpdateExtensionResult & WithParameters(ParametersT &&value)
UpdateExtensionResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_APPCONFIG_API UpdateExtensionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateExtensionResult & WithActions(ActionsT &&value)
const Aws::Map< Aws::String, Parameter > & GetParameters() const
UpdateExtensionResult & WithDescription(DescriptionT &&value)
UpdateExtensionResult & WithArn(ArnT &&value)
UpdateExtensionResult & WithVersionNumber(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_APPCONFIG_API UpdateExtensionResult()=default
UpdateExtensionResult & AddActions(ActionPoint key, Aws::Vector< Action > value)
const Aws::Map< ActionPoint, Aws::Vector< Action > > & GetActions() const
UpdateExtensionResult & WithName(NameT &&value)
UpdateExtensionResult & WithId(IdT &&value)
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
Aws::Utils::Json::JsonValue JsonValue