Class Bundle

java.lang.Object
software.amazon.awssdk.services.lightsail.model.Bundle
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<Bundle.Builder,Bundle>

@Generated("software.amazon.awssdk:codegen") public final class Bundle extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Bundle.Builder,Bundle>

Describes a bundle, which is a set of specs describing your virtual private server (or instance).

See Also:
  • Method Details

    • 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_x_x).

      Returns:
      The bundle ID (micro_x_x).
    • instanceType

      public final String instanceType()

      The instance type (micro).

      Returns:
      The instance type (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.
    • toBuilder

      public Bundle.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<Bundle.Builder,Bundle>
      Returns:
      a builder for type T
    • builder

      public static Bundle.Builder builder()
    • 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
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • 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)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.