@Generated(value="software.amazon.awssdk:codegen") public final class CreateInstancesFromSnapshotRequest extends LightsailRequest implements ToCopyableBuilder<CreateInstancesFromSnapshotRequest.Builder,CreateInstancesFromSnapshotRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateInstancesFromSnapshotRequest.Builder |
Modifier and Type | Method and Description |
---|---|
Map<String,List<DiskMap>> |
attachedDiskMapping()
An object containing information about one or more disk mappings.
|
String |
availabilityZone()
The Availability Zone where you want to create your instances.
|
static CreateInstancesFromSnapshotRequest.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 ). |
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 for your new instances.
|
String |
instanceSnapshotName()
The name of the instance snapshot on which you are basing your new instances.
|
String |
keyPairName()
The name for your key pair.
|
static Class<? extends CreateInstancesFromSnapshotRequest.Builder> |
serializableBuilderClass() |
CreateInstancesFromSnapshotRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userData()
You can create a launch script that configures a server with additional user data.
|
overrideConfiguration
copy
public List<String> instanceNames()
The names for your new instances.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,List<DiskMap>> attachedDiskMapping()
An object containing information about one or more disk mappings.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String availabilityZone()
The Availability Zone where you want to create your instances. Use the following formatting:
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 instanceSnapshotName()
The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.
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()
You can create a launch script that configures a server with additional user data. For example,
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 for your key pair.
public CreateInstancesFromSnapshotRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateInstancesFromSnapshotRequest.Builder,CreateInstancesFromSnapshotRequest>
toBuilder
in class LightsailRequest
public static CreateInstancesFromSnapshotRequest.Builder builder()
public static Class<? extends CreateInstancesFromSnapshotRequest.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.