@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateInstancesRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateInstancesRequest() |
Modifier and Type | Method and Description |
---|---|
CreateInstancesRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone in which to create your instance.
|
String |
getBlueprintId()
The ID for a virtual private server image (e.g.,
app_wordpress_4_4 or app_lamp_7_0 ). |
String |
getBundleId()
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
String |
getCustomImageName()
Deprecated.
|
List<String> |
getInstanceNames()
The names to use for your new Lightsail instances.
|
String |
getKeyPairName()
The name of your key pair.
|
String |
getUserData()
A launch script you can create that configures a server with additional user data.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your instance.
|
void |
setBlueprintId(String blueprintId)
The ID for a virtual private server image (e.g.,
app_wordpress_4_4 or app_lamp_7_0 ). |
void |
setBundleId(String bundleId)
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
void |
setCustomImageName(String customImageName)
Deprecated.
|
void |
setInstanceNames(Collection<String> instanceNames)
The names to use for your new Lightsail instances.
|
void |
setKeyPairName(String keyPairName)
The name of your key pair.
|
void |
setUserData(String userData)
A launch script you can create that configures a server with additional user data.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateInstancesRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your instance.
|
CreateInstancesRequest |
withBlueprintId(String blueprintId)
The ID for a virtual private server image (e.g.,
app_wordpress_4_4 or app_lamp_7_0 ). |
CreateInstancesRequest |
withBundleId(String bundleId)
The bundle of specification information for your virtual private server (or instance), including the
pricing plan (e.g.,
micro_1_0 ). |
CreateInstancesRequest |
withCustomImageName(String customImageName)
Deprecated.
|
CreateInstancesRequest |
withInstanceNames(Collection<String> instanceNames)
The names to use for your new Lightsail instances.
|
CreateInstancesRequest |
withInstanceNames(String... instanceNames)
The names to use for your new Lightsail instances.
|
CreateInstancesRequest |
withKeyPairName(String keyPairName)
The name of your key pair.
|
CreateInstancesRequest |
withUserData(String userData)
A launch script you can create that configures a server with additional user data.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getInstanceNames()
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for
example: ["MyFirstInstance","MySecondInstance"]
["MyFirstInstance","MySecondInstance"]
public void setInstanceNames(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"]
public CreateInstancesRequest withInstanceNames(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"]
public CreateInstancesRequest withInstanceNames(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"]
public void setAvailabilityZone(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.public String getAvailabilityZone()
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.
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.public CreateInstancesRequest withAvailabilityZone(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.@Deprecated public void setCustomImageName(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.
@Deprecated public String getCustomImageName()
(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.
@Deprecated public CreateInstancesRequest withCustomImageName(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.
public void setBlueprintId(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).public String getBlueprintId()
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 CreateInstancesRequest withBlueprintId(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).public void setBundleId(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
).public String getBundleId()
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 CreateInstancesRequest withBundleId(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
).public void setUserData(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.
public String getUserData()
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 CreateInstancesRequest withUserData(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.
public void setKeyPairName(String keyPairName)
The name of your key pair.
keyPairName
- The name of your key pair.public String getKeyPairName()
The name of your key pair.
public CreateInstancesRequest withKeyPairName(String keyPairName)
The name of your key pair.
keyPairName
- The name of your key pair.public String toString()
toString
in class Object
Object.toString()
public CreateInstancesRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.