7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/LightsailRequest.h>
11#include <aws/lightsail/Lightsail_EXPORTS.h>
12#include <aws/lightsail/model/AddOnRequest.h>
13#include <aws/lightsail/model/DiskMap.h>
14#include <aws/lightsail/model/IpAddressType.h>
15#include <aws/lightsail/model/Tag.h>
45 template <
typename InstanceNamesT = Aws::Vector<Aws::String>>
47 m_instanceNamesHasBeenSet =
true;
48 m_instanceNames = std::forward<InstanceNamesT>(value);
50 template <
typename InstanceNamesT = Aws::Vector<Aws::String>>
55 template <
typename InstanceNamesT = Aws::String>
57 m_instanceNamesHasBeenSet =
true;
58 m_instanceNames.emplace_back(std::forward<InstanceNamesT>(value));
69 template <
typename AttachedDiskMappingT = Aws::Map<Aws::String, Aws::Vector<DiskMap>>>
71 m_attachedDiskMappingHasBeenSet =
true;
72 m_attachedDiskMapping = std::forward<AttachedDiskMappingT>(value);
74 template <
typename AttachedDiskMappingT = Aws::Map<Aws::String, Aws::Vector<DiskMap>>>
79 template <
typename AttachedDiskMappingKeyT = Aws::String,
typename AttachedDiskMappingValueT = Aws::Vector<DiskMap>>
81 m_attachedDiskMappingHasBeenSet =
true;
82 m_attachedDiskMapping.emplace(std::forward<AttachedDiskMappingKeyT>(key), std::forward<AttachedDiskMappingValueT>(value));
98 template <
typename AvailabilityZoneT = Aws::String>
100 m_availabilityZoneHasBeenSet =
true;
101 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
103 template <
typename AvailabilityZoneT = Aws::String>
121 template <
typename InstanceSnapshotNameT = Aws::String>
123 m_instanceSnapshotNameHasBeenSet =
true;
124 m_instanceSnapshotName = std::forward<InstanceSnapshotNameT>(value);
126 template <
typename InstanceSnapshotNameT = Aws::String>
140 template <
typename BundleIdT = Aws::String>
142 m_bundleIdHasBeenSet =
true;
143 m_bundleId = std::forward<BundleIdT>(value);
145 template <
typename BundleIdT = Aws::String>
165 template <
typename UserDataT = Aws::String>
167 m_userDataHasBeenSet =
true;
168 m_userData = std::forward<UserDataT>(value);
170 template <
typename UserDataT = Aws::String>
183 template <
typename KeyPairNameT = Aws::String>
185 m_keyPairNameHasBeenSet =
true;
186 m_keyPairName = std::forward<KeyPairNameT>(value);
188 template <
typename KeyPairNameT = Aws::String>
203 template <
typename TagsT = Aws::Vector<Tag>>
205 m_tagsHasBeenSet =
true;
206 m_tags = std::forward<TagsT>(value);
208 template <
typename TagsT = Aws::Vector<Tag>>
210 SetTags(std::forward<TagsT>(value));
213 template <
typename TagsT = Tag>
215 m_tagsHasBeenSet =
true;
216 m_tags.emplace_back(std::forward<TagsT>(value));
228 template <
typename AddOnsT = Aws::Vector<AddOnRequest>>
230 m_addOnsHasBeenSet =
true;
231 m_addOns = std::forward<AddOnsT>(value);
233 template <
typename AddOnsT = Aws::Vector<AddOnRequest>>
238 template <
typename AddOnsT = AddOnRequest>
240 m_addOnsHasBeenSet =
true;
241 m_addOns.emplace_back(std::forward<AddOnsT>(value));
256 m_ipAddressTypeHasBeenSet =
true;
257 m_ipAddressType = value;
279 template <
typename SourceInstanceNameT = Aws::String>
281 m_sourceInstanceNameHasBeenSet =
true;
282 m_sourceInstanceName = std::forward<SourceInstanceNameT>(value);
284 template <
typename SourceInstanceNameT = Aws::String>
307 template <
typename RestoreDateT = Aws::String>
309 m_restoreDateHasBeenSet =
true;
310 m_restoreDate = std::forward<RestoreDateT>(value);
312 template <
typename RestoreDateT = Aws::String>
333 m_useLatestRestorableAutoSnapshotHasBeenSet =
true;
334 m_useLatestRestorableAutoSnapshot = value;
366 bool m_useLatestRestorableAutoSnapshot{
false};
367 bool m_instanceNamesHasBeenSet =
false;
368 bool m_attachedDiskMappingHasBeenSet =
false;
369 bool m_availabilityZoneHasBeenSet =
false;
370 bool m_instanceSnapshotNameHasBeenSet =
false;
371 bool m_bundleIdHasBeenSet =
false;
372 bool m_userDataHasBeenSet =
false;
373 bool m_keyPairNameHasBeenSet =
false;
374 bool m_tagsHasBeenSet =
false;
375 bool m_addOnsHasBeenSet =
false;
376 bool m_ipAddressTypeHasBeenSet =
false;
377 bool m_sourceInstanceNameHasBeenSet =
false;
378 bool m_restoreDateHasBeenSet =
false;
379 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