AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateAppVersionResourceRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resiliencehub/ResilienceHubRequest.h>
12#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
13#include <aws/resiliencehub/model/LogicalResourceId.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ResilienceHub {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUB_API CreateAppVersionResourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAppVersionResource"; }
32
33 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const { return m_additionalInfo; }
40 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
41 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
42 void SetAdditionalInfo(AdditionalInfoT&& value) {
43 m_additionalInfoHasBeenSet = true;
44 m_additionalInfo = std::forward<AdditionalInfoT>(value);
45 }
46 template <typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
48 SetAdditionalInfo(std::forward<AdditionalInfoT>(value));
49 return *this;
50 }
51 template <typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::Vector<Aws::String>>
52 CreateAppVersionResourceRequest& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
53 m_additionalInfoHasBeenSet = true;
54 m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value));
55 return *this;
56 }
58
60
69 inline const Aws::String& GetAppArn() const { return m_appArn; }
70 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
71 template <typename AppArnT = Aws::String>
72 void SetAppArn(AppArnT&& value) {
73 m_appArnHasBeenSet = true;
74 m_appArn = std::forward<AppArnT>(value);
75 }
76 template <typename AppArnT = Aws::String>
78 SetAppArn(std::forward<AppArnT>(value));
79 return *this;
80 }
82
84
89 inline const Aws::Vector<Aws::String>& GetAppComponents() const { return m_appComponents; }
90 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
91 template <typename AppComponentsT = Aws::Vector<Aws::String>>
92 void SetAppComponents(AppComponentsT&& value) {
93 m_appComponentsHasBeenSet = true;
94 m_appComponents = std::forward<AppComponentsT>(value);
95 }
96 template <typename AppComponentsT = Aws::Vector<Aws::String>>
98 SetAppComponents(std::forward<AppComponentsT>(value));
99 return *this;
100 }
101 template <typename AppComponentsT = Aws::String>
103 m_appComponentsHasBeenSet = true;
104 m_appComponents.emplace_back(std::forward<AppComponentsT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
114 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
115 template <typename AwsAccountIdT = Aws::String>
116 void SetAwsAccountId(AwsAccountIdT&& value) {
117 m_awsAccountIdHasBeenSet = true;
118 m_awsAccountId = std::forward<AwsAccountIdT>(value);
119 }
120 template <typename AwsAccountIdT = Aws::String>
122 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
132 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
133 template <typename AwsRegionT = Aws::String>
134 void SetAwsRegion(AwsRegionT&& value) {
135 m_awsRegionHasBeenSet = true;
136 m_awsRegion = std::forward<AwsRegionT>(value);
137 }
138 template <typename AwsRegionT = Aws::String>
140 SetAwsRegion(std::forward<AwsRegionT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::String& GetClientToken() const { return m_clientToken; }
152 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
153 template <typename ClientTokenT = Aws::String>
154 void SetClientToken(ClientTokenT&& value) {
155 m_clientTokenHasBeenSet = true;
156 m_clientToken = std::forward<ClientTokenT>(value);
157 }
158 template <typename ClientTokenT = Aws::String>
160 SetClientToken(std::forward<ClientTokenT>(value));
161 return *this;
162 }
164
166
169 inline const LogicalResourceId& GetLogicalResourceId() const { return m_logicalResourceId; }
170 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
171 template <typename LogicalResourceIdT = LogicalResourceId>
172 void SetLogicalResourceId(LogicalResourceIdT&& value) {
173 m_logicalResourceIdHasBeenSet = true;
174 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
175 }
176 template <typename LogicalResourceIdT = LogicalResourceId>
178 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
188 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
189 template <typename PhysicalResourceIdT = Aws::String>
190 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
191 m_physicalResourceIdHasBeenSet = true;
192 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
193 }
194 template <typename PhysicalResourceIdT = Aws::String>
196 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetResourceName() const { return m_resourceName; }
206 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
207 template <typename ResourceNameT = Aws::String>
208 void SetResourceName(ResourceNameT&& value) {
209 m_resourceNameHasBeenSet = true;
210 m_resourceName = std::forward<ResourceNameT>(value);
211 }
212 template <typename ResourceNameT = Aws::String>
214 SetResourceName(std::forward<ResourceNameT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::String& GetResourceType() const { return m_resourceType; }
224 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
225 template <typename ResourceTypeT = Aws::String>
226 void SetResourceType(ResourceTypeT&& value) {
227 m_resourceTypeHasBeenSet = true;
228 m_resourceType = std::forward<ResourceTypeT>(value);
229 }
230 template <typename ResourceTypeT = Aws::String>
232 SetResourceType(std::forward<ResourceTypeT>(value));
233 return *this;
234 }
236 private:
238
239 Aws::String m_appArn;
240
241 Aws::Vector<Aws::String> m_appComponents;
242
243 Aws::String m_awsAccountId;
244
245 Aws::String m_awsRegion;
246
248
249 LogicalResourceId m_logicalResourceId;
250
251 Aws::String m_physicalResourceId;
252
253 Aws::String m_resourceName;
254
255 Aws::String m_resourceType;
256 bool m_additionalInfoHasBeenSet = false;
257 bool m_appArnHasBeenSet = false;
258 bool m_appComponentsHasBeenSet = false;
259 bool m_awsAccountIdHasBeenSet = false;
260 bool m_awsRegionHasBeenSet = false;
261 bool m_clientTokenHasBeenSet = true;
262 bool m_logicalResourceIdHasBeenSet = false;
263 bool m_physicalResourceIdHasBeenSet = false;
264 bool m_resourceNameHasBeenSet = false;
265 bool m_resourceTypeHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace ResilienceHub
270} // namespace Aws
CreateAppVersionResourceRequest & WithAppArn(AppArnT &&value)
CreateAppVersionResourceRequest & WithAwsAccountId(AwsAccountIdT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
CreateAppVersionResourceRequest & WithAwsRegion(AwsRegionT &&value)
CreateAppVersionResourceRequest & WithAppComponents(AppComponentsT &&value)
CreateAppVersionResourceRequest & WithLogicalResourceId(LogicalResourceIdT &&value)
CreateAppVersionResourceRequest & WithResourceName(ResourceNameT &&value)
CreateAppVersionResourceRequest & AddAdditionalInfo(AdditionalInfoKeyT &&key, AdditionalInfoValueT &&value)
CreateAppVersionResourceRequest & WithClientToken(ClientTokenT &&value)
CreateAppVersionResourceRequest & AddAppComponents(AppComponentsT &&value)
CreateAppVersionResourceRequest & WithPhysicalResourceId(PhysicalResourceIdT &&value)
AWS_RESILIENCEHUB_API CreateAppVersionResourceRequest()=default
CreateAppVersionResourceRequest & WithAdditionalInfo(AdditionalInfoT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAdditionalInfo() const
CreateAppVersionResourceRequest & WithResourceType(ResourceTypeT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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