AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CopySnapshotRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/RegionName.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API CopySnapshotRequest();
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetSourceSnapshotName() const{ return m_sourceSnapshotName; }
45 inline bool SourceSnapshotNameHasBeenSet() const { return m_sourceSnapshotNameHasBeenSet; }
46 inline void SetSourceSnapshotName(const Aws::String& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = value; }
47 inline void SetSourceSnapshotName(Aws::String&& value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName = std::move(value); }
48 inline void SetSourceSnapshotName(const char* value) { m_sourceSnapshotNameHasBeenSet = true; m_sourceSnapshotName.assign(value); }
49 inline CopySnapshotRequest& WithSourceSnapshotName(const Aws::String& value) { SetSourceSnapshotName(value); return *this;}
50 inline CopySnapshotRequest& WithSourceSnapshotName(Aws::String&& value) { SetSourceSnapshotName(std::move(value)); return *this;}
51 inline CopySnapshotRequest& WithSourceSnapshotName(const char* value) { SetSourceSnapshotName(value); return *this;}
53
55
63 inline const Aws::String& GetSourceResourceName() const{ return m_sourceResourceName; }
64 inline bool SourceResourceNameHasBeenSet() const { return m_sourceResourceNameHasBeenSet; }
65 inline void SetSourceResourceName(const Aws::String& value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName = value; }
66 inline void SetSourceResourceName(Aws::String&& value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName = std::move(value); }
67 inline void SetSourceResourceName(const char* value) { m_sourceResourceNameHasBeenSet = true; m_sourceResourceName.assign(value); }
68 inline CopySnapshotRequest& WithSourceResourceName(const Aws::String& value) { SetSourceResourceName(value); return *this;}
69 inline CopySnapshotRequest& WithSourceResourceName(Aws::String&& value) { SetSourceResourceName(std::move(value)); return *this;}
70 inline CopySnapshotRequest& WithSourceResourceName(const char* value) { SetSourceResourceName(value); return *this;}
72
74
87 inline const Aws::String& GetRestoreDate() const{ return m_restoreDate; }
88 inline bool RestoreDateHasBeenSet() const { return m_restoreDateHasBeenSet; }
89 inline void SetRestoreDate(const Aws::String& value) { m_restoreDateHasBeenSet = true; m_restoreDate = value; }
90 inline void SetRestoreDate(Aws::String&& value) { m_restoreDateHasBeenSet = true; m_restoreDate = std::move(value); }
91 inline void SetRestoreDate(const char* value) { m_restoreDateHasBeenSet = true; m_restoreDate.assign(value); }
92 inline CopySnapshotRequest& WithRestoreDate(const Aws::String& value) { SetRestoreDate(value); return *this;}
93 inline CopySnapshotRequest& WithRestoreDate(Aws::String&& value) { SetRestoreDate(std::move(value)); return *this;}
94 inline CopySnapshotRequest& WithRestoreDate(const char* value) { SetRestoreDate(value); return *this;}
96
98
109 inline bool GetUseLatestRestorableAutoSnapshot() const{ return m_useLatestRestorableAutoSnapshot; }
110 inline bool UseLatestRestorableAutoSnapshotHasBeenSet() const { return m_useLatestRestorableAutoSnapshotHasBeenSet; }
111 inline void SetUseLatestRestorableAutoSnapshot(bool value) { m_useLatestRestorableAutoSnapshotHasBeenSet = true; m_useLatestRestorableAutoSnapshot = value; }
114
116
119 inline const Aws::String& GetTargetSnapshotName() const{ return m_targetSnapshotName; }
120 inline bool TargetSnapshotNameHasBeenSet() const { return m_targetSnapshotNameHasBeenSet; }
121 inline void SetTargetSnapshotName(const Aws::String& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = value; }
122 inline void SetTargetSnapshotName(Aws::String&& value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName = std::move(value); }
123 inline void SetTargetSnapshotName(const char* value) { m_targetSnapshotNameHasBeenSet = true; m_targetSnapshotName.assign(value); }
125 inline CopySnapshotRequest& WithTargetSnapshotName(Aws::String&& value) { SetTargetSnapshotName(std::move(value)); return *this;}
126 inline CopySnapshotRequest& WithTargetSnapshotName(const char* value) { SetTargetSnapshotName(value); return *this;}
128
130
134 inline const RegionName& GetSourceRegion() const{ return m_sourceRegion; }
135 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
136 inline void SetSourceRegion(const RegionName& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
137 inline void SetSourceRegion(RegionName&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
138 inline CopySnapshotRequest& WithSourceRegion(const RegionName& value) { SetSourceRegion(value); return *this;}
139 inline CopySnapshotRequest& WithSourceRegion(RegionName&& value) { SetSourceRegion(std::move(value)); return *this;}
141 private:
142
143 Aws::String m_sourceSnapshotName;
144 bool m_sourceSnapshotNameHasBeenSet = false;
145
146 Aws::String m_sourceResourceName;
147 bool m_sourceResourceNameHasBeenSet = false;
148
149 Aws::String m_restoreDate;
150 bool m_restoreDateHasBeenSet = false;
151
152 bool m_useLatestRestorableAutoSnapshot;
153 bool m_useLatestRestorableAutoSnapshotHasBeenSet = false;
154
155 Aws::String m_targetSnapshotName;
156 bool m_targetSnapshotNameHasBeenSet = false;
157
158 RegionName m_sourceRegion;
159 bool m_sourceRegionHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Lightsail
164} // namespace Aws
void SetSourceSnapshotName(const Aws::String &value)
const Aws::String & GetTargetSnapshotName() const
CopySnapshotRequest & WithSourceResourceName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CopySnapshotRequest & WithTargetSnapshotName(const Aws::String &value)
CopySnapshotRequest & WithSourceSnapshotName(Aws::String &&value)
CopySnapshotRequest & WithSourceSnapshotName(const char *value)
CopySnapshotRequest & WithSourceRegion(RegionName &&value)
CopySnapshotRequest & WithSourceRegion(const RegionName &value)
CopySnapshotRequest & WithRestoreDate(const Aws::String &value)
void SetRestoreDate(const Aws::String &value)
CopySnapshotRequest & WithTargetSnapshotName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CopySnapshotRequest & WithSourceResourceName(Aws::String &&value)
void SetSourceResourceName(const Aws::String &value)
void SetTargetSnapshotName(const Aws::String &value)
void SetSourceRegion(const RegionName &value)
CopySnapshotRequest & WithSourceSnapshotName(const Aws::String &value)
CopySnapshotRequest & WithUseLatestRestorableAutoSnapshot(bool value)
CopySnapshotRequest & WithRestoreDate(const char *value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CopySnapshotRequest & WithSourceResourceName(const char *value)
CopySnapshotRequest & WithRestoreDate(Aws::String &&value)
CopySnapshotRequest & WithTargetSnapshotName(const char *value)
const Aws::String & GetSourceResourceName() const
const Aws::String & GetSourceSnapshotName() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String