@Generated(value="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).
| Modifier and Type | Class and Description |
|---|---|
static interface |
Bundle.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Bundle.Builder |
builder() |
String |
bundleId()
The bundle ID (e.g.,
micro_1_0). |
Integer |
cpuCount()
The number of vCPUs included in the bundle (e.g.,
2). |
Integer |
diskSizeInGb()
The size of the SSD (e.g.,
30). |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSupportedAppCategories()
For responses, this returns true if the service returned a value for the SupportedAppCategories property.
|
boolean |
hasSupportedPlatforms()
For responses, this returns true if the service returned a value for the SupportedPlatforms property.
|
String |
instanceType()
The Amazon EC2 instance type (e.g.,
t2.micro). |
Boolean |
isActive()
A Boolean value indicating whether the bundle is active.
|
String |
name()
A friendly name for the bundle (e.g.,
Micro). |
Integer |
power()
A numeric value that represents the power of the bundle (e.g.,
500). |
Float |
price()
The price in US dollars (e.g.,
5.0) of the bundle. |
Float |
ramSizeInGb()
The amount of RAM in GB (e.g.,
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.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
transferPerMonthInGb()
The data transfer rate per month in GB (e.g.,
2000). |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Float price()
The price in US dollars (e.g., 5.0) of the bundle.
5.0) of the bundle.public final Integer cpuCount()
The number of vCPUs included in the bundle (e.g., 2).
2).public final Integer diskSizeInGb()
The size of the SSD (e.g., 30).
30).public final String bundleId()
The bundle ID (e.g., micro_1_0).
micro_1_0).public final String instanceType()
The Amazon EC2 instance type (e.g., t2.micro).
t2.micro).public final Boolean isActive()
A Boolean value indicating whether the bundle is active.
public final String name()
A friendly name for the bundle (e.g., Micro).
Micro).public final Integer power()
A numeric value that represents the power of the bundle (e.g., 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.
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.public final Float ramSizeInGb()
The amount of RAM in GB (e.g., 2.0).
2.0).public final Integer transferPerMonthInGb()
The data transfer rate per month in GB (e.g., 2000).
2000).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.
WINDOWS bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.public final boolean hasSupportedPlatforms()
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.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.
WINDOWS bundle on a blueprint that supports the WINDOWS
platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.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.
This parameter only applies to Lightsail for Research resources.
public final boolean hasSupportedAppCategories()
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.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.
This parameter only applies to Lightsail for Research resources.
public Bundle.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Bundle.Builder,Bundle>public static Bundle.Builder builder()
public static Class<? extends Bundle.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.