Class InstancePoolProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.InstancePoolProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InstancePoolProperties>
public final class InstancePoolProperties
extends Object
implements com.azure.json.JsonSerializable<InstancePoolProperties>
Properties of an instance pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of InstancePoolProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InstancePoolPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InstancePoolProperties from the JsonReader.Get the licenseType property: The license type.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) voidvalidate()Validates the instance.intvCores()Get the vCores property: Count of vCores belonging to this instance pool.withLicenseType(InstancePoolLicenseType licenseType) Set the licenseType property: The license type.withSubnetId(String subnetId) Set the subnetId property: Resource ID of the subnet to place this instance pool in.withVCores(int vCores) Set the vCores property: Count of vCores belonging to this instance pool.Methods inherited from class java.lang.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
-
InstancePoolProperties
public InstancePoolProperties()Creates an instance of InstancePoolProperties class.
-
-
Method Details
-
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 InstancePoolProperties object itself.
-
vCores
public int 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 InstancePoolProperties 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 InstancePoolProperties 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<InstancePoolProperties>- Throws:
IOException
-
fromJson
public static InstancePoolProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of InstancePoolProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InstancePoolProperties 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 InstancePoolProperties.
-