Class InstancePoolInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.sql.fluent.models.InstancePoolInner
-
public class InstancePoolInner extends com.azure.core.management.ResourceAn Azure SQL instance pool.
-
-
Constructor Summary
Constructors Constructor Description InstancePoolInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancePoolLicenseTypelicenseType()Get the licenseType property: The license type.Skusku()Get the sku property: The name and tier of the SKU.StringsubnetId()Get the subnetId property: Resource ID of the subnet to place this instance pool in.voidvalidate()Validates the instance.IntegervCores()Get the vCores property: Count of vCores belonging to this instance pool.InstancePoolInnerwithLicenseType(InstancePoolLicenseType licenseType)Set the licenseType property: The license type.InstancePoolInnerwithSku(Sku sku)Set the sku property: The name and tier of the SKU.InstancePoolInnerwithSubnetId(String subnetId)Set the subnetId property: Resource ID of the subnet to place this instance pool in.InstancePoolInnerwithVCores(Integer vCores)Set the vCores property: Count of vCores belonging to this instance pool.
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: The name and tier of the SKU.- Returns:
- the sku value.
-
withSku
public InstancePoolInner withSku(Sku sku)
Set the sku property: The name and tier of the SKU.- Parameters:
sku- the sku value to set.- Returns:
- the InstancePoolInner object itself.
-
subnetId
public String subnetId()
Get the subnetId property: Resource ID of the subnet to place this instance pool in.- Returns:
- the subnetId value.
-
withSubnetId
public InstancePoolInner withSubnetId(String subnetId)
Set the subnetId property: Resource ID of the subnet to place this instance pool in.- Parameters:
subnetId- the subnetId value to set.- Returns:
- the InstancePoolInner object itself.
-
vCores
public Integer vCores()
Get the vCores property: Count of vCores belonging to this instance pool.- Returns:
- the vCores value.
-
withVCores
public InstancePoolInner withVCores(Integer vCores)
Set the vCores property: Count of vCores belonging to this instance pool.- Parameters:
vCores- the vCores value to set.- Returns:
- the InstancePoolInner object itself.
-
licenseType
public InstancePoolLicenseType licenseType()
Get the licenseType property: The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price).- Returns:
- the licenseType value.
-
withLicenseType
public InstancePoolInner withLicenseType(InstancePoolLicenseType licenseType)
Set the licenseType property: The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price).- Parameters:
licenseType- the licenseType value to set.- Returns:
- the InstancePoolInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-