@Generated(value="software.amazon.awssdk:codegen") public final class CreateInstancesRequest extends LightsailRequest implements ToCopyableBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateInstancesRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The Availability Zone in which to create your instance.
|
String |
blueprintId()
The ID for a virtual private server image (e.g.,
app_wordpress_4_4 or app_lamp_7_0 ). |
static CreateInstancesRequest.Builder |
builder() |
String |
bundleId()
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
String |
customImageName()
(Deprecated) The name for your custom image.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
List<String> |
instanceNames()
The names to use for your new Lightsail instances.
|
String |
keyPairName()
The name of your key pair.
|
static Class<? extends CreateInstancesRequest.Builder> |
serializableBuilderClass() |
CreateInstancesRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userData()
A launch script you can create that configures a server with additional user data.
|
overrideConfiguration
copy
public List<String> instanceNames()
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for
example: ["MyFirstInstance","MySecondInstance"]
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
["MyFirstInstance","MySecondInstance"]
public 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.
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 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.
In releases prior to June 12, 2017, this parameter was ignored by the API. It is now deprecated.
public 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).
app_wordpress_4_4
or
app_lamp_7_0
). Use the get blueprints operation to return a list of available images (or
blueprints).public String bundleId()
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 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.
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 keyPairName()
The name of your key pair.
public CreateInstancesRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>
toBuilder
in class LightsailRequest
public static CreateInstancesRequest.Builder builder()
public static Class<? extends CreateInstancesRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.