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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBundle.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Bundle.Builderbuilder()StringbundleId()The bundle ID (micro_1_0).IntegercpuCount()The number of vCPUs included in the bundle (2).IntegerdiskSizeInGb()The size of the SSD (30).booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasSupportedAppCategories()For responses, this returns true if the service returned a value for the SupportedAppCategories property.booleanhasSupportedPlatforms()For responses, this returns true if the service returned a value for the SupportedPlatforms property.StringinstanceType()The Amazon EC2 instance type (t2.micro).BooleanisActive()A Boolean value indicating whether the bundle is active.Stringname()A friendly name for the bundle (Micro).Integerpower()A numeric value that represents the power of the bundle (500).Floatprice()The price in US dollars (5.0) of the bundle.IntegerpublicIpv4AddressCount()An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.FloatramSizeInGb()The amount of RAM in GB (2.0).List<SdkField<?>>sdkFields()static Class<? extends Bundle.Builder>serializableBuilderClass()List<AppCategory>supportedAppCategories()Virtual computer blueprints that are supported by a Lightsail for Research bundle.List<String>supportedAppCategoriesAsStrings()Virtual computer blueprints that are supported by a Lightsail for Research bundle.List<InstancePlatform>supportedPlatforms()The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.List<String>supportedPlatformsAsStrings()The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.Bundle.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegertransferPerMonthInGb()The data transfer rate per month in GB (2000).-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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
WINDOWSbundle on a blueprint that supports theWINDOWSplatform.LINUX_UNIXblueprints require aLINUX_UNIXbundle.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
WINDOWSbundle on a blueprint that supports theWINDOWSplatform.LINUX_UNIXblueprints require aLINUX_UNIXbundle.
-
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 theisEmpty()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
WINDOWSbundle on a blueprint that supports theWINDOWSplatform.LINUX_UNIXblueprints require aLINUX_UNIXbundle.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
WINDOWSbundle on a blueprint that supports theWINDOWSplatform.LINUX_UNIXblueprints require aLINUX_UNIXbundle.
-
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 theisEmpty()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()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Bundle.Builder,Bundle>
-
builder
public static Bundle.Builder builder()
-
serializableBuilderClass
public static Class<? extends Bundle.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-