DatabaseProductInfo class abstract
Definition of a database product including defaults and constraints.
- Implemented types
Constructors
- DatabaseProductInfo({required DatabaseSizeOption size, required String productId, required String name, required String description, DatabaseScalingInfo? scaling, int? cuHoursPerMonthLimit, int? storageLimitGB})
-
factory
-
DatabaseProductInfo.fromJson(Map<
String, dynamic> jsonSerialization) -
factory
Properties
- cuHoursPerMonthLimit ↔ int?
-
The limit on compute unit hours per month, if any.
getter/setter pair
- description ↔ String
-
The user-friendly description of the product.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String
-
The user-friendly name of the product.
getter/setter pair
- productId ↔ String
-
The id of the product.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaling ↔ DatabaseScalingInfo?
-
Scaling configuration, if this size supports variable CU allocation.
getter/setter pair
- size ↔ DatabaseSizeOption
-
The database size.
getter/setter pair
- storageLimitGB ↔ int?
-
The storage limit in GB, if any.
getter/setter pair
Methods
-
copyWith(
{DatabaseSizeOption? size, String? productId, String? name, String? description, DatabaseScalingInfo? scaling, int? cuHoursPerMonthLimit, int? storageLimitGB}) → DatabaseProductInfo - Returns a shallow copy of this DatabaseProductInfo with some or all fields replaced by the given arguments.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a serialized JSON structure of the model which also includes
fields used by the database.
override
-
toJsonForProtocol(
) → Map< String, dynamic> -
Returns a JSON structure of the model, optimized for Protocol communication.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited