/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class CreateInstancesFromSnapshotRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateInstancesFromSnapshotRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateInstancesFromSnapshot"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The names for your new instances.

*/ inline const Aws::Vector& GetInstanceNames() const{ return m_instanceNames; } /** *

The names for your new instances.

*/ inline bool InstanceNamesHasBeenSet() const { return m_instanceNamesHasBeenSet; } /** *

The names for your new instances.

*/ inline void SetInstanceNames(const Aws::Vector& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = value; } /** *

The names for your new instances.

*/ inline void SetInstanceNames(Aws::Vector&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames = std::move(value); } /** *

The names for your new instances.

*/ inline CreateInstancesFromSnapshotRequest& WithInstanceNames(const Aws::Vector& value) { SetInstanceNames(value); return *this;} /** *

The names for your new instances.

*/ inline CreateInstancesFromSnapshotRequest& WithInstanceNames(Aws::Vector&& value) { SetInstanceNames(std::move(value)); return *this;} /** *

The names for your new instances.

*/ inline CreateInstancesFromSnapshotRequest& AddInstanceNames(const Aws::String& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; } /** *

The names for your new instances.

*/ inline CreateInstancesFromSnapshotRequest& AddInstanceNames(Aws::String&& value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(std::move(value)); return *this; } /** *

The names for your new instances.

*/ inline CreateInstancesFromSnapshotRequest& AddInstanceNames(const char* value) { m_instanceNamesHasBeenSet = true; m_instanceNames.push_back(value); return *this; } /** *

An object containing information about one or more disk mappings.

*/ inline const Aws::Map>& GetAttachedDiskMapping() const{ return m_attachedDiskMapping; } /** *

An object containing information about one or more disk mappings.

*/ inline bool AttachedDiskMappingHasBeenSet() const { return m_attachedDiskMappingHasBeenSet; } /** *

An object containing information about one or more disk mappings.

*/ inline void SetAttachedDiskMapping(const Aws::Map>& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping = value; } /** *

An object containing information about one or more disk mappings.

*/ inline void SetAttachedDiskMapping(Aws::Map>&& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping = std::move(value); } /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& WithAttachedDiskMapping(const Aws::Map>& value) { SetAttachedDiskMapping(value); return *this;} /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& WithAttachedDiskMapping(Aws::Map>&& value) { SetAttachedDiskMapping(std::move(value)); return *this;} /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& AddAttachedDiskMapping(const Aws::String& key, const Aws::Vector& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping.emplace(key, value); return *this; } /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& AddAttachedDiskMapping(Aws::String&& key, const Aws::Vector& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping.emplace(std::move(key), value); return *this; } /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& AddAttachedDiskMapping(const Aws::String& key, Aws::Vector&& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping.emplace(key, std::move(value)); return *this; } /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& AddAttachedDiskMapping(Aws::String&& key, Aws::Vector&& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping.emplace(std::move(key), std::move(value)); return *this; } /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& AddAttachedDiskMapping(const char* key, Aws::Vector&& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping.emplace(key, std::move(value)); return *this; } /** *

An object containing information about one or more disk mappings.

*/ inline CreateInstancesFromSnapshotRequest& AddAttachedDiskMapping(const char* key, const Aws::Vector& value) { m_attachedDiskMappingHasBeenSet = true; m_attachedDiskMapping.emplace(key, value); return *this; } /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline CreateInstancesFromSnapshotRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline CreateInstancesFromSnapshotRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone where you want to create your instances. Use the * following formatting: us-east-2a (case sensitive). You can get a * list of Availability Zones by using the get * regions operation. Be sure to add the include Availability * Zones parameter to your request.

*/ inline CreateInstancesFromSnapshotRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline const Aws::String& GetInstanceSnapshotName() const{ return m_instanceSnapshotName; } /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline bool InstanceSnapshotNameHasBeenSet() const { return m_instanceSnapshotNameHasBeenSet; } /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline void SetInstanceSnapshotName(const Aws::String& value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName = value; } /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline void SetInstanceSnapshotName(Aws::String&& value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName = std::move(value); } /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline void SetInstanceSnapshotName(const char* value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName.assign(value); } /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline CreateInstancesFromSnapshotRequest& WithInstanceSnapshotName(const Aws::String& value) { SetInstanceSnapshotName(value); return *this;} /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline CreateInstancesFromSnapshotRequest& WithInstanceSnapshotName(Aws::String&& value) { SetInstanceSnapshotName(std::move(value)); return *this;} /** *

The name of the instance snapshot on which you are basing your new instances. * Use the get instance snapshots operation to return information about your * existing snapshots.

Constraint:

  • This parameter cannot be * defined together with the source instance name parameter. The * instance snapshot name and source instance name * parameters are mutually exclusive.

*/ inline CreateInstancesFromSnapshotRequest& WithInstanceSnapshotName(const char* value) { SetInstanceSnapshotName(value); return *this;} /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline const Aws::String& GetBundleId() const{ return m_bundleId; } /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline CreateInstancesFromSnapshotRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline CreateInstancesFromSnapshotRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} /** *

The bundle of specification information for your virtual private server (or * instance), including the pricing plan (e.g., micro_1_0).

*/ inline CreateInstancesFromSnapshotRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline const Aws::String& GetUserData() const{ return m_userData; } /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; } /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline void SetUserData(const Aws::String& value) { m_userDataHasBeenSet = true; m_userData = value; } /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline void SetUserData(Aws::String&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); } /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline void SetUserData(const char* value) { m_userDataHasBeenSet = true; m_userData.assign(value); } /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithUserData(const Aws::String& value) { SetUserData(value); return *this;} /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithUserData(Aws::String&& value) { SetUserData(std::move(value)); return *this;} /** *

You can create a launch script that configures a server with additional user * data. For example, apt-get -y update.

Depending on * the machine image you choose, the command to get software on your instance * varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use * apt-get, and FreeBSD uses pkg. For a complete list, * see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithUserData(const char* value) { SetUserData(value); return *this;} /** *

The name for your key pair.

*/ inline const Aws::String& GetKeyPairName() const{ return m_keyPairName; } /** *

The name for your key pair.

*/ inline bool KeyPairNameHasBeenSet() const { return m_keyPairNameHasBeenSet; } /** *

The name for your key pair.

*/ inline void SetKeyPairName(const Aws::String& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = value; } /** *

The name for your key pair.

*/ inline void SetKeyPairName(Aws::String&& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = std::move(value); } /** *

The name for your key pair.

*/ inline void SetKeyPairName(const char* value) { m_keyPairNameHasBeenSet = true; m_keyPairName.assign(value); } /** *

The name for your key pair.

*/ inline CreateInstancesFromSnapshotRequest& WithKeyPairName(const Aws::String& value) { SetKeyPairName(value); return *this;} /** *

The name for your key pair.

*/ inline CreateInstancesFromSnapshotRequest& WithKeyPairName(Aws::String&& value) { SetKeyPairName(std::move(value)); return *this;} /** *

The name for your key pair.

*/ inline CreateInstancesFromSnapshotRequest& WithKeyPairName(const char* value) { SetKeyPairName(value); return *this;} /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline CreateInstancesFromSnapshotRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline CreateInstancesFromSnapshotRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline CreateInstancesFromSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tag keys and optional values to add to the resource during create.

*

Use the TagResource action to tag a resource after it's * created.

*/ inline CreateInstancesFromSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline const Aws::Vector& GetAddOns() const{ return m_addOns; } /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; } /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline void SetAddOns(const Aws::Vector& value) { m_addOnsHasBeenSet = true; m_addOns = value; } /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline void SetAddOns(Aws::Vector&& value) { m_addOnsHasBeenSet = true; m_addOns = std::move(value); } /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline CreateInstancesFromSnapshotRequest& WithAddOns(const Aws::Vector& value) { SetAddOns(value); return *this;} /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline CreateInstancesFromSnapshotRequest& WithAddOns(Aws::Vector&& value) { SetAddOns(std::move(value)); return *this;} /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline CreateInstancesFromSnapshotRequest& AddAddOns(const AddOnRequest& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(value); return *this; } /** *

An array of objects representing the add-ons to enable for the new * instance.

*/ inline CreateInstancesFromSnapshotRequest& AddAddOns(AddOnRequest&& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(std::move(value)); return *this; } /** *

The IP address type for the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

The default value is dualstack.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type for the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

The default value is dualstack.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type for the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

The default value is dualstack.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type for the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

The default value is dualstack.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type for the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

The default value is dualstack.

*/ inline CreateInstancesFromSnapshotRequest& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type for the instance.

The possible values are * ipv4 for IPv4 only, and dualstack for IPv4 and * IPv6.

The default value is dualstack.

*/ inline CreateInstancesFromSnapshotRequest& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline const Aws::String& GetSourceInstanceName() const{ return m_sourceInstanceName; } /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline bool SourceInstanceNameHasBeenSet() const { return m_sourceInstanceNameHasBeenSet; } /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline void SetSourceInstanceName(const Aws::String& value) { m_sourceInstanceNameHasBeenSet = true; m_sourceInstanceName = value; } /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline void SetSourceInstanceName(Aws::String&& value) { m_sourceInstanceNameHasBeenSet = true; m_sourceInstanceName = std::move(value); } /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline void SetSourceInstanceName(const char* value) { m_sourceInstanceNameHasBeenSet = true; m_sourceInstanceName.assign(value); } /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithSourceInstanceName(const Aws::String& value) { SetSourceInstanceName(value); return *this;} /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithSourceInstanceName(Aws::String&& value) { SetSourceInstanceName(std::move(value)); return *this;} /** *

The name of the source instance from which the source automatic snapshot was * created.

Constraints:

  • This parameter cannot be defined * together with the instance snapshot name parameter. The * source instance name and instance snapshot name * parameters are mutually exclusive.

  • Define this parameter only * when creating a new instance from an automatic snapshot. For more information, * see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithSourceInstanceName(const char* value) { SetSourceInstanceName(value); return *this;} /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline const Aws::String& GetRestoreDate() const{ return m_restoreDate; } /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline bool RestoreDateHasBeenSet() const { return m_restoreDateHasBeenSet; } /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline void SetRestoreDate(const Aws::String& value) { m_restoreDateHasBeenSet = true; m_restoreDate = value; } /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline void SetRestoreDate(Aws::String&& value) { m_restoreDateHasBeenSet = true; m_restoreDate = std::move(value); } /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline void SetRestoreDate(const char* value) { m_restoreDateHasBeenSet = true; m_restoreDate.assign(value); } /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithRestoreDate(const Aws::String& value) { SetRestoreDate(value); return *this;} /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithRestoreDate(Aws::String&& value) { SetRestoreDate(std::move(value)); return *this;} /** *

The date of the automatic snapshot to use for the new instance. Use the * get auto snapshots operation to identify the dates of the available * automatic snapshots.

Constraints:

  • Must be specified in * YYYY-MM-DD format.

  • This parameter cannot be * defined together with the use latest restorable auto snapshot * parameter. The restore date and use latest restorable auto * snapshot parameters are mutually exclusive.

  • Define this * parameter only when creating a new instance from an automatic snapshot. For more * information, see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithRestoreDate(const char* value) { SetRestoreDate(value); return *this;} /** *

A Boolean value to indicate whether to use the latest available automatic * snapshot.

Constraints:

  • This parameter cannot be defined * together with the restore date parameter. The use latest * restorable auto snapshot and restore date parameters are * mutually exclusive.

  • Define this parameter only when creating a * new instance from an automatic snapshot. For more information, see the Amazon * Lightsail Developer Guide.

*/ inline bool GetUseLatestRestorableAutoSnapshot() const{ return m_useLatestRestorableAutoSnapshot; } /** *

A Boolean value to indicate whether to use the latest available automatic * snapshot.

Constraints:

  • This parameter cannot be defined * together with the restore date parameter. The use latest * restorable auto snapshot and restore date parameters are * mutually exclusive.

  • Define this parameter only when creating a * new instance from an automatic snapshot. For more information, see the Amazon * Lightsail Developer Guide.

*/ inline bool UseLatestRestorableAutoSnapshotHasBeenSet() const { return m_useLatestRestorableAutoSnapshotHasBeenSet; } /** *

A Boolean value to indicate whether to use the latest available automatic * snapshot.

Constraints:

  • This parameter cannot be defined * together with the restore date parameter. The use latest * restorable auto snapshot and restore date parameters are * mutually exclusive.

  • Define this parameter only when creating a * new instance from an automatic snapshot. For more information, see the Amazon * Lightsail Developer Guide.

*/ inline void SetUseLatestRestorableAutoSnapshot(bool value) { m_useLatestRestorableAutoSnapshotHasBeenSet = true; m_useLatestRestorableAutoSnapshot = value; } /** *

A Boolean value to indicate whether to use the latest available automatic * snapshot.

Constraints:

  • This parameter cannot be defined * together with the restore date parameter. The use latest * restorable auto snapshot and restore date parameters are * mutually exclusive.

  • Define this parameter only when creating a * new instance from an automatic snapshot. For more information, see the Amazon * Lightsail Developer Guide.

*/ inline CreateInstancesFromSnapshotRequest& WithUseLatestRestorableAutoSnapshot(bool value) { SetUseLatestRestorableAutoSnapshot(value); return *this;} private: Aws::Vector m_instanceNames; bool m_instanceNamesHasBeenSet = false; Aws::Map> m_attachedDiskMapping; bool m_attachedDiskMappingHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_instanceSnapshotName; bool m_instanceSnapshotNameHasBeenSet = false; Aws::String m_bundleId; bool m_bundleIdHasBeenSet = false; Aws::String m_userData; bool m_userDataHasBeenSet = false; Aws::String m_keyPairName; bool m_keyPairNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_addOns; bool m_addOnsHasBeenSet = false; IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; Aws::String m_sourceInstanceName; bool m_sourceInstanceNameHasBeenSet = false; Aws::String m_restoreDate; bool m_restoreDateHasBeenSet = false; bool m_useLatestRestorableAutoSnapshot; bool m_useLatestRestorableAutoSnapshotHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws