@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 |
|---|---|
List<AddOnRequest> |
addOns()
An array of objects representing the add-ons to enable for the new instance.
|
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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAddOns()
Returns true if the AddOns property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasInstanceNames()
Returns true if the InstanceNames property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<String> |
instanceNames()
The names to use for your new Lightsail instances.
|
IpAddressType |
ipAddressType()
The IP address type for the instance.
|
String |
ipAddressTypeAsString()
The IP address type for the instance.
|
String |
keyPairName()
The name of your key pair.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateInstancesRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tag keys and optional values to add to the resource during create.
|
CreateInstancesRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userData()
A launch script you can create that configures a server with additional user data.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasInstanceNames()
public final 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.
You can use hasInstanceNames() to see if a value was sent in this field.
["MyFirstInstance","MySecondInstance"]public final 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 final 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 final 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).
Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.
app_wordpress_4_4 or
app_lamp_7_0). Use the get blueprints operation to return a list of available
images (or blueprints). Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.
public final 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 final 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 final String keyPairName()
The name of your key pair.
public final boolean hasTags()
public final List<Tag> tags()
The tag keys and optional values to add to the resource during create.
Use the TagResource action to tag a resource after it's created.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
Use the TagResource action to tag a resource after it's created.
public final boolean hasAddOns()
public final List<AddOnRequest> addOns()
An array of objects representing the add-ons to enable for the new instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAddOns() to see if a value was sent in this field.
public final IpAddressType ipAddressType()
The IP address type for the instance.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
The default value is dualstack.
If the service returns an enum value that is not available in the current SDK version, ipAddressType
will return IpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ipAddressTypeAsString().
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
The default value is dualstack.
IpAddressTypepublic final String ipAddressTypeAsString()
The IP address type for the instance.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
The default value is dualstack.
If the service returns an enum value that is not available in the current SDK version, ipAddressType
will return IpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ipAddressTypeAsString().
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
The default value is dualstack.
IpAddressTypepublic CreateInstancesRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateInstancesRequest.Builder,CreateInstancesRequest>toBuilder in class LightsailRequestpublic static CreateInstancesRequest.Builder builder()
public static Class<? extends CreateInstancesRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.