CopyableBuilder<CreateInstancesFromSnapshotRequest.Builder,CreateInstancesFromSnapshotRequest>
, SdkBuilder<CreateInstancesFromSnapshotRequest.Builder,CreateInstancesFromSnapshotRequest>
public static interface CreateInstancesFromSnapshotRequest.Builder extends CopyableBuilder<CreateInstancesFromSnapshotRequest.Builder,CreateInstancesFromSnapshotRequest>
Modifier and Type | Method | Description |
---|---|---|
CreateInstancesFromSnapshotRequest.Builder |
availabilityZone(String availabilityZone) |
The Availability Zone where you want to create your instances.
|
CreateInstancesFromSnapshotRequest.Builder |
bundleId(String bundleId) |
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
CreateInstancesFromSnapshotRequest.Builder |
instanceNames(String... instanceNames) |
The names for your new instances.
|
CreateInstancesFromSnapshotRequest.Builder |
instanceNames(Collection<String> instanceNames) |
The names for your new instances.
|
CreateInstancesFromSnapshotRequest.Builder |
instanceSnapshotName(String instanceSnapshotName) |
The name of the instance snapshot on which you are basing your new instances.
|
CreateInstancesFromSnapshotRequest.Builder |
keyPairName(String keyPairName) |
The name for your key pair.
|
CreateInstancesFromSnapshotRequest.Builder |
userData(String userData) |
You can create a launch script that configures a server with additional user data.
|
copy
apply, build
CreateInstancesFromSnapshotRequest.Builder instanceNames(Collection<String> instanceNames)
The names for your new instances.
instanceNames
- The names for your new instances.CreateInstancesFromSnapshotRequest.Builder instanceNames(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.CreateInstancesFromSnapshotRequest.Builder availabilityZone(String availabilityZone)
The Availability Zone where you want to create your instances. Use the following formatting:
us-east-1a
(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-1a
(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.CreateInstancesFromSnapshotRequest.Builder instanceSnapshotName(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.
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.CreateInstancesFromSnapshotRequest.Builder bundleId(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
).CreateInstancesFromSnapshotRequest.Builder userData(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.
CreateInstancesFromSnapshotRequest.Builder keyPairName(String keyPairName)
The name for your key pair.
keyPairName
- The name for your key pair.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.