public static interface CreateInstancesFromSnapshotRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateInstancesFromSnapshotRequest.Builder,CreateInstancesFromSnapshotRequest>
Modifier and Type | Method and Description |
---|---|
CreateInstancesFromSnapshotRequest.Builder |
attachedDiskMapping(Map<String,? extends Collection<DiskMap>> attachedDiskMapping)
An object containing information about one or more disk mappings.
|
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(Collection<String> instanceNames)
The names for your new instances.
|
CreateInstancesFromSnapshotRequest.Builder |
instanceNames(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 |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateInstancesFromSnapshotRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateInstancesFromSnapshotRequest.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstancesFromSnapshotRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstancesFromSnapshotRequest.Builder |
tags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
CreateInstancesFromSnapshotRequest.Builder |
userData(String userData)
You can create a launch script that configures a server with additional user data.
|
build
overrideConfiguration
copy
applyMutation, 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.
instanceNames
- The names for your new instances.CreateInstancesFromSnapshotRequest.Builder attachedDiskMapping(Map<String,? extends Collection<DiskMap>> attachedDiskMapping)
An object containing information about one or more disk mappings.
attachedDiskMapping
- An object containing information about one or more disk mappings.CreateInstancesFromSnapshotRequest.Builder availabilityZone(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.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.CreateInstancesFromSnapshotRequest.Builder tags(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.
CreateInstancesFromSnapshotRequest.Builder tags(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.
CreateInstancesFromSnapshotRequest.Builder tags(Consumer<Tag.Builder>... 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.
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateInstancesFromSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateInstancesFromSnapshotRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.