Interface CreateInstancesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateInstancesRequest.Builder,
,CreateInstancesRequest> LightsailRequest.Builder
,SdkBuilder<CreateInstancesRequest.Builder,
,CreateInstancesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateInstancesRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddOns
(Collection<AddOnRequest> addOns) An array of objects representing the add-ons to enable for the new instance.addOns
(Consumer<AddOnRequest.Builder>... addOns) An array of objects representing the add-ons to enable for the new instance.addOns
(AddOnRequest... addOns) An array of objects representing the add-ons to enable for the new instance.availabilityZone
(String availabilityZone) The Availability Zone in which to create your instance.blueprintId
(String blueprintId) The ID for a virtual private server image (app_wordpress_x_x
orapp_lamp_x_x
).The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x
).customImageName
(String customImageName) Deprecated.instanceNames
(String... instanceNames) The names to use for your new Lightsail instances.instanceNames
(Collection<String> instanceNames) The names to use for your new Lightsail instances.ipAddressType
(String ipAddressType) The IP address type for the instance.ipAddressType
(IpAddressType ipAddressType) The IP address type for the instance.keyPairName
(String keyPairName) The name of your key pair.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) The tag keys and optional values to add to the resource during create.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values to add to the resource during create.The tag keys and optional values to add to the resource during create.A launch script you can create that configures a server with additional user data.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
instanceNames
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example:
["MyFirstInstance","MySecondInstance"]
- Parameters:
instanceNames
- The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example:["MyFirstInstance","MySecondInstance"]
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceNames
The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example:
["MyFirstInstance","MySecondInstance"]
- Parameters:
instanceNames
- The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example:["MyFirstInstance","MySecondInstance"]
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 theinclude Availability Zones
parameter to your request.- Parameters:
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 theinclude Availability Zones
parameter to your request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customImageName
Deprecated.(Discontinued) The name for your custom image.
In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.
- Parameters:
customImageName
- (Discontinued) The name for your custom image.In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blueprintId
The ID for a virtual private server image (
app_wordpress_x_x
orapp_lamp_x_x
). Use theget 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.
- Parameters:
blueprintId
- The ID for a virtual private server image (app_wordpress_x_x
orapp_lamp_x_x
). Use theget 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bundleId
The bundle of specification information for your virtual private server (or instance), including the pricing plan (
medium_x_x
).- Parameters:
bundleId
- The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 useapt-get
, and FreeBSD usespkg
. For a complete list, see the Amazon Lightsail Developer Guide.- Parameters:
userData
- A launch script you can create that configures a server with additional user data. For example, you might want to runapt-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 useapt-get
, and FreeBSD usespkg
. For a complete list, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyPairName
The name of your key pair.
- Parameters:
keyPairName
- The name of your key pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values to add to the resource during create.
Use the
This is a convenience method that creates an instance of theTagResource
action to tag a resource after it's created.Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addOns
An array of objects representing the add-ons to enable for the new instance.
- Parameters:
addOns
- An array of objects representing the add-ons to enable for the new instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons to enable for the new instance.
- Parameters:
addOns
- An array of objects representing the add-ons to enable for the new instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOns
An array of objects representing the add-ons to enable for the new instance.
This is a convenience method that creates an instance of theAddOnRequest.Builder
avoiding the need to create one manually viaAddOnRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddOns(List<AddOnRequest>)
.- Parameters:
addOns
- a consumer that will call methods onAddOnRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type for the instance.
The possible values are
ipv4
for IPv4 only,ipv6
for IPv6 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Parameters:
ipAddressType
- The IP address type for the instance.The possible values are
ipv4
for IPv4 only,ipv6
for IPv6 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type for the instance.
The possible values are
ipv4
for IPv4 only,ipv6
for IPv6 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Parameters:
ipAddressType
- The IP address type for the instance.The possible values are
ipv4
for IPv4 only,ipv6
for IPv6 only, anddualstack
for IPv4 and IPv6.The default value is
dualstack
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-