InstancePoolInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. sql. fluent. models. InstancePoolInner
- com.
- com.
- com.
public final class InstancePoolInner
extends Resource
An Azure SQL instance pool.
Constructor Summary
Constructor | Description |
---|---|
InstancePoolInner() |
Creates an instance of Instance |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Instance |
fromJson(JsonReader jsonReader)
Reads an instance of Instance |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Instance |
licenseType()
Get the license |
String |
name()
Get the name property: The name of the resource. |
Sku |
sku()
Get the sku property: The name and tier of the SKU. |
String |
subnetId()
Get the subnet |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Integer |
vCores()
Get the v |
void |
validate()
Validates the instance. |
Instance |
withLicenseType(InstancePoolLicenseType licenseType)
Set the license |
Instance |
withLocation(String location) |
Instance |
withSku(Sku sku)
Set the sku property: The name and tier of the SKU. |
Instance |
withSubnetId(String subnetId)
Set the subnet |
Instance |
withTags(Map<String,String> tags) |
Instance |
withVCores(Integer vCores)
Set the v |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
InstancePoolInner
public InstancePoolInner()
Creates an instance of InstancePoolInner class.
Method Details
fromJson
public static InstancePoolInner fromJson(JsonReader jsonReader)
Reads an instance of InstancePoolInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
InstancePoolInner.id()Returns:
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:
name
public String name()
Get the name property: The name of the resource.
Overrides:
InstancePoolInner.name()Returns:
sku
public Sku sku()
Get the sku property: The name and tier of the SKU.
Returns:
subnetId
public String subnetId()
Get the subnetId property: Resource ID of the subnet to place this instance pool in.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
InstancePoolInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
InstancePoolInner.type()Returns:
vCores
public Integer vCores()
Get the vCores property: Count of vCores belonging to this instance pool.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withLocation
public InstancePoolInner withLocation(String location)
Overrides:
InstancePoolInner.withLocation(String location)Parameters:
withSku
public InstancePoolInner withSku(Sku sku)
Set the sku property: The name and tier of the SKU.
Parameters:
Returns:
withSubnetId
public InstancePoolInner withSubnetId(String subnetId)
Set the subnetId property: Resource ID of the subnet to place this instance pool in.
Parameters:
Returns:
withTags
public InstancePoolInner withTags(Map
Overrides:
InstancePoolInner.withTags(Map<String,String> tags)Parameters:
withVCores
public InstancePoolInner withVCores(Integer vCores)
Set the vCores property: Count of vCores belonging to this instance pool.
Parameters:
Returns:
Applies to
Azure SDK for Java