Bundle class

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

Constructors

Bundle({String? bundleId, int? cpuCount, int? diskSizeInGb, String? instanceType, bool? isActive, String? name, int? power, double? price, double? ramSizeInGb, List<InstancePlatform>? supportedPlatforms, int? transferPerMonthInGb})
Bundle.fromJson(Map<String, dynamic> json)
factory

Properties

bundleId String?
The bundle ID (e.g., micro_1_0).
final
cpuCount int?
The number of vCPUs included in the bundle (e.g., 2).
final
diskSizeInGb int?
The size of the SSD (e.g., 30).
final
hashCode int
The hash code for this object.
no setterinherited
instanceType String?
The Amazon EC2 instance type (e.g., t2.micro).
final
isActive bool?
A Boolean value indicating whether the bundle is active.
final
name String?
A friendly name for the bundle (e.g., Micro).
final
power int?
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.
final
price double?
The price in US dollars (e.g., 5.0) of the bundle.
final
ramSizeInGb double?
The amount of RAM in GB (e.g., 2.0).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedPlatforms List<InstancePlatform>?
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.
final
transferPerMonthInGb int?
The data transfer rate per month in GB (e.g., 2000).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited