AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhysicalResource.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehub/model/LogicalResourceId.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/resiliencehub/model/PhysicalResourceId.h>
13#include <aws/resiliencehub/model/ResourceSourceType.h>
14#include <aws/resiliencehub/model/AppComponent.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ResilienceHub
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_RESILIENCEHUB_API PhysicalResource();
43 AWS_RESILIENCEHUB_API PhysicalResource(Aws::Utils::Json::JsonView jsonValue);
44 AWS_RESILIENCEHUB_API PhysicalResource& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
60 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetAdditionalInfo() const{ return m_additionalInfo; }
61 inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
62 inline void SetAdditionalInfo(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
63 inline void SetAdditionalInfo(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
66 inline PhysicalResource& AddAdditionalInfo(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; }
67 inline PhysicalResource& AddAdditionalInfo(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; }
68 inline PhysicalResource& AddAdditionalInfo(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; }
69 inline PhysicalResource& AddAdditionalInfo(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; }
70 inline PhysicalResource& AddAdditionalInfo(const char* key, Aws::Vector<Aws::String>&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; }
71 inline PhysicalResource& AddAdditionalInfo(const char* key, const Aws::Vector<Aws::String>& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; }
73
75
78 inline const Aws::Vector<AppComponent>& GetAppComponents() const{ return m_appComponents; }
79 inline bool AppComponentsHasBeenSet() const { return m_appComponentsHasBeenSet; }
80 inline void SetAppComponents(const Aws::Vector<AppComponent>& value) { m_appComponentsHasBeenSet = true; m_appComponents = value; }
81 inline void SetAppComponents(Aws::Vector<AppComponent>&& value) { m_appComponentsHasBeenSet = true; m_appComponents = std::move(value); }
83 inline PhysicalResource& WithAppComponents(Aws::Vector<AppComponent>&& value) { SetAppComponents(std::move(value)); return *this;}
84 inline PhysicalResource& AddAppComponents(const AppComponent& value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(value); return *this; }
85 inline PhysicalResource& AddAppComponents(AppComponent&& value) { m_appComponentsHasBeenSet = true; m_appComponents.push_back(std::move(value)); return *this; }
87
89
92 inline bool GetExcluded() const{ return m_excluded; }
93 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
94 inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; }
95 inline PhysicalResource& WithExcluded(bool value) { SetExcluded(value); return *this;}
97
99
102 inline const LogicalResourceId& GetLogicalResourceId() const{ return m_logicalResourceId; }
103 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
104 inline void SetLogicalResourceId(const LogicalResourceId& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
105 inline void SetLogicalResourceId(LogicalResourceId&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
107 inline PhysicalResource& WithLogicalResourceId(LogicalResourceId&& value) { SetLogicalResourceId(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetParentResourceName() const{ return m_parentResourceName; }
115 inline bool ParentResourceNameHasBeenSet() const { return m_parentResourceNameHasBeenSet; }
116 inline void SetParentResourceName(const Aws::String& value) { m_parentResourceNameHasBeenSet = true; m_parentResourceName = value; }
117 inline void SetParentResourceName(Aws::String&& value) { m_parentResourceNameHasBeenSet = true; m_parentResourceName = std::move(value); }
118 inline void SetParentResourceName(const char* value) { m_parentResourceNameHasBeenSet = true; m_parentResourceName.assign(value); }
119 inline PhysicalResource& WithParentResourceName(const Aws::String& value) { SetParentResourceName(value); return *this;}
120 inline PhysicalResource& WithParentResourceName(Aws::String&& value) { SetParentResourceName(std::move(value)); return *this;}
121 inline PhysicalResource& WithParentResourceName(const char* value) { SetParentResourceName(value); return *this;}
123
125
128 inline const PhysicalResourceId& GetPhysicalResourceId() const{ return m_physicalResourceId; }
129 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
130 inline void SetPhysicalResourceId(const PhysicalResourceId& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
131 inline void SetPhysicalResourceId(PhysicalResourceId&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
133 inline PhysicalResource& WithPhysicalResourceId(PhysicalResourceId&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
135
137
140 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
141 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
142 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
143 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
144 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
145 inline PhysicalResource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
146 inline PhysicalResource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
147 inline PhysicalResource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
149
151
154 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
155 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
156 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
157 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
158 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
159 inline PhysicalResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
160 inline PhysicalResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
161 inline PhysicalResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
163
165
168 inline const ResourceSourceType& GetSourceType() const{ return m_sourceType; }
169 inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; }
170 inline void SetSourceType(const ResourceSourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; }
171 inline void SetSourceType(ResourceSourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); }
172 inline PhysicalResource& WithSourceType(const ResourceSourceType& value) { SetSourceType(value); return *this;}
173 inline PhysicalResource& WithSourceType(ResourceSourceType&& value) { SetSourceType(std::move(value)); return *this;}
175 private:
176
178 bool m_additionalInfoHasBeenSet = false;
179
180 Aws::Vector<AppComponent> m_appComponents;
181 bool m_appComponentsHasBeenSet = false;
182
183 bool m_excluded;
184 bool m_excludedHasBeenSet = false;
185
186 LogicalResourceId m_logicalResourceId;
187 bool m_logicalResourceIdHasBeenSet = false;
188
189 Aws::String m_parentResourceName;
190 bool m_parentResourceNameHasBeenSet = false;
191
192 PhysicalResourceId m_physicalResourceId;
193 bool m_physicalResourceIdHasBeenSet = false;
194
195 Aws::String m_resourceName;
196 bool m_resourceNameHasBeenSet = false;
197
198 Aws::String m_resourceType;
199 bool m_resourceTypeHasBeenSet = false;
200
201 ResourceSourceType m_sourceType;
202 bool m_sourceTypeHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace ResilienceHub
207} // namespace Aws
PhysicalResource & WithPhysicalResourceId(const PhysicalResourceId &value)
PhysicalResource & AddAdditionalInfo(const char *key, Aws::Vector< Aws::String > &&value)
void SetLogicalResourceId(const LogicalResourceId &value)
PhysicalResource & AddAdditionalInfo(const Aws::String &key, const Aws::Vector< Aws::String > &value)
PhysicalResource & AddAppComponents(AppComponent &&value)
void SetPhysicalResourceId(const PhysicalResourceId &value)
PhysicalResource & WithParentResourceName(const char *value)
const Aws::Vector< AppComponent > & GetAppComponents() const
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAdditionalInfo(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
PhysicalResource & WithAppComponents(const Aws::Vector< AppComponent > &value)
AWS_RESILIENCEHUB_API PhysicalResource(Aws::Utils::Json::JsonView jsonValue)
void SetAppComponents(Aws::Vector< AppComponent > &&value)
PhysicalResource & WithResourceName(Aws::String &&value)
PhysicalResource & WithSourceType(const ResourceSourceType &value)
PhysicalResource & WithLogicalResourceId(LogicalResourceId &&value)
AWS_RESILIENCEHUB_API PhysicalResource & operator=(Aws::Utils::Json::JsonView jsonValue)
PhysicalResource & AddAdditionalInfo(Aws::String &&key, const Aws::Vector< Aws::String > &value)
void SetPhysicalResourceId(PhysicalResourceId &&value)
PhysicalResource & AddAppComponents(const AppComponent &value)
void SetParentResourceName(const Aws::String &value)
PhysicalResource & WithParentResourceName(const Aws::String &value)
PhysicalResource & WithResourceName(const Aws::String &value)
PhysicalResource & WithAdditionalInfo(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
PhysicalResource & WithParentResourceName(Aws::String &&value)
PhysicalResource & AddAdditionalInfo(Aws::String &&key, Aws::Vector< Aws::String > &&value)
const LogicalResourceId & GetLogicalResourceId() const
PhysicalResource & AddAdditionalInfo(const char *key, const Aws::Vector< Aws::String > &value)
PhysicalResource & WithResourceType(const char *value)
const Aws::String & GetParentResourceName() const
PhysicalResource & WithLogicalResourceId(const LogicalResourceId &value)
void SetSourceType(ResourceSourceType &&value)
void SetAdditionalInfo(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
PhysicalResource & WithAppComponents(Aws::Vector< AppComponent > &&value)
PhysicalResource & WithExcluded(bool value)
void SetAppComponents(const Aws::Vector< AppComponent > &value)
PhysicalResource & WithResourceType(Aws::String &&value)
const PhysicalResourceId & GetPhysicalResourceId() const
PhysicalResource & WithSourceType(ResourceSourceType &&value)
PhysicalResource & AddAdditionalInfo(const Aws::String &key, Aws::Vector< Aws::String > &&value)
const ResourceSourceType & GetSourceType() const
PhysicalResource & WithResourceName(const char *value)
void SetResourceName(const Aws::String &value)
PhysicalResource & WithResourceType(const Aws::String &value)
void SetLogicalResourceId(LogicalResourceId &&value)
void SetResourceType(const Aws::String &value)
void SetSourceType(const ResourceSourceType &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetAdditionalInfo() const
PhysicalResource & WithAdditionalInfo(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
PhysicalResource & WithPhysicalResourceId(PhysicalResourceId &&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
Aws::Utils::Json::JsonValue JsonValue