@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.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAddOns()
For responses, this returns true if the service returned a value for the AddOns property.
|
int |
hashCode() |
boolean |
hasInstanceNames()
For responses, this returns true if the service returned a value for the InstanceNames property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
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()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasInstanceNames() method.
["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.@Deprecated 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 Amazon Lightsail Developer 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 Amazon Lightsail Developer Guide.
public final String keyPairName()
The name of your key pair.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
Use the TagResource action to tag a resource after it's created.
public final boolean hasAddOns()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAddOns() method.
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 © 2023. All rights reserved.