Class Bundle

    • Method Detail

      • price

        public final Float price()

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

        Returns:
        The price in US dollars (5.0) of the bundle.
      • cpuCount

        public final Integer cpuCount()

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

        Returns:
        The number of vCPUs included in the bundle (2).
      • diskSizeInGb

        public final Integer diskSizeInGb()

        The size of the SSD (30).

        Returns:
        The size of the SSD (30).
      • bundleId

        public final String bundleId()

        The bundle ID (micro_1_0).

        Returns:
        The bundle ID (micro_1_0).
      • instanceType

        public final String instanceType()

        The Amazon EC2 instance type (t2.micro).

        Returns:
        The Amazon EC2 instance type (t2.micro).
      • isActive

        public final Boolean isActive()

        A Boolean value indicating whether the bundle is active.

        Returns:
        A Boolean value indicating whether the bundle is active.
      • name

        public final String name()

        A friendly name for the bundle (Micro).

        Returns:
        A friendly name for the bundle (Micro).
      • power

        public final 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.

        Returns:
        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.
      • ramSizeInGb

        public final Float ramSizeInGb()

        The amount of RAM in GB (2.0).

        Returns:
        The amount of RAM in GB (2.0).
      • transferPerMonthInGb

        public final Integer transferPerMonthInGb()

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

        Returns:
        The data transfer rate per month in GB (2000).
      • supportedPlatforms

        public final List<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.

        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 hasSupportedPlatforms() method.

        Returns:
        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.
      • hasSupportedPlatforms

        public final boolean hasSupportedPlatforms()
        For responses, this returns true if the service returned a value for the SupportedPlatforms property. This DOES NOT check that the value is non-empty (for which, you should check the 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.
      • supportedPlatformsAsStrings

        public final List<String> supportedPlatformsAsStrings()

        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.

        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 hasSupportedPlatforms() method.

        Returns:
        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.
      • supportedAppCategories

        public final List<AppCategory> supportedAppCategories()

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

        This parameter only applies to Lightsail for Research resources.

        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 hasSupportedAppCategories() method.

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

        This parameter only applies to Lightsail for Research resources.

      • hasSupportedAppCategories

        public final boolean hasSupportedAppCategories()
        For responses, this returns true if the service returned a value for the SupportedAppCategories property. This DOES NOT check that the value is non-empty (for which, you should check the 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.
      • supportedAppCategoriesAsStrings

        public final List<String> supportedAppCategoriesAsStrings()

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

        This parameter only applies to Lightsail for Research resources.

        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 hasSupportedAppCategories() method.

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

        This parameter only applies to Lightsail for Research resources.

      • publicIpv4AddressCount

        public final Integer publicIpv4AddressCount()

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

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

        public static Class<? extends Bundle.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)