Class RecommendedElasticPoolInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.RecommendedElasticPoolInner
-
public class RecommendedElasticPoolInner extends com.azure.core.management.ProxyResourceRepresents a recommended elastic pool.
-
-
Constructor Summary
Constructors Constructor Description RecommendedElasticPoolInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubledatabaseDtuMax()Get the databaseDtuMax property: The maximum DTU for the database.DoubledatabaseDtuMin()Get the databaseDtuMin property: The minimum DTU for the database.ElasticPoolEditiondatabaseEdition()Get the databaseEdition property: The edition of the recommended elastic pool.List<TrackedResource>databases()Get the databases property: The list of databases in this pool.Doubledtu()Get the dtu property: The DTU for the recommended elastic pool.DoublemaxObservedDtu()Get the maxObservedDtu property: Gets maximum observed DTU.DoublemaxObservedStorageMB()Get the maxObservedStorageMB property: Gets maximum observed storage in megabytes.List<RecommendedElasticPoolMetricInner>metrics()Get the metrics property: The list of databases housed in the server.OffsetDateTimeobservationPeriodEnd()Get the observationPeriodEnd property: The observation period start (ISO8601 format).OffsetDateTimeobservationPeriodStart()Get the observationPeriodStart property: The observation period start (ISO8601 format).DoublestorageMB()Get the storageMB property: Gets storage size in megabytes.voidvalidate()Validates the instance.RecommendedElasticPoolInnerwithDatabaseDtuMax(Double databaseDtuMax)Set the databaseDtuMax property: The maximum DTU for the database.RecommendedElasticPoolInnerwithDatabaseDtuMin(Double databaseDtuMin)Set the databaseDtuMin property: The minimum DTU for the database.RecommendedElasticPoolInnerwithDtu(Double dtu)Set the dtu property: The DTU for the recommended elastic pool.RecommendedElasticPoolInnerwithStorageMB(Double storageMB)Set the storageMB property: Gets storage size in megabytes.
-
-
-
Method Detail
-
databaseEdition
public ElasticPoolEdition databaseEdition()
Get the databaseEdition property: The edition of the recommended elastic pool. The ElasticPoolEdition enumeration contains all the valid editions.- Returns:
- the databaseEdition value.
-
dtu
public Double dtu()
Get the dtu property: The DTU for the recommended elastic pool.- Returns:
- the dtu value.
-
withDtu
public RecommendedElasticPoolInner withDtu(Double dtu)
Set the dtu property: The DTU for the recommended elastic pool.- Parameters:
dtu- the dtu value to set.- Returns:
- the RecommendedElasticPoolInner object itself.
-
databaseDtuMin
public Double databaseDtuMin()
Get the databaseDtuMin property: The minimum DTU for the database.- Returns:
- the databaseDtuMin value.
-
withDatabaseDtuMin
public RecommendedElasticPoolInner withDatabaseDtuMin(Double databaseDtuMin)
Set the databaseDtuMin property: The minimum DTU for the database.- Parameters:
databaseDtuMin- the databaseDtuMin value to set.- Returns:
- the RecommendedElasticPoolInner object itself.
-
databaseDtuMax
public Double databaseDtuMax()
Get the databaseDtuMax property: The maximum DTU for the database.- Returns:
- the databaseDtuMax value.
-
withDatabaseDtuMax
public RecommendedElasticPoolInner withDatabaseDtuMax(Double databaseDtuMax)
Set the databaseDtuMax property: The maximum DTU for the database.- Parameters:
databaseDtuMax- the databaseDtuMax value to set.- Returns:
- the RecommendedElasticPoolInner object itself.
-
storageMB
public Double storageMB()
Get the storageMB property: Gets storage size in megabytes.- Returns:
- the storageMB value.
-
withStorageMB
public RecommendedElasticPoolInner withStorageMB(Double storageMB)
Set the storageMB property: Gets storage size in megabytes.- Parameters:
storageMB- the storageMB value to set.- Returns:
- the RecommendedElasticPoolInner object itself.
-
observationPeriodStart
public OffsetDateTime observationPeriodStart()
Get the observationPeriodStart property: The observation period start (ISO8601 format).- Returns:
- the observationPeriodStart value.
-
observationPeriodEnd
public OffsetDateTime observationPeriodEnd()
Get the observationPeriodEnd property: The observation period start (ISO8601 format).- Returns:
- the observationPeriodEnd value.
-
maxObservedDtu
public Double maxObservedDtu()
Get the maxObservedDtu property: Gets maximum observed DTU.- Returns:
- the maxObservedDtu value.
-
maxObservedStorageMB
public Double maxObservedStorageMB()
Get the maxObservedStorageMB property: Gets maximum observed storage in megabytes.- Returns:
- the maxObservedStorageMB value.
-
databases
public List<TrackedResource> databases()
Get the databases property: The list of databases in this pool. Expanded property.- Returns:
- the databases value.
-
metrics
public List<RecommendedElasticPoolMetricInner> metrics()
Get the metrics property: The list of databases housed in the server. Expanded property.- Returns:
- the metrics value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-