AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateAppVersionResourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehub/ResilienceHubRequest.h>
11#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
12#include <aws/resiliencehub/model/LogicalResourceId.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ResilienceHub {
18namespace Model {
19
23 public:
24 AWS_RESILIENCEHUB_API UpdateAppVersionResourceRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateAppVersionResource"; }
31
32 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const { return m_additionalInfo; }
39 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
40 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
41 void SetAdditionalInfo(AdditionalInfoT&& value) {
42 m_additionalInfoHasBeenSet = true;
43 m_additionalInfo = std::forward<AdditionalInfoT>(value);
44 }
45 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
47 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
48 return *this;
49 }
50 template <typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::Vector<Aws::String>>
51 UpdateAppVersionResourceRequest& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
52 m_additionalInfoHasBeenSet = true;
53 m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value));
54 return *this;
55 }
57
59
68 inline const Aws::String& GetAppArn() const { return m_appArn; }
69 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
70 template <typename AppArnT = Aws::String>
71 void SetAppArn(AppArnT&& value) {
72 m_appArnHasBeenSet = true;
73 m_appArn = std::forward<AppArnT>(value);
74 }
75 template <typename AppArnT = Aws::String>
77 SetAppArn(std::forward<AppArnT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::Vector<Aws::String>& GetAppComponents() const { return m_appComponents; }
89 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
90 template <typename AppComponentsT = Aws::Vector<Aws::String>>
91 void SetAppComponents(AppComponentsT&& value) {
92 m_appComponentsHasBeenSet = true;
93 m_appComponents = std::forward<AppComponentsT>(value);
94 }
95 template <typename AppComponentsT = Aws::Vector<Aws::String>>
97 SetAppComponents(std::forward<AppComponentsT>(value));
98 return *this;
99 }
100 template <typename AppComponentsT = Aws::String>
102 m_appComponentsHasBeenSet = true;
103 m_appComponents.emplace_back(std::forward<AppComponentsT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
113 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
114 template <typename AwsAccountIdT = Aws::String>
115 void SetAwsAccountId(AwsAccountIdT&& value) {
116 m_awsAccountIdHasBeenSet = true;
117 m_awsAccountId = std::forward<AwsAccountIdT>(value);
118 }
119 template <typename AwsAccountIdT = Aws::String>
121 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
131 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
132 template <typename AwsRegionT = Aws::String>
133 void SetAwsRegion(AwsRegionT&& value) {
134 m_awsRegionHasBeenSet = true;
135 m_awsRegion = std::forward<AwsRegionT>(value);
136 }
137 template <typename AwsRegionT = Aws::String>
139 SetAwsRegion(std::forward<AwsRegionT>(value));
140 return *this;
141 }
143
145
150 inline bool GetExcluded() const { return m_excluded; }
151 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
152 inline void SetExcluded(bool value) {
153 m_excludedHasBeenSet = true;
154 m_excluded = value;
155 }
157 SetExcluded(value);
158 return *this;
159 }
161
163
166 inline const LogicalResourceId& GetLogicalResourceId() const { return m_logicalResourceId; }
167 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
168 template <typename LogicalResourceIdT = LogicalResourceId>
169 void SetLogicalResourceId(LogicalResourceIdT&& value) {
170 m_logicalResourceIdHasBeenSet = true;
171 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
172 }
173 template <typename LogicalResourceIdT = LogicalResourceId>
175 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
185 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
186 template <typename PhysicalResourceIdT = Aws::String>
187 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
188 m_physicalResourceIdHasBeenSet = true;
189 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
190 }
191 template <typename PhysicalResourceIdT = Aws::String>
193 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetResourceName() const { return m_resourceName; }
203 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
204 template <typename ResourceNameT = Aws::String>
205 void SetResourceName(ResourceNameT&& value) {
206 m_resourceNameHasBeenSet = true;
207 m_resourceName = std::forward<ResourceNameT>(value);
208 }
209 template <typename ResourceNameT = Aws::String>
211 SetResourceName(std::forward<ResourceNameT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetResourceType() const { return m_resourceType; }
221 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
222 template <typename ResourceTypeT = Aws::String>
223 void SetResourceType(ResourceTypeT&& value) {
224 m_resourceTypeHasBeenSet = true;
225 m_resourceType = std::forward<ResourceTypeT>(value);
226 }
227 template <typename ResourceTypeT = Aws::String>
229 SetResourceType(std::forward<ResourceTypeT>(value));
230 return *this;
231 }
233 private:
235
236 Aws::String m_appArn;
237
238 Aws::Vector<Aws::String> m_appComponents;
239
240 Aws::String m_awsAccountId;
241
242 Aws::String m_awsRegion;
243
244 bool m_excluded{false};
245
246 LogicalResourceId m_logicalResourceId;
247
248 Aws::String m_physicalResourceId;
249
250 Aws::String m_resourceName;
251
252 Aws::String m_resourceType;
253 bool m_additionalInfoHasBeenSet = false;
254 bool m_appArnHasBeenSet = false;
255 bool m_appComponentsHasBeenSet = false;
256 bool m_awsAccountIdHasBeenSet = false;
257 bool m_awsRegionHasBeenSet = false;
258 bool m_excludedHasBeenSet = false;
259 bool m_logicalResourceIdHasBeenSet = false;
260 bool m_physicalResourceIdHasBeenSet = false;
261 bool m_resourceNameHasBeenSet = false;
262 bool m_resourceTypeHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace ResilienceHub
267} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAdditionalInfo() const
UpdateAppVersionResourceRequest & WithAwsRegion(AwsRegionT &&value)
UpdateAppVersionResourceRequest & AddAppComponents(AppComponentsT &&value)
UpdateAppVersionResourceRequest & WithAppArn(AppArnT &&value)
UpdateAppVersionResourceRequest & WithResourceName(ResourceNameT &&value)
UpdateAppVersionResourceRequest & WithAdditionalInfo(AdditionalInfoT &&value)
UpdateAppVersionResourceRequest & WithPhysicalResourceId(PhysicalResourceIdT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
UpdateAppVersionResourceRequest & WithAppComponents(AppComponentsT &&value)
AWS_RESILIENCEHUB_API UpdateAppVersionResourceRequest()=default
UpdateAppVersionResourceRequest & WithResourceType(ResourceTypeT &&value)
UpdateAppVersionResourceRequest & WithAwsAccountId(AwsAccountIdT &&value)
UpdateAppVersionResourceRequest & AddAdditionalInfo(AdditionalInfoKeyT &&key, AdditionalInfoValueT &&value)
UpdateAppVersionResourceRequest & WithLogicalResourceId(LogicalResourceIdT &&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