AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ResourceMapping.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9#include <aws/resiliencehub/model/PhysicalResourceId.h>
10#include <aws/resiliencehub/model/ResourceMappingType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResilienceHub {
22namespace Model {
23
30 public:
31 AWS_RESILIENCEHUB_API ResourceMapping() = default;
32 AWS_RESILIENCEHUB_API ResourceMapping(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API ResourceMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetAppRegistryAppName() const { return m_appRegistryAppName; }
42 inline bool AppRegistryAppNameHasBeenSet() const { return m_appRegistryAppNameHasBeenSet; }
43 template <typename AppRegistryAppNameT = Aws::String>
44 void SetAppRegistryAppName(AppRegistryAppNameT&& value) {
45 m_appRegistryAppNameHasBeenSet = true;
46 m_appRegistryAppName = std::forward<AppRegistryAppNameT>(value);
47 }
48 template <typename AppRegistryAppNameT = Aws::String>
49 ResourceMapping& WithAppRegistryAppName(AppRegistryAppNameT&& value) {
50 SetAppRegistryAppName(std::forward<AppRegistryAppNameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetEksSourceName() const { return m_eksSourceName; }
63 inline bool EksSourceNameHasBeenSet() const { return m_eksSourceNameHasBeenSet; }
64 template <typename EksSourceNameT = Aws::String>
65 void SetEksSourceName(EksSourceNameT&& value) {
66 m_eksSourceNameHasBeenSet = true;
67 m_eksSourceName = std::forward<EksSourceNameT>(value);
68 }
69 template <typename EksSourceNameT = Aws::String>
70 ResourceMapping& WithEksSourceName(EksSourceNameT&& value) {
71 SetEksSourceName(std::forward<EksSourceNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetLogicalStackName() const { return m_logicalStackName; }
82 inline bool LogicalStackNameHasBeenSet() const { return m_logicalStackNameHasBeenSet; }
83 template <typename LogicalStackNameT = Aws::String>
84 void SetLogicalStackName(LogicalStackNameT&& value) {
85 m_logicalStackNameHasBeenSet = true;
86 m_logicalStackName = std::forward<LogicalStackNameT>(value);
87 }
88 template <typename LogicalStackNameT = Aws::String>
89 ResourceMapping& WithLogicalStackName(LogicalStackNameT&& value) {
90 SetLogicalStackName(std::forward<LogicalStackNameT>(value));
91 return *this;
92 }
94
96
99 inline ResourceMappingType GetMappingType() const { return m_mappingType; }
100 inline bool MappingTypeHasBeenSet() const { return m_mappingTypeHasBeenSet; }
102 m_mappingTypeHasBeenSet = true;
103 m_mappingType = value;
104 }
106 SetMappingType(value);
107 return *this;
108 }
110
112
115 inline const PhysicalResourceId& GetPhysicalResourceId() const { return m_physicalResourceId; }
116 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
117 template <typename PhysicalResourceIdT = PhysicalResourceId>
118 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
119 m_physicalResourceIdHasBeenSet = true;
120 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
121 }
122 template <typename PhysicalResourceIdT = PhysicalResourceId>
123 ResourceMapping& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
124 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
135 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
136 template <typename ResourceGroupNameT = Aws::String>
137 void SetResourceGroupName(ResourceGroupNameT&& value) {
138 m_resourceGroupNameHasBeenSet = true;
139 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
140 }
141 template <typename ResourceGroupNameT = Aws::String>
142 ResourceMapping& WithResourceGroupName(ResourceGroupNameT&& value) {
143 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
144 return *this;
145 }
147
149
153 inline const Aws::String& GetResourceName() const { return m_resourceName; }
154 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
155 template <typename ResourceNameT = Aws::String>
156 void SetResourceName(ResourceNameT&& value) {
157 m_resourceNameHasBeenSet = true;
158 m_resourceName = std::forward<ResourceNameT>(value);
159 }
160 template <typename ResourceNameT = Aws::String>
161 ResourceMapping& WithResourceName(ResourceNameT&& value) {
162 SetResourceName(std::forward<ResourceNameT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::String& GetTerraformSourceName() const { return m_terraformSourceName; }
173 inline bool TerraformSourceNameHasBeenSet() const { return m_terraformSourceNameHasBeenSet; }
174 template <typename TerraformSourceNameT = Aws::String>
175 void SetTerraformSourceName(TerraformSourceNameT&& value) {
176 m_terraformSourceNameHasBeenSet = true;
177 m_terraformSourceName = std::forward<TerraformSourceNameT>(value);
178 }
179 template <typename TerraformSourceNameT = Aws::String>
180 ResourceMapping& WithTerraformSourceName(TerraformSourceNameT&& value) {
181 SetTerraformSourceName(std::forward<TerraformSourceNameT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_appRegistryAppName;
187
188 Aws::String m_eksSourceName;
189
190 Aws::String m_logicalStackName;
191
193
194 PhysicalResourceId m_physicalResourceId;
195
196 Aws::String m_resourceGroupName;
197
198 Aws::String m_resourceName;
199
200 Aws::String m_terraformSourceName;
201 bool m_appRegistryAppNameHasBeenSet = false;
202 bool m_eksSourceNameHasBeenSet = false;
203 bool m_logicalStackNameHasBeenSet = false;
204 bool m_mappingTypeHasBeenSet = false;
205 bool m_physicalResourceIdHasBeenSet = false;
206 bool m_resourceGroupNameHasBeenSet = false;
207 bool m_resourceNameHasBeenSet = false;
208 bool m_terraformSourceNameHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace ResilienceHub
213} // namespace Aws
const Aws::String & GetEksSourceName() const
const PhysicalResourceId & GetPhysicalResourceId() const
ResourceMapping & WithPhysicalResourceId(PhysicalResourceIdT &&value)
const Aws::String & GetLogicalStackName() const
void SetEksSourceName(EksSourceNameT &&value)
void SetLogicalStackName(LogicalStackNameT &&value)
void SetResourceName(ResourceNameT &&value)
ResourceMapping & WithResourceGroupName(ResourceGroupNameT &&value)
ResourceMapping & WithAppRegistryAppName(AppRegistryAppNameT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceMapping & WithMappingType(ResourceMappingType value)
void SetAppRegistryAppName(AppRegistryAppNameT &&value)
AWS_RESILIENCEHUB_API ResourceMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceMapping & WithLogicalStackName(LogicalStackNameT &&value)
const Aws::String & GetResourceGroupName() const
const Aws::String & GetAppRegistryAppName() const
ResourceMapping & WithTerraformSourceName(TerraformSourceNameT &&value)
const Aws::String & GetTerraformSourceName() const
void SetMappingType(ResourceMappingType value)
ResourceMapping & WithEksSourceName(EksSourceNameT &&value)
const Aws::String & GetResourceName() const
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
ResourceMapping & WithResourceName(ResourceNameT &&value)
AWS_RESILIENCEHUB_API ResourceMapping(Aws::Utils::Json::JsonView jsonValue)
ResourceMappingType GetMappingType() const
void SetTerraformSourceName(TerraformSourceNameT &&value)
void SetResourceGroupName(ResourceGroupNameT &&value)
AWS_RESILIENCEHUB_API ResourceMapping()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue