Class DbServerMetadata
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.DbServerMetadata
Database server metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlocation()Get the location property: Location of database server.sku()Get the sku property: SKU for the database server.Get the storageMb property: Storage size in MB for database server.voidvalidate()Validates the instance.version()Get the version property: Version for database engine.Set the sku property: SKU for the database server.withStorageMb(Integer storageMb) Set the storageMb property: Storage size in MB for database server.withVersion(String version) Set the version property: Version for database engine.
-
Constructor Details
-
DbServerMetadata
public DbServerMetadata()Creates an instance of DbServerMetadata class.
-
-
Method Details
-
location
Get the location property: Location of database server.- Returns:
- the location value.
-
version
Get the version property: Version for database engine.- Returns:
- the version value.
-
withVersion
Set the version property: Version for database engine.- Parameters:
version- the version value to set.- Returns:
- the DbServerMetadata object itself.
-
storageMb
Get the storageMb property: Storage size in MB for database server.- Returns:
- the storageMb value.
-
withStorageMb
Set the storageMb property: Storage size in MB for database server.- Parameters:
storageMb- the storageMb value to set.- Returns:
- the DbServerMetadata object itself.
-
sku
Get the sku property: SKU for the database server.- Returns:
- the sku value.
-
withSku
Set the sku property: SKU for the database server.- Parameters:
sku- the sku value to set.- Returns:
- the DbServerMetadata object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-