Enum SqlDatabaseBasicStorage
- java.lang.Object
-
- java.lang.Enum<SqlDatabaseBasicStorage>
-
- com.azure.resourcemanager.sql.models.SqlDatabaseBasicStorage
-
- All Implemented Interfaces:
Serializable,Comparable<SqlDatabaseBasicStorage>
public enum SqlDatabaseBasicStorage extends Enum<SqlDatabaseBasicStorage>
The maximum allowed storage capacity for a "Basic" edition of an Azure SQL Elastic Pool.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAX_1_GB1 GB storage capacity available for the database.MAX_100_MB100 MB storage capacity available for the database.MAX_2_GB2 GB storage capacity available for the database.MAX_500_MB100 MB storage capacity available for the database.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcapacity()longcapacityInMB()static SqlDatabaseBasicStoragevalueOf(String name)Returns the enum constant of this type with the specified name.static SqlDatabaseBasicStorage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX_100_MB
public static final SqlDatabaseBasicStorage MAX_100_MB
100 MB storage capacity available for the database.
-
MAX_500_MB
public static final SqlDatabaseBasicStorage MAX_500_MB
100 MB storage capacity available for the database.
-
MAX_1_GB
public static final SqlDatabaseBasicStorage MAX_1_GB
1 GB storage capacity available for the database.
-
MAX_2_GB
public static final SqlDatabaseBasicStorage MAX_2_GB
2 GB storage capacity available for the database.
-
-
Method Detail
-
values
public static SqlDatabaseBasicStorage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SqlDatabaseBasicStorage c : SqlDatabaseBasicStorage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlDatabaseBasicStorage valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
capacityInMB
public long capacityInMB()
- Returns:
- the maximum allowed storage capacity in MB for the SQL Database
-
capacity
public long capacity()
- Returns:
- the maximum allowed storage capacity in bytes for the SQL Database
-
-