@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateInstancesFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateInstancesFromSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateInstancesFromSnapshotRequest |
addAttachedDiskMappingEntry(String key,
List<DiskMap> value)
Add a single AttachedDiskMapping entry
|
CreateInstancesFromSnapshotRequest |
clearAttachedDiskMappingEntries()
Removes all the entries added into AttachedDiskMapping.
|
CreateInstancesFromSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<AddOnRequest> |
getAddOns()
An array of objects representing the add-ons to enable for the new instance.
|
Map<String,List<DiskMap>> |
getAttachedDiskMapping()
An object containing information about one or more disk mappings.
|
String |
getAvailabilityZone()
The Availability Zone where you want to create your instances.
|
String |
getBundleId()
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
List<String> |
getInstanceNames()
The names for your new instances.
|
String |
getInstanceSnapshotName()
The name of the instance snapshot on which you are basing your new instances.
|
String |
getKeyPairName()
The name for your key pair.
|
String |
getRestoreDate()
The date of the automatic snapshot to use for the new instance.
|
String |
getSourceInstanceName()
The name of the source instance from which the source automatic snapshot was created.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
Boolean |
getUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
String |
getUserData()
You can create a launch script that configures a server with additional user data.
|
int |
hashCode() |
Boolean |
isUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
void |
setAddOns(Collection<AddOnRequest> addOns)
An array of objects representing the add-ons to enable for the new instance.
|
void |
setAttachedDiskMapping(Map<String,List<DiskMap>> attachedDiskMapping)
An object containing information about one or more disk mappings.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create your instances.
|
void |
setBundleId(String bundleId)
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
void |
setInstanceNames(Collection<String> instanceNames)
The names for your new instances.
|
void |
setInstanceSnapshotName(String instanceSnapshotName)
The name of the instance snapshot on which you are basing your new instances.
|
void |
setKeyPairName(String keyPairName)
The name for your key pair.
|
void |
setRestoreDate(String restoreDate)
The date of the automatic snapshot to use for the new instance.
|
void |
setSourceInstanceName(String sourceInstanceName)
The name of the source instance from which the source automatic snapshot was created.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
void |
setUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
void |
setUserData(String userData)
You can create a launch script that configures a server with additional user data.
|
String |
toString()
Returns a string representation of this object.
|
CreateInstancesFromSnapshotRequest |
withAddOns(AddOnRequest... addOns)
An array of objects representing the add-ons to enable for the new instance.
|
CreateInstancesFromSnapshotRequest |
withAddOns(Collection<AddOnRequest> addOns)
An array of objects representing the add-ons to enable for the new instance.
|
CreateInstancesFromSnapshotRequest |
withAttachedDiskMapping(Map<String,List<DiskMap>> attachedDiskMapping)
An object containing information about one or more disk mappings.
|
CreateInstancesFromSnapshotRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create your instances.
|
CreateInstancesFromSnapshotRequest |
withBundleId(String bundleId)
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
CreateInstancesFromSnapshotRequest |
withInstanceNames(Collection<String> instanceNames)
The names for your new instances.
|
CreateInstancesFromSnapshotRequest |
withInstanceNames(String... instanceNames)
The names for your new instances.
|
CreateInstancesFromSnapshotRequest |
withInstanceSnapshotName(String instanceSnapshotName)
The name of the instance snapshot on which you are basing your new instances.
|
CreateInstancesFromSnapshotRequest |
withKeyPairName(String keyPairName)
The name for your key pair.
|
CreateInstancesFromSnapshotRequest |
withRestoreDate(String restoreDate)
The date of the automatic snapshot to use for the new instance.
|
CreateInstancesFromSnapshotRequest |
withSourceInstanceName(String sourceInstanceName)
The name of the source instance from which the source automatic snapshot was created.
|
CreateInstancesFromSnapshotRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstancesFromSnapshotRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstancesFromSnapshotRequest |
withUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
CreateInstancesFromSnapshotRequest |
withUserData(String userData)
You can create a launch script that configures a server with additional user data.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getInstanceNames()
The names for your new instances.
public void setInstanceNames(Collection<String> instanceNames)
The names for your new instances.
instanceNames
- The names for your new instances.public CreateInstancesFromSnapshotRequest withInstanceNames(String... instanceNames)
The names for your new instances.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceNames(java.util.Collection)
or withInstanceNames(java.util.Collection)
if you want
to override the existing values.
instanceNames
- The names for your new instances.public CreateInstancesFromSnapshotRequest withInstanceNames(Collection<String> instanceNames)
The names for your new instances.
instanceNames
- The names for your new instances.public Map<String,List<DiskMap>> getAttachedDiskMapping()
An object containing information about one or more disk mappings.
public void setAttachedDiskMapping(Map<String,List<DiskMap>> attachedDiskMapping)
An object containing information about one or more disk mappings.
attachedDiskMapping
- An object containing information about one or more disk mappings.public CreateInstancesFromSnapshotRequest withAttachedDiskMapping(Map<String,List<DiskMap>> attachedDiskMapping)
An object containing information about one or more disk mappings.
attachedDiskMapping
- An object containing information about one or more disk mappings.public CreateInstancesFromSnapshotRequest addAttachedDiskMappingEntry(String key, List<DiskMap> value)
public CreateInstancesFromSnapshotRequest clearAttachedDiskMappingEntries()
public void setAvailabilityZone(String 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.
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.public String getAvailabilityZone()
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.
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.public CreateInstancesFromSnapshotRequest withAvailabilityZone(String 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.
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.public void setInstanceSnapshotName(String 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.
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.
public String getInstanceSnapshotName()
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.
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.
public CreateInstancesFromSnapshotRequest withInstanceSnapshotName(String 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.
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.
public void setBundleId(String bundleId)
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g., micro_1_0
).
bundleId
- The bundle of specification information for your virtual private server (or instance), including
the pricing plan (e.g., micro_1_0
).public String getBundleId()
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g., micro_1_0
).
micro_1_0
).public CreateInstancesFromSnapshotRequest withBundleId(String bundleId)
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g., micro_1_0
).
bundleId
- The bundle of specification information for your virtual private server (or instance), including
the pricing plan (e.g., micro_1_0
).public void setUserData(String 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 Dev Guide.
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 Dev Guide.
public String getUserData()
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 Dev Guide.
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 Dev Guide.
public CreateInstancesFromSnapshotRequest withUserData(String 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 Dev Guide.
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 Dev Guide.
public void setKeyPairName(String keyPairName)
The name for your key pair.
keyPairName
- The name for your key pair.public String getKeyPairName()
The name for your key pair.
public CreateInstancesFromSnapshotRequest withKeyPairName(String keyPairName)
The name for your key pair.
keyPairName
- The name for your key pair.public List<Tag> getTags()
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
To tag a resource after it has been created, see the tag resource
operation.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
tags
- The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
public CreateInstancesFromSnapshotRequest withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
public CreateInstancesFromSnapshotRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
tags
- The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
public List<AddOnRequest> getAddOns()
An array of objects representing the add-ons to enable for the new instance.
public void setAddOns(Collection<AddOnRequest> addOns)
An array of objects representing the add-ons to enable for the new instance.
addOns
- An array of objects representing the add-ons to enable for the new instance.public CreateInstancesFromSnapshotRequest withAddOns(AddOnRequest... addOns)
An array of objects representing the add-ons to enable for the new instance.
NOTE: This method appends the values to the existing list (if any). Use
setAddOns(java.util.Collection)
or withAddOns(java.util.Collection)
if you want to override the
existing values.
addOns
- An array of objects representing the add-ons to enable for the new instance.public CreateInstancesFromSnapshotRequest withAddOns(Collection<AddOnRequest> addOns)
An array of objects representing the add-ons to enable for the new instance.
addOns
- An array of objects representing the add-ons to enable for the new instance.public void setSourceInstanceName(String 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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public String getSourceInstanceName()
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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public CreateInstancesFromSnapshotRequest withSourceInstanceName(String 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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public void setRestoreDate(String 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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public String getRestoreDate()
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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public CreateInstancesFromSnapshotRequest withRestoreDate(String 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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public void setUseLatestRestorableAutoSnapshot(Boolean 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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public Boolean getUseLatestRestorableAutoSnapshot()
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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public CreateInstancesFromSnapshotRequest withUseLatestRestorableAutoSnapshot(Boolean 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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public Boolean isUseLatestRestorableAutoSnapshot()
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 Lightsail Dev Guide.
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 Lightsail Dev Guide.
public String toString()
toString
in class Object
Object.toString()
public CreateInstancesFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.