AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateAppVersionResourceRequest.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
15namespace Aws
16{
17namespace ResilienceHub
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_RESILIENCEHUB_API UpdateAppVersionResourceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAppVersionResource"; }
34
35 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const { return m_additionalInfo; }
43 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
44 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
45 void SetAdditionalInfo(AdditionalInfoT&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::forward<AdditionalInfoT>(value); }
46 template<typename AdditionalInfoT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
47 UpdateAppVersionResourceRequest& WithAdditionalInfo(AdditionalInfoT&& value) { SetAdditionalInfo(std::forward<AdditionalInfoT>(value)); return *this;}
48 template<typename AdditionalInfoKeyT = Aws::String, typename AdditionalInfoValueT = Aws::Vector<Aws::String>>
49 UpdateAppVersionResourceRequest& AddAdditionalInfo(AdditionalInfoKeyT&& key, AdditionalInfoValueT&& value) {
50 m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::forward<AdditionalInfoKeyT>(key), std::forward<AdditionalInfoValueT>(value)); return *this;
51 }
53
55
64 inline const Aws::String& GetAppArn() const { return m_appArn; }
65 inline bool AppArnHasBeenSet() const { return m_appArnHasBeenSet; }
66 template<typename AppArnT = Aws::String>
67 void SetAppArn(AppArnT&& value) { m_appArnHasBeenSet = true; m_appArn = std::forward<AppArnT>(value); }
68 template<typename AppArnT = Aws::String>
69 UpdateAppVersionResourceRequest& WithAppArn(AppArnT&& value) { SetAppArn(std::forward<AppArnT>(value)); return *this;}
71
73
78 inline const Aws::Vector<Aws::String>& GetAppComponents() const { return m_appComponents; }
79 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
80 template<typename AppComponentsT = Aws::Vector<Aws::String>>
81 void SetAppComponents(AppComponentsT&& value) { m_appComponentsHasBeenSet = true; m_appComponents = std::forward<AppComponentsT>(value); }
82 template<typename AppComponentsT = Aws::Vector<Aws::String>>
83 UpdateAppVersionResourceRequest& WithAppComponents(AppComponentsT&& value) { SetAppComponents(std::forward<AppComponentsT>(value)); return *this;}
84 template<typename AppComponentsT = Aws::String>
85 UpdateAppVersionResourceRequest& AddAppComponents(AppComponentsT&& value) { m_appComponentsHasBeenSet = true; m_appComponents.emplace_back(std::forward<AppComponentsT>(value)); return *this; }
87
89
92 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
93 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
94 template<typename AwsAccountIdT = Aws::String>
95 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
96 template<typename AwsAccountIdT = Aws::String>
97 UpdateAppVersionResourceRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
99
101
104 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
105 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
106 template<typename AwsRegionT = Aws::String>
107 void SetAwsRegion(AwsRegionT&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
108 template<typename AwsRegionT = Aws::String>
109 UpdateAppVersionResourceRequest& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
111
113
118 inline bool GetExcluded() const { return m_excluded; }
119 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
120 inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; }
121 inline UpdateAppVersionResourceRequest& WithExcluded(bool value) { SetExcluded(value); return *this;}
123
125
128 inline const LogicalResourceId& GetLogicalResourceId() const { return m_logicalResourceId; }
129 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
130 template<typename LogicalResourceIdT = LogicalResourceId>
131 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
132 template<typename LogicalResourceIdT = LogicalResourceId>
133 UpdateAppVersionResourceRequest& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
135
137
140 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
141 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
142 template<typename PhysicalResourceIdT = Aws::String>
143 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
144 template<typename PhysicalResourceIdT = Aws::String>
145 UpdateAppVersionResourceRequest& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
147
149
152 inline const Aws::String& GetResourceName() const { return m_resourceName; }
153 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
154 template<typename ResourceNameT = Aws::String>
155 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
156 template<typename ResourceNameT = Aws::String>
157 UpdateAppVersionResourceRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
159
161
164 inline const Aws::String& GetResourceType() const { return m_resourceType; }
165 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
166 template<typename ResourceTypeT = Aws::String>
167 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
168 template<typename ResourceTypeT = Aws::String>
169 UpdateAppVersionResourceRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
171 private:
172
174 bool m_additionalInfoHasBeenSet = false;
175
176 Aws::String m_appArn;
177 bool m_appArnHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_appComponents;
180 bool m_appComponentsHasBeenSet = false;
181
182 Aws::String m_awsAccountId;
183 bool m_awsAccountIdHasBeenSet = false;
184
185 Aws::String m_awsRegion;
186 bool m_awsRegionHasBeenSet = false;
187
188 bool m_excluded{false};
189 bool m_excludedHasBeenSet = false;
190
191 LogicalResourceId m_logicalResourceId;
192 bool m_logicalResourceIdHasBeenSet = false;
193
194 Aws::String m_physicalResourceId;
195 bool m_physicalResourceIdHasBeenSet = false;
196
197 Aws::String m_resourceName;
198 bool m_resourceNameHasBeenSet = false;
199
200 Aws::String m_resourceType;
201 bool m_resourceTypeHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace ResilienceHub
206} // 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