AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAdditionalInfo(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
46 inline void SetAdditionalInfo(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
49 inline CreateAppVersionResourceRequest& AddAdditionalInfo(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; }
50 inline CreateAppVersionResourceRequest& AddAdditionalInfo(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; }
51 inline CreateAppVersionResourceRequest& AddAdditionalInfo(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; }
52 inline CreateAppVersionResourceRequest& AddAdditionalInfo(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; }
53 inline CreateAppVersionResourceRequest& AddAdditionalInfo(const char* key, Aws::Vector<Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; }
54 inline CreateAppVersionResourceRequest& AddAdditionalInfo(const char* key, const Aws::Vector<Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; }
56
58
67 inline const Aws::String& GetAppArn() const{ return m_appArn; }
68 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
69 inline void SetAppArn(const Aws::String& value) { m_appArnHasBeenSet = true; m_appArn = value; }
70 inline void SetAppArn(Aws::String&& value) { m_appArnHasBeenSet = true; m_appArn = std::move(value); }
71 inline void SetAppArn(const char* value) { m_appArnHasBeenSet = true; m_appArn.assign(value); }
72 inline CreateAppVersionResourceRequest& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;}
73 inline CreateAppVersionResourceRequest& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;}
74 inline CreateAppVersionResourceRequest& WithAppArn(const char* value) { SetAppArn(value); return *this;}
76
78
83 inline const Aws::Vector<Aws::String>& GetAppComponents() const{ return m_appComponents; }
84 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
85 inline void SetAppComponents(const Aws::Vector<Aws::String>& value) { m_appComponentsHasBeenSet = true; m_appComponents = value; }
86 inline void SetAppComponents(Aws::Vector<Aws::String>&& value) { m_appComponentsHasBeenSet = true; m_appComponents = std::move(value); }
89 inline CreateAppVersionResourceRequest& AddAppComponents(const Aws::String& value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(value); return *this; }
90 inline CreateAppVersionResourceRequest& AddAppComponents(Aws::String&& value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(std::move(value)); return *this; }
91 inline CreateAppVersionResourceRequest& AddAppComponents(const char* value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(value); return *this; }
93
95
98 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
99 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
100 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
101 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
102 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
104 inline CreateAppVersionResourceRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
105 inline CreateAppVersionResourceRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
107
109
112 inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
113 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
114 inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
115 inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
116 inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
117 inline CreateAppVersionResourceRequest& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
118 inline CreateAppVersionResourceRequest& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
119 inline CreateAppVersionResourceRequest& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
121
123
128 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
129 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
130 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
131 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
132 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
133 inline CreateAppVersionResourceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
134 inline CreateAppVersionResourceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
135 inline CreateAppVersionResourceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
137
139
142 inline const LogicalResourceId& GetLogicalResourceId() const{ return m_logicalResourceId; }
143 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
144 inline void SetLogicalResourceId(const LogicalResourceId& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
145 inline void SetLogicalResourceId(LogicalResourceId&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
149
151
154 inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
155 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
156 inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
157 inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
158 inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
161 inline CreateAppVersionResourceRequest& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
163
165
168 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
169 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
170 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
171 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
172 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
174 inline CreateAppVersionResourceRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
175 inline CreateAppVersionResourceRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
177
179
182 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
183 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
184 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
185 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
186 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
188 inline CreateAppVersionResourceRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
189 inline CreateAppVersionResourceRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
191 private:
192
194 bool m_additionalInfoHasBeenSet = false;
195
196 Aws::String m_appArn;
197 bool m_appArnHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_appComponents;
200 bool m_appComponentsHasBeenSet = false;
201
202 Aws::String m_awsAccountId;
203 bool m_awsAccountIdHasBeenSet = false;
204
205 Aws::String m_awsRegion;
206 bool m_awsRegionHasBeenSet = false;
207
208 Aws::String m_clientToken;
209 bool m_clientTokenHasBeenSet = false;
210
211 LogicalResourceId m_logicalResourceId;
212 bool m_logicalResourceIdHasBeenSet = false;
213
214 Aws::String m_physicalResourceId;
215 bool m_physicalResourceIdHasBeenSet = false;
216
217 Aws::String m_resourceName;
218 bool m_resourceNameHasBeenSet = false;
219
220 Aws::String m_resourceType;
221 bool m_resourceTypeHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace ResilienceHub
226} // namespace Aws
CreateAppVersionResourceRequest & WithAwsRegion(const Aws::String &value)
CreateAppVersionResourceRequest & WithResourceName(const Aws::String &value)
CreateAppVersionResourceRequest & AddAdditionalInfo(const Aws::String &key, const Aws::Vector< Aws::String > &value)
CreateAppVersionResourceRequest & WithAwsAccountId(const Aws::String &value)
CreateAppVersionResourceRequest & WithPhysicalResourceId(Aws::String &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
CreateAppVersionResourceRequest & WithAwsRegion(Aws::String &&value)
CreateAppVersionResourceRequest & WithResourceType(Aws::String &&value)
void SetAdditionalInfo(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
CreateAppVersionResourceRequest & WithPhysicalResourceId(const Aws::String &value)
void SetAdditionalInfo(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
CreateAppVersionResourceRequest & AddAppComponents(Aws::String &&value)
CreateAppVersionResourceRequest & WithResourceName(Aws::String &&value)
CreateAppVersionResourceRequest & WithAwsAccountId(Aws::String &&value)
CreateAppVersionResourceRequest & WithClientToken(const Aws::String &value)
CreateAppVersionResourceRequest & AddAppComponents(const Aws::String &value)
CreateAppVersionResourceRequest & WithLogicalResourceId(const LogicalResourceId &value)
CreateAppVersionResourceRequest & WithResourceName(const char *value)
CreateAppVersionResourceRequest & AddAdditionalInfo(const char *key, const Aws::Vector< Aws::String > &value)
CreateAppVersionResourceRequest & AddAdditionalInfo(const Aws::String &key, Aws::Vector< Aws::String > &&value)
CreateAppVersionResourceRequest & WithAdditionalInfo(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
CreateAppVersionResourceRequest & WithResourceType(const char *value)
CreateAppVersionResourceRequest & AddAdditionalInfo(Aws::String &&key, Aws::Vector< Aws::String > &&value)
CreateAppVersionResourceRequest & WithAppComponents(Aws::Vector< Aws::String > &&value)
CreateAppVersionResourceRequest & WithResourceType(const Aws::String &value)
CreateAppVersionResourceRequest & WithAppComponents(const Aws::Vector< Aws::String > &value)
CreateAppVersionResourceRequest & WithAdditionalInfo(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
CreateAppVersionResourceRequest & WithLogicalResourceId(LogicalResourceId &&value)
CreateAppVersionResourceRequest & AddAdditionalInfo(const char *key, Aws::Vector< Aws::String > &&value)
CreateAppVersionResourceRequest & WithAppArn(const Aws::String &value)
CreateAppVersionResourceRequest & WithAppArn(const char *value)
CreateAppVersionResourceRequest & WithPhysicalResourceId(const char *value)
CreateAppVersionResourceRequest & AddAdditionalInfo(Aws::String &&key, const Aws::Vector< Aws::String > &value)
CreateAppVersionResourceRequest & WithAwsAccountId(const char *value)
CreateAppVersionResourceRequest & WithAppArn(Aws::String &&value)
CreateAppVersionResourceRequest & AddAppComponents(const char *value)
CreateAppVersionResourceRequest & WithAwsRegion(const char *value)
CreateAppVersionResourceRequest & WithClientToken(Aws::String &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAdditionalInfo() const
CreateAppVersionResourceRequest & WithClientToken(const char *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