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.Builder
builder()
final String
bundleId()
The bundle ID (micro_x_x
).final Integer
cpuCount()
The number of vCPUs included in the bundle (2
).final Integer
The size of the SSD (30
).final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SupportedAppCategories property.final boolean
For responses, this returns true if the service returned a value for the SupportedPlatforms property.final String
The instance type (micro
).final Boolean
isActive()
A Boolean value indicating whether the bundle is active.final String
name()
A friendly name for the bundle (Micro
).final Integer
power()
A numeric value that represents the power of the bundle (500
).final Float
price()
The price in US dollars (5.0
) of the bundle.final Integer
An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.final Float
The 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 String
toString()
Returns a string representation of this object.final Integer
The 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
WINDOWS
bundle on a blueprint that supports theWINDOWS
platform.LINUX_UNIX
blueprints require aLINUX_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 theWINDOWS
platform.LINUX_UNIX
blueprints require aLINUX_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 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
WINDOWS
bundle on a blueprint that supports theWINDOWS
platform.LINUX_UNIX
blueprints require aLINUX_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 theWINDOWS
platform.LINUX_UNIX
blueprints require aLINUX_UNIX
bundle.
-
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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Bundle.Builder,
Bundle> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
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 anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-