Interface CreateInstancesRequest.Builder

    • Method Detail

      • instanceNames

        CreateInstancesRequest.Builder instanceNames​(Collection<String> 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

        CreateInstancesRequest.Builder instanceNames​(String... 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

        CreateInstancesRequest.Builder availabilityZone​(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.

        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 Zones parameter to your request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • customImageName

        @Deprecated
        CreateInstancesRequest.Builder customImageName​(String 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

        CreateInstancesRequest.Builder blueprintId​(String blueprintId)

        The ID for a virtual private server image (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.

        Parameters:
        blueprintId - The ID for a virtual private server image (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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • bundleId

        CreateInstancesRequest.Builder bundleId​(String bundleId)

        The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_1_0).

        Parameters:
        bundleId - The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_1_0).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userData

        CreateInstancesRequest.Builder userData​(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.

        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.
      • keyPairName

        CreateInstancesRequest.Builder keyPairName​(String 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

        CreateInstancesRequest.Builder tags​(Collection<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.

        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

        CreateInstancesRequest.Builder tags​(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.

        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

        CreateInstancesRequest.Builder tags​(Consumer<Tag.Builder>... 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.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        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:
        #tags(java.util.Collection)
      • addOns

        CreateInstancesRequest.Builder addOns​(Collection<AddOnRequest> 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

        CreateInstancesRequest.Builder addOns​(AddOnRequest... 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.
      • ipAddressType

        CreateInstancesRequest.Builder ipAddressType​(String 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IpAddressType, IpAddressType
      • ipAddressType

        CreateInstancesRequest.Builder ipAddressType​(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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IpAddressType, IpAddressType