Interface Bundle.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Bundle.Builder,Bundle>, SdkBuilder<Bundle.Builder,Bundle>, SdkPojo
Enclosing class:
Bundle

public static interface Bundle.Builder extends SdkPojo, CopyableBuilder<Bundle.Builder,Bundle>
  • Method Details

    • price

      Bundle.Builder price(Float price)

      The price in US dollars (5.0) of the bundle.

      Parameters:
      price - The price in US dollars (5.0) of the bundle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cpuCount

      Bundle.Builder cpuCount(Integer cpuCount)

      The number of vCPUs included in the bundle (2).

      Parameters:
      cpuCount - The number of vCPUs included in the bundle (2).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • diskSizeInGb

      Bundle.Builder diskSizeInGb(Integer diskSizeInGb)

      The size of the SSD (30).

      Parameters:
      diskSizeInGb - The size of the SSD (30).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • bundleId

      Bundle.Builder bundleId(String bundleId)

      The bundle ID (micro_1_0).

      Parameters:
      bundleId - The bundle ID (micro_1_0).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      Bundle.Builder instanceType(String instanceType)

      The Amazon EC2 instance type (t2.micro).

      Parameters:
      instanceType - The Amazon EC2 instance type (t2.micro).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isActive

      Bundle.Builder isActive(Boolean isActive)

      A Boolean value indicating whether the bundle is active.

      Parameters:
      isActive - A Boolean value indicating whether the bundle is active.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Bundle.Builder name(String name)

      A friendly name for the bundle (Micro).

      Parameters:
      name - A friendly name for the bundle (Micro).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • power

      Bundle.Builder power(Integer power)

      A numeric value that represents the power of the bundle (500). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.

      Parameters:
      power - A numeric value that represents the power of the bundle (500). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ramSizeInGb

      Bundle.Builder ramSizeInGb(Float ramSizeInGb)

      The amount of RAM in GB (2.0).

      Parameters:
      ramSizeInGb - The amount of RAM in GB (2.0).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transferPerMonthInGb

      Bundle.Builder transferPerMonthInGb(Integer transferPerMonthInGb)

      The data transfer rate per month in GB (2000).

      Parameters:
      transferPerMonthInGb - The data transfer rate per month in GB (2000).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedPlatformsWithStrings

      Bundle.Builder supportedPlatformsWithStrings(Collection<String> supportedPlatforms)

      The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

      Parameters:
      supportedPlatforms - The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedPlatformsWithStrings

      Bundle.Builder supportedPlatformsWithStrings(String... supportedPlatforms)

      The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

      Parameters:
      supportedPlatforms - The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedPlatforms

      Bundle.Builder supportedPlatforms(Collection<InstancePlatform> supportedPlatforms)

      The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

      Parameters:
      supportedPlatforms - The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedPlatforms

      Bundle.Builder supportedPlatforms(InstancePlatform... supportedPlatforms)

      The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

      Parameters:
      supportedPlatforms - The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedAppCategoriesWithStrings

      Bundle.Builder supportedAppCategoriesWithStrings(Collection<String> supportedAppCategories)

      Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

      Parameters:
      supportedAppCategories - Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

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

      Bundle.Builder supportedAppCategoriesWithStrings(String... supportedAppCategories)

      Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

      Parameters:
      supportedAppCategories - Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

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

      Bundle.Builder supportedAppCategories(Collection<AppCategory> supportedAppCategories)

      Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

      Parameters:
      supportedAppCategories - Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

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

      Bundle.Builder supportedAppCategories(AppCategory... supportedAppCategories)

      Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

      Parameters:
      supportedAppCategories - Virtual computer blueprints that are supported by a Lightsail for Research bundle.

      This parameter only applies to Lightsail for Research resources.

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

      Bundle.Builder publicIpv4AddressCount(Integer publicIpv4AddressCount)

      An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.

      Parameters:
      publicIpv4AddressCount - An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.