AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetResourceTargetResult.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/backup-external/model/ResourceProviderType.h>
9#include <aws/backup-external/model/ResourceTargetConfiguration.h>
10#include <aws/backup-external/model/ResourceTargetConfigurationSource.h>
11#include <aws/backup-external/model/ResourceTargetMetadata.h>
12#include <aws/backup-external/model/ResourceTargetStatus.h>
13#include <aws/backup-external/model/ResourceTargetType.h>
14#include <aws/core/http/HttpResponse.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace BackupExternal {
30namespace Model {
32 public:
33 AWS_BACKUPEXTERNAL_API GetResourceTargetResult() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 template <typename CreatedAtT = Aws::Utils::DateTime>
60 void SetCreatedAt(CreatedAtT&& value) {
61 m_createdAtHasBeenSet = true;
62 m_createdAt = std::forward<CreatedAtT>(value);
63 }
64 template <typename CreatedAtT = Aws::Utils::DateTime>
66 SetCreatedAt(std::forward<CreatedAtT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetExternalIdentifier() const { return m_externalIdentifier; }
76 template <typename ExternalIdentifierT = Aws::String>
77 void SetExternalIdentifier(ExternalIdentifierT&& value) {
78 m_externalIdentifierHasBeenSet = true;
79 m_externalIdentifier = std::forward<ExternalIdentifierT>(value);
80 }
81 template <typename ExternalIdentifierT = Aws::String>
82 GetResourceTargetResult& WithExternalIdentifier(ExternalIdentifierT&& value) {
83 SetExternalIdentifier(std::forward<ExternalIdentifierT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetExternalName() const { return m_externalName; }
93 template <typename ExternalNameT = Aws::String>
94 void SetExternalName(ExternalNameT&& value) {
95 m_externalNameHasBeenSet = true;
96 m_externalName = std::forward<ExternalNameT>(value);
97 }
98 template <typename ExternalNameT = Aws::String>
99 GetResourceTargetResult& WithExternalName(ExternalNameT&& value) {
100 SetExternalName(std::forward<ExternalNameT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Utils::DateTime& GetLastSyncedAt() const { return m_lastSyncedAt; }
111 template <typename LastSyncedAtT = Aws::Utils::DateTime>
112 void SetLastSyncedAt(LastSyncedAtT&& value) {
113 m_lastSyncedAtHasBeenSet = true;
114 m_lastSyncedAt = std::forward<LastSyncedAtT>(value);
115 }
116 template <typename LastSyncedAtT = Aws::Utils::DateTime>
118 SetLastSyncedAt(std::forward<LastSyncedAtT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetName() const { return m_name; }
128 template <typename NameT = Aws::String>
129 void SetName(NameT&& value) {
130 m_nameHasBeenSet = true;
131 m_name = std::forward<NameT>(value);
132 }
133 template <typename NameT = Aws::String>
135 SetName(std::forward<NameT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetProviderArn() const { return m_providerArn; }
145 template <typename ProviderArnT = Aws::String>
146 void SetProviderArn(ProviderArnT&& value) {
147 m_providerArnHasBeenSet = true;
148 m_providerArn = std::forward<ProviderArnT>(value);
149 }
150 template <typename ProviderArnT = Aws::String>
152 SetProviderArn(std::forward<ProviderArnT>(value));
153 return *this;
154 }
156
158
161 inline ResourceProviderType GetProviderType() const { return m_providerType; }
163 m_providerTypeHasBeenSet = true;
164 m_providerType = value;
165 }
167 SetProviderType(value);
168 return *this;
169 }
171
173
176 inline ResourceTargetStatus GetStatus() const { return m_status; }
177 inline void SetStatus(ResourceTargetStatus value) {
178 m_statusHasBeenSet = true;
179 m_status = value;
180 }
182 SetStatus(value);
183 return *this;
184 }
186
188
191 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
192 template <typename StatusMessageT = Aws::String>
193 void SetStatusMessage(StatusMessageT&& value) {
194 m_statusMessageHasBeenSet = true;
195 m_statusMessage = std::forward<StatusMessageT>(value);
196 }
197 template <typename StatusMessageT = Aws::String>
199 SetStatusMessage(std::forward<StatusMessageT>(value));
200 return *this;
201 }
203
205
208 inline const ResourceTargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
209 template <typename TargetConfigurationT = ResourceTargetConfiguration>
210 void SetTargetConfiguration(TargetConfigurationT&& value) {
211 m_targetConfigurationHasBeenSet = true;
212 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
213 }
214 template <typename TargetConfigurationT = ResourceTargetConfiguration>
215 GetResourceTargetResult& WithTargetConfiguration(TargetConfigurationT&& value) {
216 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
217 return *this;
218 }
220
222
225 inline ResourceTargetConfigurationSource GetTargetConfigurationSource() const { return m_targetConfigurationSource; }
227 m_targetConfigurationSourceHasBeenSet = true;
228 m_targetConfigurationSource = value;
229 }
235
237
240 inline const ResourceTargetMetadata& GetTargetMetadata() const { return m_targetMetadata; }
241 template <typename TargetMetadataT = ResourceTargetMetadata>
242 void SetTargetMetadata(TargetMetadataT&& value) {
243 m_targetMetadataHasBeenSet = true;
244 m_targetMetadata = std::forward<TargetMetadataT>(value);
245 }
246 template <typename TargetMetadataT = ResourceTargetMetadata>
247 GetResourceTargetResult& WithTargetMetadata(TargetMetadataT&& value) {
248 SetTargetMetadata(std::forward<TargetMetadataT>(value));
249 return *this;
250 }
252
254
257 inline ResourceTargetType GetTargetType() const { return m_targetType; }
259 m_targetTypeHasBeenSet = true;
260 m_targetType = value;
261 }
263 SetTargetType(value);
264 return *this;
265 }
267
269
272 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
273 template <typename UpdatedAtT = Aws::Utils::DateTime>
274 void SetUpdatedAt(UpdatedAtT&& value) {
275 m_updatedAtHasBeenSet = true;
276 m_updatedAt = std::forward<UpdatedAtT>(value);
277 }
278 template <typename UpdatedAtT = Aws::Utils::DateTime>
280 SetUpdatedAt(std::forward<UpdatedAtT>(value));
281 return *this;
282 }
284
286
287 inline const Aws::String& GetRequestId() const { return m_requestId; }
288 template <typename RequestIdT = Aws::String>
289 void SetRequestId(RequestIdT&& value) {
290 m_requestIdHasBeenSet = true;
291 m_requestId = std::forward<RequestIdT>(value);
292 }
293 template <typename RequestIdT = Aws::String>
295 SetRequestId(std::forward<RequestIdT>(value));
296 return *this;
297 }
299 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
300
301 private:
302 Aws::String m_arn;
303
304 Aws::Utils::DateTime m_createdAt{};
305
306 Aws::String m_externalIdentifier;
307
308 Aws::String m_externalName;
309
310 Aws::Utils::DateTime m_lastSyncedAt{};
311
312 Aws::String m_name;
313
314 Aws::String m_providerArn;
315
317
319
320 Aws::String m_statusMessage;
321
322 ResourceTargetConfiguration m_targetConfiguration;
323
325
326 ResourceTargetMetadata m_targetMetadata;
327
329
330 Aws::Utils::DateTime m_updatedAt{};
331
332 Aws::String m_requestId;
333 Aws::Http::HttpResponseCode m_HttpResponseCode;
334 bool m_arnHasBeenSet = false;
335 bool m_createdAtHasBeenSet = false;
336 bool m_externalIdentifierHasBeenSet = false;
337 bool m_externalNameHasBeenSet = false;
338 bool m_lastSyncedAtHasBeenSet = false;
339 bool m_nameHasBeenSet = false;
340 bool m_providerArnHasBeenSet = false;
341 bool m_providerTypeHasBeenSet = false;
342 bool m_statusHasBeenSet = false;
343 bool m_statusMessageHasBeenSet = false;
344 bool m_targetConfigurationHasBeenSet = false;
345 bool m_targetConfigurationSourceHasBeenSet = false;
346 bool m_targetMetadataHasBeenSet = false;
347 bool m_targetTypeHasBeenSet = false;
348 bool m_updatedAtHasBeenSet = false;
349 bool m_requestIdHasBeenSet = false;
350};
351
352} // namespace Model
353} // namespace BackupExternal
354} // namespace Aws
AWS_BACKUPEXTERNAL_API GetResourceTargetResult()=default
GetResourceTargetResult & WithTargetConfigurationSource(ResourceTargetConfigurationSource value)
GetResourceTargetResult & WithName(NameT &&value)
GetResourceTargetResult & WithTargetType(ResourceTargetType value)
GetResourceTargetResult & WithProviderArn(ProviderArnT &&value)
GetResourceTargetResult & WithTargetMetadata(TargetMetadataT &&value)
void SetTargetConfigurationSource(ResourceTargetConfigurationSource value)
const ResourceTargetConfiguration & GetTargetConfiguration() const
GetResourceTargetResult & WithLastSyncedAt(LastSyncedAtT &&value)
GetResourceTargetResult & WithExternalName(ExternalNameT &&value)
GetResourceTargetResult & WithUpdatedAt(UpdatedAtT &&value)
GetResourceTargetResult & WithStatus(ResourceTargetStatus value)
GetResourceTargetResult & WithTargetConfiguration(TargetConfigurationT &&value)
GetResourceTargetResult & WithStatusMessage(StatusMessageT &&value)
ResourceTargetConfigurationSource GetTargetConfigurationSource() const
AWS_BACKUPEXTERNAL_API GetResourceTargetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ResourceTargetMetadata & GetTargetMetadata() const
GetResourceTargetResult & WithRequestId(RequestIdT &&value)
GetResourceTargetResult & WithExternalIdentifier(ExternalIdentifierT &&value)
AWS_BACKUPEXTERNAL_API GetResourceTargetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetResourceTargetResult & WithCreatedAt(CreatedAtT &&value)
GetResourceTargetResult & WithProviderType(ResourceProviderType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue