AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace resiliencehubv2 {
20namespace Model {
21
28class Resource {
29 public:
30 AWS_RESILIENCEHUBV2_API Resource() = default;
31 AWS_RESILIENCEHUBV2_API Resource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetIdentifier() const { return m_identifier; }
40 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
47 Resource& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
58 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
59 template <typename AwsRegionT = Aws::String>
60 void SetAwsRegion(AwsRegionT&& value) {
61 m_awsRegionHasBeenSet = true;
62 m_awsRegion = std::forward<AwsRegionT>(value);
63 }
64 template <typename AwsRegionT = Aws::String>
65 Resource& WithAwsRegion(AwsRegionT&& value) {
66 SetAwsRegion(std::forward<AwsRegionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
76 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
77 template <typename AwsAccountIdT = Aws::String>
78 void SetAwsAccountId(AwsAccountIdT&& value) {
79 m_awsAccountIdHasBeenSet = true;
80 m_awsAccountId = std::forward<AwsAccountIdT>(value);
81 }
82 template <typename AwsAccountIdT = Aws::String>
83 Resource& WithAwsAccountId(AwsAccountIdT&& value) {
84 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetResourceType() const { return m_resourceType; }
94 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 template <typename ResourceTypeT = Aws::String>
96 void SetResourceType(ResourceTypeT&& value) {
97 m_resourceTypeHasBeenSet = true;
98 m_resourceType = std::forward<ResourceTypeT>(value);
99 }
100 template <typename ResourceTypeT = Aws::String>
101 Resource& WithResourceType(ResourceTypeT&& value) {
102 SetResourceType(std::forward<ResourceTypeT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
114 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
115 template <typename AvailabilityZoneIdT = Aws::String>
116 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
117 m_availabilityZoneIdHasBeenSet = true;
118 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
119 }
120 template <typename AvailabilityZoneIdT = Aws::String>
121 Resource& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
122 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetAvailabilityZoneName() const { return m_availabilityZoneName; }
133 inline bool AvailabilityZoneNameHasBeenSet() const { return m_availabilityZoneNameHasBeenSet; }
134 template <typename AvailabilityZoneNameT = Aws::String>
135 void SetAvailabilityZoneName(AvailabilityZoneNameT&& value) {
136 m_availabilityZoneNameHasBeenSet = true;
137 m_availabilityZoneName = std::forward<AvailabilityZoneNameT>(value);
138 }
139 template <typename AvailabilityZoneNameT = Aws::String>
140 Resource& WithAvailabilityZoneName(AvailabilityZoneNameT&& value) {
141 SetAvailabilityZoneName(std::forward<AvailabilityZoneNameT>(value));
142 return *this;
143 }
145
147
152 inline const Aws::String& GetContainmentParentId() const { return m_containmentParentId; }
153 inline bool ContainmentParentIdHasBeenSet() const { return m_containmentParentIdHasBeenSet; }
154 template <typename ContainmentParentIdT = Aws::String>
155 void SetContainmentParentId(ContainmentParentIdT&& value) {
156 m_containmentParentIdHasBeenSet = true;
157 m_containmentParentId = std::forward<ContainmentParentIdT>(value);
158 }
159 template <typename ContainmentParentIdT = Aws::String>
160 Resource& WithContainmentParentId(ContainmentParentIdT&& value) {
161 SetContainmentParentId(std::forward<ContainmentParentIdT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetLogicalResourceGroupId() const { return m_logicalResourceGroupId; }
172 inline bool LogicalResourceGroupIdHasBeenSet() const { return m_logicalResourceGroupIdHasBeenSet; }
173 template <typename LogicalResourceGroupIdT = Aws::String>
174 void SetLogicalResourceGroupId(LogicalResourceGroupIdT&& value) {
175 m_logicalResourceGroupIdHasBeenSet = true;
176 m_logicalResourceGroupId = std::forward<LogicalResourceGroupIdT>(value);
177 }
178 template <typename LogicalResourceGroupIdT = Aws::String>
179 Resource& WithLogicalResourceGroupId(LogicalResourceGroupIdT&& value) {
180 SetLogicalResourceGroupId(std::forward<LogicalResourceGroupIdT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_identifier;
186
187 Aws::String m_awsRegion;
188
189 Aws::String m_awsAccountId;
190
191 Aws::String m_resourceType;
192
193 Aws::String m_availabilityZoneId;
194
195 Aws::String m_availabilityZoneName;
196
197 Aws::String m_containmentParentId;
198
199 Aws::String m_logicalResourceGroupId;
200 bool m_identifierHasBeenSet = false;
201 bool m_awsRegionHasBeenSet = false;
202 bool m_awsAccountIdHasBeenSet = false;
203 bool m_resourceTypeHasBeenSet = false;
204 bool m_availabilityZoneIdHasBeenSet = false;
205 bool m_availabilityZoneNameHasBeenSet = false;
206 bool m_containmentParentIdHasBeenSet = false;
207 bool m_logicalResourceGroupIdHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace resiliencehubv2
212} // namespace Aws
Resource & WithContainmentParentId(ContainmentParentIdT &&value)
Definition Resource.h:160
void SetContainmentParentId(ContainmentParentIdT &&value)
Definition Resource.h:155
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIdentifier() const
Definition Resource.h:39
Resource & WithAwsRegion(AwsRegionT &&value)
Definition Resource.h:65
AWS_RESILIENCEHUBV2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsAccountId() const
Definition Resource.h:75
const Aws::String & GetAvailabilityZoneId() const
Definition Resource.h:113
Resource & WithAvailabilityZoneName(AvailabilityZoneNameT &&value)
Definition Resource.h:140
Resource & WithIdentifier(IdentifierT &&value)
Definition Resource.h:47
Resource & WithAwsAccountId(AwsAccountIdT &&value)
Definition Resource.h:83
void SetIdentifier(IdentifierT &&value)
Definition Resource.h:42
const Aws::String & GetAwsRegion() const
Definition Resource.h:57
void SetAvailabilityZoneName(AvailabilityZoneNameT &&value)
Definition Resource.h:135
AWS_RESILIENCEHUBV2_API Resource()=default
void SetResourceType(ResourceTypeT &&value)
Definition Resource.h:96
void SetLogicalResourceGroupId(LogicalResourceGroupIdT &&value)
Definition Resource.h:174
void SetAwsAccountId(AwsAccountIdT &&value)
Definition Resource.h:78
Resource & WithResourceType(ResourceTypeT &&value)
Definition Resource.h:101
const Aws::String & GetAvailabilityZoneName() const
Definition Resource.h:132
AWS_RESILIENCEHUBV2_API Resource(Aws::Utils::Json::JsonView jsonValue)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Resource.h:116
const Aws::String & GetResourceType() const
Definition Resource.h:93
const Aws::String & GetContainmentParentId() const
Definition Resource.h:152
void SetAwsRegion(AwsRegionT &&value)
Definition Resource.h:60
Resource & WithLogicalResourceGroupId(LogicalResourceGroupIdT &&value)
Definition Resource.h:179
const Aws::String & GetLogicalResourceGroupId() const
Definition Resource.h:171
Resource & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
Definition Resource.h:121
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue