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 SummaryModifier 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_xorapp_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.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.lightsail.model.LightsailRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
instanceNamesThe 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.
 
- 
instanceNamesThe 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.
 
- 
availabilityZoneThe 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 Zonesparameter 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 the- include Availability Zonesparameter to your request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
customImageNameDeprecated.(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.
 
- 
blueprintIdThe ID for a virtual private server image ( app_wordpress_x_xorapp_lamp_x_x). Use theget blueprintsoperation 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_xor- app_lamp_x_x). Use the- get blueprintsoperation 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.
 
- 
bundleIdThe 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.
 
- 
userDataA 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 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
keyPairNameThe 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.
 
- 
tagsThe tag keys and optional values to add to the resource during create. Use the TagResourceaction 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 - TagResourceaction to tag a resource after it's created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsThe tag keys and optional values to add to the resource during create. Use the TagResourceaction 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 - TagResourceaction to tag a resource after it's created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsThe tag keys and optional values to add to the resource during create. Use the This is a convenience method that creates an instance of theTagResourceaction to tag a resource after it's created.Tag.Builderavoiding the need to create one manually viaTag.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
- tags- a consumer that will call methods on- Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
addOnsAn 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.
 
- 
addOnsAn 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.
 
- 
addOnsAn array of objects representing the add-ons to enable for the new instance. This is a convenience method that creates an instance of theAddOnRequest.Builderavoiding the need to create one manually viaAddOnRequest.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddOns(List<AddOnRequest>).- Parameters:
- addOns- a consumer that will call methods on- AddOnRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ipAddressTypeThe IP address type for the instance. The possible values are ipv4for IPv4 only,ipv6for IPv6 only, anddualstackfor IPv4 and IPv6.The default value is dualstack.- Parameters:
- ipAddressType- The IP address type for the instance.- The possible values are - ipv4for IPv4 only,- ipv6for IPv6 only, and- dualstackfor 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:
 
- 
ipAddressTypeThe IP address type for the instance. The possible values are ipv4for IPv4 only,ipv6for IPv6 only, anddualstackfor IPv4 and IPv6.The default value is dualstack.- Parameters:
- ipAddressType- The IP address type for the instance.- The possible values are - ipv4for IPv4 only,- ipv6for IPv6 only, and- dualstackfor 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:
 
- 
overrideConfigurationCreateInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationCreateInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-