@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 request.
|
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()
The name for your custom image.
|
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)
The name for your custom image.
|
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)
The name for your custom image.
|
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.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, 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).
availabilityZone
- The Availability Zone in which to create your instance. Use the following format: us-east-1a
(case sensitive).public String getAvailabilityZone()
The Availability Zone in which to create your instance. Use the following format: us-east-1a
(case
sensitive).
us-east-1a
(case sensitive).public CreateInstancesRequest withAvailabilityZone(String availabilityZone)
The Availability Zone in which to create your instance. Use the following format: us-east-1a
(case
sensitive).
availabilityZone
- The Availability Zone in which to create your instance. Use the following format: us-east-1a
(case sensitive).public void setCustomImageName(String customImageName)
The name for your custom image.
customImageName
- The name for your custom image.public String getCustomImageName()
The name for your custom image.
public CreateInstancesRequest withCustomImageName(String customImageName)
The name for your custom image.
customImageName
- The name for your custom image.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.