Class InstancePoolInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.sql.fluent.models.InstancePoolInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class InstancePoolInner
extends com.azure.core.management.Resource
An Azure SQL instance pool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InstancePoolInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InstancePoolInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the licenseType property: The license type.name()Get the name property: The name of the resource.sku()Get the sku property: The name and tier of the SKU.subnetId()Get the subnetId property: Resource ID of the subnet to place this instance pool in.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.vCores()Get the vCores property: Count of vCores belonging to this instance pool.withLicenseType(InstancePoolLicenseType licenseType) Set the licenseType property: The license type.withLocation(String location) Set the sku property: The name and tier of the SKU.withSubnetId(String subnetId) Set the subnetId property: Resource ID of the subnet to place this instance pool in.withVCores(Integer vCores) Set the vCores property: Count of vCores belonging to this instance pool.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
InstancePoolInner
public InstancePoolInner()Creates an instance of InstancePoolInner class.
-
-
Method Details
-
sku
-
withSku
Set the sku property: The name and tier of the SKU.- Parameters:
sku- the sku value to set.- Returns:
- the InstancePoolInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
subnetId
Get the subnetId property: Resource ID of the subnet to place this instance pool in.- Returns:
- the subnetId value.
-
withSubnetId
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
Get the vCores property: Count of vCores belonging to this instance pool.- Returns:
- the vCores value.
-
withVCores
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of InstancePoolInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InstancePoolInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the InstancePoolInner.
-