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>
46 template<
typename SourceSnapshotNameT = Aws::String>
47 void SetSourceSnapshotName(SourceSnapshotNameT&& value) { m_sourceSnapshotNameHasBeenSet =
true; m_sourceSnapshotName = std::forward<SourceSnapshotNameT>(value); }
48 template<
typename SourceSnapshotNameT = Aws::String>
63 template<
typename SourceResourceNameT = Aws::String>
64 void SetSourceResourceName(SourceResourceNameT&& value) { m_sourceResourceNameHasBeenSet =
true; m_sourceResourceName = std::forward<SourceResourceNameT>(value); }
65 template<
typename SourceResourceNameT = Aws::String>
85 template<
typename RestoreDateT = Aws::String>
86 void SetRestoreDate(RestoreDateT&& value) { m_restoreDateHasBeenSet =
true; m_restoreDate = std::forward<RestoreDateT>(value); }
87 template<
typename RestoreDateT = Aws::String>
115 template<
typename TargetSnapshotNameT = Aws::String>
116 void SetTargetSnapshotName(TargetSnapshotNameT&& value) { m_targetSnapshotNameHasBeenSet =
true; m_targetSnapshotName = std::forward<TargetSnapshotNameT>(value); }
117 template<
typename TargetSnapshotNameT = Aws::String>
134 bool m_sourceSnapshotNameHasBeenSet =
false;
137 bool m_sourceResourceNameHasBeenSet =
false;
140 bool m_restoreDateHasBeenSet =
false;
142 bool m_useLatestRestorableAutoSnapshot{
false};
143 bool m_useLatestRestorableAutoSnapshotHasBeenSet =
false;
146 bool m_targetSnapshotNameHasBeenSet =
false;
149 bool m_sourceRegionHasBeenSet =
false;
bool SourceSnapshotNameHasBeenSet() const
const Aws::String & GetTargetSnapshotName() const
void SetSourceResourceName(SourceResourceNameT &&value)
void SetUseLatestRestorableAutoSnapshot(bool value)
void SetSourceRegion(RegionName value)
virtual const char * GetServiceRequestName() const override
CopySnapshotRequest & WithSourceSnapshotName(SourceSnapshotNameT &&value)
const Aws::String & GetRestoreDate() const
RegionName GetSourceRegion() const
void SetRestoreDate(RestoreDateT &&value)
bool UseLatestRestorableAutoSnapshotHasBeenSet() const
CopySnapshotRequest & WithRestoreDate(RestoreDateT &&value)
bool SourceResourceNameHasBeenSet() const
CopySnapshotRequest & WithTargetSnapshotName(TargetSnapshotNameT &&value)
bool GetUseLatestRestorableAutoSnapshot() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetSourceSnapshotName(SourceSnapshotNameT &&value)
CopySnapshotRequest & WithUseLatestRestorableAutoSnapshot(bool value)
bool TargetSnapshotNameHasBeenSet() const
bool RestoreDateHasBeenSet() const
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTargetSnapshotName(TargetSnapshotNameT &&value)
AWS_LIGHTSAIL_API CopySnapshotRequest()=default
CopySnapshotRequest & WithSourceRegion(RegionName value)
const Aws::String & GetSourceResourceName() const
bool SourceRegionHasBeenSet() const
const Aws::String & GetSourceSnapshotName() const
CopySnapshotRequest & WithSourceResourceName(SourceResourceNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String