public static interface CreateInstancesRequest.Builder extends LightsailRequest.Builder, CopyableBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>
Modifier and Type | Method and Description |
---|---|
CreateInstancesRequest.Builder |
availabilityZone(String availabilityZone)
The Availability Zone in which to create your instance.
|
CreateInstancesRequest.Builder |
blueprintId(String blueprintId)
The ID for a virtual private server image (e.g.,
app_wordpress_4_4 or app_lamp_7_0
). |
CreateInstancesRequest.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 ). |
CreateInstancesRequest.Builder |
customImageName(String customImageName)
(Deprecated) The name for your custom image.
|
CreateInstancesRequest.Builder |
instanceNames(Collection<String> instanceNames)
The names to use for your new Lightsail instances.
|
CreateInstancesRequest.Builder |
instanceNames(String... instanceNames)
The names to use for your new Lightsail instances.
|
CreateInstancesRequest.Builder |
keyPairName(String keyPairName)
The name of your key pair.
|
CreateInstancesRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateInstancesRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateInstancesRequest.Builder |
userData(String userData)
A launch script you can create that configures a server with additional user data.
|
build
overrideConfiguration
copy
applyMutation, build
CreateInstancesRequest.Builder instanceNames(Collection<String> instanceNames)
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas,
for example: ["MyFirstInstance","MySecondInstance"]
instanceNames
- The names to use for your new Lightsail instances. Separate multiple values using quotation marks and
commas, for example: ["MyFirstInstance","MySecondInstance"]
CreateInstancesRequest.Builder instanceNames(String... instanceNames)
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas,
for example: ["MyFirstInstance","MySecondInstance"]
instanceNames
- The names to use for your new Lightsail instances. Separate multiple values using quotation marks and
commas, for example: ["MyFirstInstance","MySecondInstance"]
CreateInstancesRequest.Builder availabilityZone(String availabilityZone)
The Availability Zone in which to create your instance. Use the following format: 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 in which to create your instance. Use the following format:
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.CreateInstancesRequest.Builder customImageName(String customImageName)
(Deprecated) The name for your custom image.
In releases prior to June 12, 2017, this parameter was ignored by the API. It is now deprecated.
customImageName
- (Deprecated) The name for your custom image. In releases prior to June 12, 2017, this parameter was ignored by the API. It is now deprecated.
CreateInstancesRequest.Builder blueprintId(String blueprintId)
The ID for a virtual private server image (e.g., app_wordpress_4_4
or app_lamp_7_0
). Use the get blueprints operation to return a list of available images (or blueprints).
blueprintId
- The ID for a virtual private server image (e.g., app_wordpress_4_4
or
app_lamp_7_0
). Use the get blueprints operation to return a list of available images (or
blueprints).CreateInstancesRequest.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
).CreateInstancesRequest.Builder userData(String userData)
A launch script you can create that configures a server with additional user data. For example, you might
want to run 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
- A launch script you can create that configures a server with additional user data. For example, you
might want to run 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.
CreateInstancesRequest.Builder keyPairName(String keyPairName)
The name of your key pair.
keyPairName
- The name of your key pair.CreateInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateInstancesRequest.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.