AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAppVersionResourceRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/resiliencehub/model/LogicalResourceId.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace ResilienceHub
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RESILIENCEHUB_API CreateAppVersionResourceRequest() = default;
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 "CreateAppVersionResource"; }
35
36 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const { return m_additionalInfo; }
44 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
45 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
46 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
47 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
48 CreateAppVersionResourceRequest& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
49 template<typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::Vector<Aws::String>>
50 CreateAppVersionResourceRequest& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
51 m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value)); return *this;
52 }
54
56
65 inline const Aws::String& GetAppArn() const { return m_appArn; }
66 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
67 template<typename AppArnT = Aws::String>
68 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet = true; m_appArn = std::forward<AppArnT>(value); }
69 template<typename AppArnT = Aws::String>
70 CreateAppVersionResourceRequest& WithAppArn(AppArnT&& value) { SetAppArn(std::forward<AppArnT>(value)); return *this;}
72
74
79 inline const Aws::Vector<Aws::String>& GetAppComponents() const { return m_appComponents; }
80 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
81 template<typename AppComponentsT = Aws::Vector<Aws::String>>
82 void SetAppComponents(AppComponentsT&& value) { m_appComponentsHasBeenSet = true; m_appComponents = std::forward<AppComponentsT>(value); }
83 template<typename AppComponentsT = Aws::Vector<Aws::String>>
84 CreateAppVersionResourceRequest& WithAppComponents(AppComponentsT&& value) { SetAppComponents(std::forward<AppComponentsT>(value)); return *this;}
85 template<typename AppComponentsT = Aws::String>
86 CreateAppVersionResourceRequest& AddAppComponents(AppComponentsT&& value) { m_appComponentsHasBeenSet = true; m_appComponents.emplace_back(std::forward<AppComponentsT>(value)); return *this; }
88
90
93 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
94 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
95 template<typename AwsAccountIdT = Aws::String>
96 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
97 template<typename AwsAccountIdT = Aws::String>
98 CreateAppVersionResourceRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
100
102
105 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
106 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
107 template<typename AwsRegionT = Aws::String>
108 void SetAwsRegion(AwsRegionT&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
109 template<typename AwsRegionT = Aws::String>
110 CreateAppVersionResourceRequest& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
112
114
119 inline const Aws::String& GetClientToken() const { return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 template<typename ClientTokenT = Aws::String>
122 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
123 template<typename ClientTokenT = Aws::String>
124 CreateAppVersionResourceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
126
128
131 inline const LogicalResourceId& GetLogicalResourceId() const { return m_logicalResourceId; }
132 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
133 template<typename LogicalResourceIdT = LogicalResourceId>
134 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
135 template<typename LogicalResourceIdT = LogicalResourceId>
136 CreateAppVersionResourceRequest& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
138
140
143 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
144 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
145 template<typename PhysicalResourceIdT = Aws::String>
146 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
147 template<typename PhysicalResourceIdT = Aws::String>
148 CreateAppVersionResourceRequest& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
150
152
155 inline const Aws::String& GetResourceName() const { return m_resourceName; }
156 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
157 template<typename ResourceNameT = Aws::String>
158 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
159 template<typename ResourceNameT = Aws::String>
160 CreateAppVersionResourceRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
162
164
167 inline const Aws::String& GetResourceType() const { return m_resourceType; }
168 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
169 template<typename ResourceTypeT = Aws::String>
170 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
171 template<typename ResourceTypeT = Aws::String>
172 CreateAppVersionResourceRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
174 private:
175
177 bool m_additionalInfoHasBeenSet = false;
178
179 Aws::String m_appArn;
180 bool m_appArnHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_appComponents;
183 bool m_appComponentsHasBeenSet = false;
184
185 Aws::String m_awsAccountId;
186 bool m_awsAccountIdHasBeenSet = false;
187
188 Aws::String m_awsRegion;
189 bool m_awsRegionHasBeenSet = false;
190
192 bool m_clientTokenHasBeenSet = true;
193
194 LogicalResourceId m_logicalResourceId;
195 bool m_logicalResourceIdHasBeenSet = false;
196
197 Aws::String m_physicalResourceId;
198 bool m_physicalResourceIdHasBeenSet = false;
199
200 Aws::String m_resourceName;
201 bool m_resourceNameHasBeenSet = false;
202
203 Aws::String m_resourceType;
204 bool m_resourceTypeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace ResilienceHub
209} // 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