CopyableBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>
, SdkBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>
public static interface CreateInstancesRequest.Builder extends CopyableBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>
Modifier and Type | Method | 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(String... instanceNames) |
The names to use for your new Lightsail instances.
|
CreateInstancesRequest.Builder |
instanceNames(Collection<String> instanceNames) |
The names to use for your new Lightsail instances.
|
CreateInstancesRequest.Builder |
keyPairName(String keyPairName) |
The name of your key pair.
|
CreateInstancesRequest.Builder |
userData(String userData) |
A launch script you can create that configures a server with additional user data.
|
copy
apply, 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"]
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 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-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 in which to create your instance. Use the following format:
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.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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.