Class Bundle
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Bundle.Builder,Bundle>
Describes a bundle, which is a set of specs describing your virtual private server (or instance).
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Bundle.Builderbuilder()final StringbundleId()The bundle ID (micro_x_x).final IntegercpuCount()The number of vCPUs included in the bundle (2).final IntegerThe size of the SSD (30).final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SupportedAppCategories property.final booleanFor responses, this returns true if the service returned a value for the SupportedPlatforms property.final StringThe instance type (micro).final BooleanisActive()A Boolean value indicating whether the bundle is active.final Stringname()A friendly name for the bundle (Micro).final Integerpower()A numeric value that represents the power of the bundle (500).final Floatprice()The price in US dollars (5.0) of the bundle.final IntegerAn integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.final FloatThe amount of RAM in GB (2.0).static Class<? extends Bundle.Builder> final List<AppCategory> Virtual computer blueprints that are supported by a Lightsail for Research bundle.Virtual computer blueprints that are supported by a Lightsail for Research bundle.final List<InstancePlatform> The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final IntegerThe data transfer rate per month in GB (2000).Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
price
The price in US dollars (
5.0) of the bundle.- Returns:
- The price in US dollars (
5.0) of the bundle.
-
cpuCount
The number of vCPUs included in the bundle (
2).- Returns:
- The number of vCPUs included in the bundle (
2).
-
diskSizeInGb
-
bundleId
-
instanceType
-
isActive
A Boolean value indicating whether the bundle is active.
- Returns:
- A Boolean value indicating whether the bundle is active.
-
name
A friendly name for the bundle (
Micro).- Returns:
- A friendly name for the bundle (
Micro).
-
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
The amount of RAM in GB (
2.0).- Returns:
- The amount of RAM in GB (
2.0).
-
transferPerMonthInGb
The data transfer rate per month in GB (
2000).- Returns:
- The data transfer rate per month in GB (
2000).
-
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
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
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
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
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
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Bundle.Builder,Bundle> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-