AWS SDK for C++  1.9.16
AWS SDK for C++
CopySnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CopySnapshot"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetSourceSnapshotName() const{ return m_sourceSnapshotName; }
44 
50  inline bool SourceSnapshotNameHasBeenSet() const { return m_sourceSnapshotNameHasBeenSet; }
51 
57  inline void SetSourceSnapshotName(const Aws::String& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = value; }
58 
64  inline void SetSourceSnapshotName(Aws::String&& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = std::move(value); }
65 
71  inline void SetSourceSnapshotName(const char* value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName.assign(value); }
72 
78  inline CopySnapshotRequest& WithSourceSnapshotName(const Aws::String& value) { SetSourceSnapshotName(value); return *this;}
79 
85  inline CopySnapshotRequest& WithSourceSnapshotName(Aws::String&& value) { SetSourceSnapshotName(std::move(value)); return *this;}
86 
92  inline CopySnapshotRequest& WithSourceSnapshotName(const char* value) { SetSourceSnapshotName(value); return *this;}
93 
94 
103  inline const Aws::String& GetSourceResourceName() const{ return m_sourceResourceName; }
104 
113  inline bool SourceResourceNameHasBeenSet() const { return m_sourceResourceNameHasBeenSet; }
114 
123  inline void SetSourceResourceName(const Aws::String& value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName = value; }
124 
133  inline void SetSourceResourceName(Aws::String&& value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName = std::move(value); }
134 
143  inline void SetSourceResourceName(const char* value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName.assign(value); }
144 
153  inline CopySnapshotRequest& WithSourceResourceName(const Aws::String& value) { SetSourceResourceName(value); return *this;}
154 
163  inline CopySnapshotRequest& WithSourceResourceName(Aws::String&& value) { SetSourceResourceName(std::move(value)); return *this;}
164 
173  inline CopySnapshotRequest& WithSourceResourceName(const char* value) { SetSourceResourceName(value); return *this;}
174 
175 
189  inline const Aws::String& GetRestoreDate() const{ return m_restoreDate; }
190 
204  inline bool RestoreDateHasBeenSet() const { return m_restoreDateHasBeenSet; }
205 
219  inline void SetRestoreDate(const Aws::String& value) { m_restoreDateHasBeenSet = true; m_restoreDate = value; }
220 
234  inline void SetRestoreDate(Aws::String&& value) { m_restoreDateHasBeenSet = true; m_restoreDate = std::move(value); }
235 
249  inline void SetRestoreDate(const char* value) { m_restoreDateHasBeenSet = true; m_restoreDate.assign(value); }
250 
264  inline CopySnapshotRequest& WithRestoreDate(const Aws::String& value) { SetRestoreDate(value); return *this;}
265 
279  inline CopySnapshotRequest& WithRestoreDate(Aws::String&& value) { SetRestoreDate(std::move(value)); return *this;}
280 
294  inline CopySnapshotRequest& WithRestoreDate(const char* value) { SetRestoreDate(value); return *this;}
295 
296 
308  inline bool GetUseLatestRestorableAutoSnapshot() const{ return m_useLatestRestorableAutoSnapshot; }
309 
321  inline bool UseLatestRestorableAutoSnapshotHasBeenSet() const { return m_useLatestRestorableAutoSnapshotHasBeenSet; }
322 
334  inline void SetUseLatestRestorableAutoSnapshot(bool value) { m_useLatestRestorableAutoSnapshotHasBeenSet = true; m_useLatestRestorableAutoSnapshot = value; }
335 
347  inline CopySnapshotRequest& WithUseLatestRestorableAutoSnapshot(bool value) { SetUseLatestRestorableAutoSnapshot(value); return *this;}
348 
349 
353  inline const Aws::String& GetTargetSnapshotName() const{ return m_targetSnapshotName; }
354 
358  inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
359 
363  inline void SetTargetSnapshotName(const Aws::String& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = value; }
364 
368  inline void SetTargetSnapshotName(Aws::String&& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = std::move(value); }
369 
373  inline void SetTargetSnapshotName(const char* value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName.assign(value); }
374 
378  inline CopySnapshotRequest& WithTargetSnapshotName(const Aws::String& value) { SetTargetSnapshotName(value); return *this;}
379 
383  inline CopySnapshotRequest& WithTargetSnapshotName(Aws::String&& value) { SetTargetSnapshotName(std::move(value)); return *this;}
384 
388  inline CopySnapshotRequest& WithTargetSnapshotName(const char* value) { SetTargetSnapshotName(value); return *this;}
389 
390 
394  inline const RegionName& GetSourceRegion() const{ return m_sourceRegion; }
395 
399  inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
400 
404  inline void SetSourceRegion(const RegionName& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
405 
409  inline void SetSourceRegion(RegionName&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
410 
414  inline CopySnapshotRequest& WithSourceRegion(const RegionName& value) { SetSourceRegion(value); return *this;}
415 
419  inline CopySnapshotRequest& WithSourceRegion(RegionName&& value) { SetSourceRegion(std::move(value)); return *this;}
420 
421  private:
422 
423  Aws::String m_sourceSnapshotName;
424  bool m_sourceSnapshotNameHasBeenSet;
425 
426  Aws::String m_sourceResourceName;
427  bool m_sourceResourceNameHasBeenSet;
428 
429  Aws::String m_restoreDate;
430  bool m_restoreDateHasBeenSet;
431 
432  bool m_useLatestRestorableAutoSnapshot;
433  bool m_useLatestRestorableAutoSnapshotHasBeenSet;
434 
435  Aws::String m_targetSnapshotName;
436  bool m_targetSnapshotNameHasBeenSet;
437 
438  RegionName m_sourceRegion;
439  bool m_sourceRegionHasBeenSet;
440  };
441 
442 } // namespace Model
443 } // namespace Lightsail
444 } // namespace Aws
Aws::Lightsail::Model::CopySnapshotRequest::UseLatestRestorableAutoSnapshotHasBeenSet
bool UseLatestRestorableAutoSnapshotHasBeenSet() const
Definition: CopySnapshotRequest.h:321
Aws::Lightsail::Model::CopySnapshotRequest::RestoreDateHasBeenSet
bool RestoreDateHasBeenSet() const
Definition: CopySnapshotRequest.h:204
Aws::Lightsail::Model::CopySnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CopySnapshotRequest::SetRestoreDate
void SetRestoreDate(const char *value)
Definition: CopySnapshotRequest.h:249
Aws::Lightsail::Model::RegionName
RegionName
Definition: RegionName.h:17
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceRegion
CopySnapshotRequest & WithSourceRegion(const RegionName &value)
Definition: CopySnapshotRequest.h:414
Aws::Lightsail::Model::CopySnapshotRequest::WithRestoreDate
CopySnapshotRequest & WithRestoreDate(Aws::String &&value)
Definition: CopySnapshotRequest.h:279
Aws::Lightsail::Model::CopySnapshotRequest::WithTargetSnapshotName
CopySnapshotRequest & WithTargetSnapshotName(Aws::String &&value)
Definition: CopySnapshotRequest.h:383
Aws::Lightsail::Model::CopySnapshotRequest::SetTargetSnapshotName
void SetTargetSnapshotName(const Aws::String &value)
Definition: CopySnapshotRequest.h:363
Aws::Lightsail::Model::CopySnapshotRequest::CopySnapshotRequest
CopySnapshotRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CopySnapshotRequest::TargetSnapshotNameHasBeenSet
bool TargetSnapshotNameHasBeenSet() const
Definition: CopySnapshotRequest.h:358
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceResourceName
void SetSourceResourceName(Aws::String &&value)
Definition: CopySnapshotRequest.h:133
Aws::Lightsail::Model::CopySnapshotRequest::GetSourceResourceName
const Aws::String & GetSourceResourceName() const
Definition: CopySnapshotRequest.h:103
Aws::Lightsail::Model::CopySnapshotRequest::SetTargetSnapshotName
void SetTargetSnapshotName(Aws::String &&value)
Definition: CopySnapshotRequest.h:368
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceSnapshotName
CopySnapshotRequest & WithSourceSnapshotName(const char *value)
Definition: CopySnapshotRequest.h:92
Aws::Lightsail::Model::CopySnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceResourceName
void SetSourceResourceName(const Aws::String &value)
Definition: CopySnapshotRequest.h:123
Aws::Lightsail::Model::CopySnapshotRequest::SetTargetSnapshotName
void SetTargetSnapshotName(const char *value)
Definition: CopySnapshotRequest.h:373
Aws::Lightsail::Model::CopySnapshotRequest::WithRestoreDate
CopySnapshotRequest & WithRestoreDate(const Aws::String &value)
Definition: CopySnapshotRequest.h:264
Aws::Lightsail::Model::CopySnapshotRequest
Definition: CopySnapshotRequest.h:23
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceSnapshotName
CopySnapshotRequest & WithSourceSnapshotName(const Aws::String &value)
Definition: CopySnapshotRequest.h:78
Aws::Lightsail::Model::CopySnapshotRequest::WithTargetSnapshotName
CopySnapshotRequest & WithTargetSnapshotName(const char *value)
Definition: CopySnapshotRequest.h:388
Aws::Lightsail::Model::CopySnapshotRequest::GetUseLatestRestorableAutoSnapshot
bool GetUseLatestRestorableAutoSnapshot() const
Definition: CopySnapshotRequest.h:308
LightsailRequest.h
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceRegion
void SetSourceRegion(const RegionName &value)
Definition: CopySnapshotRequest.h:404
Aws::Lightsail::Model::CopySnapshotRequest::SetRestoreDate
void SetRestoreDate(Aws::String &&value)
Definition: CopySnapshotRequest.h:234
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceResourceName
CopySnapshotRequest & WithSourceResourceName(const char *value)
Definition: CopySnapshotRequest.h:173
Aws::Lightsail::Model::CopySnapshotRequest::GetSourceSnapshotName
const Aws::String & GetSourceSnapshotName() const
Definition: CopySnapshotRequest.h:43
Aws::Lightsail::Model::CopySnapshotRequest::SetRestoreDate
void SetRestoreDate(const Aws::String &value)
Definition: CopySnapshotRequest.h:219
Aws::Lightsail::Model::CopySnapshotRequest::SourceSnapshotNameHasBeenSet
bool SourceSnapshotNameHasBeenSet() const
Definition: CopySnapshotRequest.h:50
Aws::Lightsail::Model::CopySnapshotRequest::GetSourceRegion
const RegionName & GetSourceRegion() const
Definition: CopySnapshotRequest.h:394
Aws::Lightsail::Model::CopySnapshotRequest::SetUseLatestRestorableAutoSnapshot
void SetUseLatestRestorableAutoSnapshot(bool value)
Definition: CopySnapshotRequest.h:334
RegionName.h
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceRegion
CopySnapshotRequest & WithSourceRegion(RegionName &&value)
Definition: CopySnapshotRequest.h:419
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceSnapshotName
void SetSourceSnapshotName(Aws::String &&value)
Definition: CopySnapshotRequest.h:64
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceSnapshotName
CopySnapshotRequest & WithSourceSnapshotName(Aws::String &&value)
Definition: CopySnapshotRequest.h:85
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceSnapshotName
void SetSourceSnapshotName(const char *value)
Definition: CopySnapshotRequest.h:71
Aws::Lightsail::Model::CopySnapshotRequest::SourceResourceNameHasBeenSet
bool SourceResourceNameHasBeenSet() const
Definition: CopySnapshotRequest.h:113
Aws::Lightsail::Model::CopySnapshotRequest::SourceRegionHasBeenSet
bool SourceRegionHasBeenSet() const
Definition: CopySnapshotRequest.h:399
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CopySnapshotRequest::GetTargetSnapshotName
const Aws::String & GetTargetSnapshotName() const
Definition: CopySnapshotRequest.h:353
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceSnapshotName
void SetSourceSnapshotName(const Aws::String &value)
Definition: CopySnapshotRequest.h:57
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceResourceName
void SetSourceResourceName(const char *value)
Definition: CopySnapshotRequest.h:143
Aws::Lightsail::Model::CopySnapshotRequest::WithTargetSnapshotName
CopySnapshotRequest & WithTargetSnapshotName(const Aws::String &value)
Definition: CopySnapshotRequest.h:378
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceResourceName
CopySnapshotRequest & WithSourceResourceName(const Aws::String &value)
Definition: CopySnapshotRequest.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CopySnapshotRequest::WithRestoreDate
CopySnapshotRequest & WithRestoreDate(const char *value)
Definition: CopySnapshotRequest.h:294
Aws::Lightsail::Model::CopySnapshotRequest::WithSourceResourceName
CopySnapshotRequest & WithSourceResourceName(Aws::String &&value)
Definition: CopySnapshotRequest.h:163
Aws::Lightsail::Model::CopySnapshotRequest::WithUseLatestRestorableAutoSnapshot
CopySnapshotRequest & WithUseLatestRestorableAutoSnapshot(bool value)
Definition: CopySnapshotRequest.h:347
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CopySnapshotRequest::GetRestoreDate
const Aws::String & GetRestoreDate() const
Definition: CopySnapshotRequest.h:189
Aws::Lightsail::Model::CopySnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CopySnapshotRequest.h:31
Aws::Lightsail::Model::CopySnapshotRequest::SetSourceRegion
void SetSourceRegion(RegionName &&value)
Definition: CopySnapshotRequest.h:409