com.microsoft.azure.management.sql.SqlDatabaseBasicStorage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-sql Show documentation
Show all versions of azure-mgmt-sql Show documentation
This package contains Microsoft Azure SDK for SQL Management module.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.sql;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Fluent;
/**
* The maximum allowed storage capacity for a "Basic" edition of an Azure SQL Elastic Pool.
*/
@Fluent
@Beta(Beta.SinceVersion.V1_7_0)
public enum SqlDatabaseBasicStorage {
/** 100 MB storage capacity available for the database. */
MAX_100_MB(100),
/** 100 MB storage capacity available for the database. */
MAX_500_MB(500),
/** 1 GB storage capacity available for the database. */
MAX_1_GB(1024),
/** 2 GB storage capacity available for the database. */
MAX_2_GB(2 * 1024);
/** The maximum allowed storage capacity in MB for the SQL Database. */
private long capacityInMB;
SqlDatabaseBasicStorage(long capacityInMB) {
this.capacityInMB = capacityInMB;
}
/**
* @return the maximum allowed storage capacity in MB for the SQL Database
*/
public long capacityInMB() {
return this.capacityInMB;
}
/**
* @return the maximum allowed storage capacity in bytes for the SQL Database
*/
public long capacity() {
return this.capacityInMB * 1024 * 1024;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy