7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/lightsail/model/IpAddressType.h>
13#include <aws/lightsail/model/Tag.h>
14#include <aws/lightsail/model/AddOnRequest.h>
15#include <aws/lightsail/model/DiskMap.h>
49 template<
typename InstanceNamesT = Aws::Vector<Aws::String>>
50 void SetInstanceNames(InstanceNamesT&& value) { m_instanceNamesHasBeenSet =
true; m_instanceNames = std::forward<InstanceNamesT>(value); }
51 template<
typename InstanceNamesT = Aws::Vector<Aws::String>>
53 template<
typename InstanceNamesT = Aws::String>
63 template<
typename AttachedDiskMappingT = Aws::Map<Aws::String, Aws::Vector<DiskMap>>>
64 void SetAttachedDiskMapping(AttachedDiskMappingT&& value) { m_attachedDiskMappingHasBeenSet =
true; m_attachedDiskMapping = std::forward<AttachedDiskMappingT>(value); }
65 template<
typename AttachedDiskMappingT = Aws::Map<Aws::String, Aws::Vector<DiskMap>>>
67 template<
typename AttachedDiskMappingKeyT = Aws::String,
typename AttachedDiskMappingValueT = Aws::Vector<DiskMap>>
69 m_attachedDiskMappingHasBeenSet =
true; m_attachedDiskMapping.emplace(std::forward<AttachedDiskMappingKeyT>(key), std::forward<AttachedDiskMappingValueT>(value));
return *
this;
84 template<
typename AvailabilityZoneT = Aws::String>
85 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
86 template<
typename AvailabilityZoneT = Aws::String>
101 template<
typename InstanceSnapshotNameT = Aws::String>
102 void SetInstanceSnapshotName(InstanceSnapshotNameT&& value) { m_instanceSnapshotNameHasBeenSet =
true; m_instanceSnapshotName = std::forward<InstanceSnapshotNameT>(value); }
103 template<
typename InstanceSnapshotNameT = Aws::String>
114 template<
typename BundleIdT = Aws::String>
115 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet =
true; m_bundleId = std::forward<BundleIdT>(value); }
116 template<
typename BundleIdT = Aws::String>
133 template<
typename UserDataT = Aws::String>
134 void SetUserData(UserDataT&& value) { m_userDataHasBeenSet =
true; m_userData = std::forward<UserDataT>(value); }
135 template<
typename UserDataT = Aws::String>
145 template<
typename KeyPairNameT = Aws::String>
146 void SetKeyPairName(KeyPairNameT&& value) { m_keyPairNameHasBeenSet =
true; m_keyPairName = std::forward<KeyPairNameT>(value); }
147 template<
typename KeyPairNameT = Aws::String>
159 template<
typename TagsT = Aws::Vector<Tag>>
160 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
161 template<
typename TagsT = Aws::Vector<Tag>>
163 template<
typename TagsT = Tag>
174 template<
typename AddOnsT = Aws::Vector<AddOnRequest>>
175 void SetAddOns(AddOnsT&& value) { m_addOnsHasBeenSet =
true; m_addOns = std::forward<AddOnsT>(value); }
176 template<
typename AddOnsT = Aws::Vector<AddOnRequest>>
178 template<
typename AddOnsT = AddOnRequest>
209 template<
typename SourceInstanceNameT = Aws::String>
210 void SetSourceInstanceName(SourceInstanceNameT&& value) { m_sourceInstanceNameHasBeenSet =
true; m_sourceInstanceName = std::forward<SourceInstanceNameT>(value); }
211 template<
typename SourceInstanceNameT = Aws::String>
231 template<
typename RestoreDateT = Aws::String>
232 void SetRestoreDate(RestoreDateT&& value) { m_restoreDateHasBeenSet =
true; m_restoreDate = std::forward<RestoreDateT>(value); }
233 template<
typename RestoreDateT = Aws::String>
256 bool m_instanceNamesHasBeenSet =
false;
259 bool m_attachedDiskMappingHasBeenSet =
false;
262 bool m_availabilityZoneHasBeenSet =
false;
265 bool m_instanceSnapshotNameHasBeenSet =
false;
268 bool m_bundleIdHasBeenSet =
false;
271 bool m_userDataHasBeenSet =
false;
274 bool m_keyPairNameHasBeenSet =
false;
277 bool m_tagsHasBeenSet =
false;
280 bool m_addOnsHasBeenSet =
false;
283 bool m_ipAddressTypeHasBeenSet =
false;
286 bool m_sourceInstanceNameHasBeenSet =
false;
289 bool m_restoreDateHasBeenSet =
false;
291 bool m_useLatestRestorableAutoSnapshot{
false};
292 bool m_useLatestRestorableAutoSnapshotHasBeenSet =
false;
bool InstanceSnapshotNameHasBeenSet() const
const Aws::String & GetRestoreDate() const
const Aws::String & GetKeyPairName() const
void SetAttachedDiskMapping(AttachedDiskMappingT &&value)
bool UseLatestRestorableAutoSnapshotHasBeenSet() const
const Aws::String & GetInstanceSnapshotName() const
void SetSourceInstanceName(SourceInstanceNameT &&value)
bool InstanceNamesHasBeenSet() const
void SetUseLatestRestorableAutoSnapshot(bool value)
const Aws::String & GetAvailabilityZone() const
void SetRestoreDate(RestoreDateT &&value)
void SetUserData(UserDataT &&value)
void SetTags(TagsT &&value)
bool UserDataHasBeenSet() const
CreateInstancesFromSnapshotRequest & WithInstanceNames(InstanceNamesT &&value)
CreateInstancesFromSnapshotRequest & WithTags(TagsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInstancesFromSnapshotRequest & WithIpAddressType(IpAddressType value)
CreateInstancesFromSnapshotRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
CreateInstancesFromSnapshotRequest & WithAttachedDiskMapping(AttachedDiskMappingT &&value)
IpAddressType GetIpAddressType() const
CreateInstancesFromSnapshotRequest & WithKeyPairName(KeyPairNameT &&value)
const Aws::Vector< Tag > & GetTags() const
bool AddOnsHasBeenSet() const
CreateInstancesFromSnapshotRequest & WithRestoreDate(RestoreDateT &&value)
virtual const char * GetServiceRequestName() const override
void SetAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Map< Aws::String, Aws::Vector< DiskMap > > & GetAttachedDiskMapping() const
bool KeyPairNameHasBeenSet() const
bool AttachedDiskMappingHasBeenSet() const
bool IpAddressTypeHasBeenSet() const
const Aws::Vector< Aws::String > & GetInstanceNames() const
CreateInstancesFromSnapshotRequest & WithInstanceSnapshotName(InstanceSnapshotNameT &&value)
void SetBundleId(BundleIdT &&value)
CreateInstancesFromSnapshotRequest & AddAddOns(AddOnsT &&value)
const Aws::String & GetBundleId() const
void SetKeyPairName(KeyPairNameT &&value)
bool GetUseLatestRestorableAutoSnapshot() const
CreateInstancesFromSnapshotRequest & WithAddOns(AddOnsT &&value)
const Aws::String & GetUserData() const
CreateInstancesFromSnapshotRequest & WithUserData(UserDataT &&value)
const Aws::Vector< AddOnRequest > & GetAddOns() const
bool AvailabilityZoneHasBeenSet() const
void SetIpAddressType(IpAddressType value)
CreateInstancesFromSnapshotRequest & WithUseLatestRestorableAutoSnapshot(bool value)
void SetInstanceSnapshotName(InstanceSnapshotNameT &&value)
CreateInstancesFromSnapshotRequest & WithBundleId(BundleIdT &&value)
const Aws::String & GetSourceInstanceName() const
void SetAddOns(AddOnsT &&value)
CreateInstancesFromSnapshotRequest & AddTags(TagsT &&value)
void SetInstanceNames(InstanceNamesT &&value)
AWS_LIGHTSAIL_API CreateInstancesFromSnapshotRequest()=default
bool RestoreDateHasBeenSet() const
bool BundleIdHasBeenSet() const
CreateInstancesFromSnapshotRequest & WithSourceInstanceName(SourceInstanceNameT &&value)
CreateInstancesFromSnapshotRequest & AddAttachedDiskMapping(AttachedDiskMappingKeyT &&key, AttachedDiskMappingValueT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
bool SourceInstanceNameHasBeenSet() const
CreateInstancesFromSnapshotRequest & AddInstanceNames(InstanceNamesT &&value)
bool TagsHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector