InstancePoolProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. InstancePoolProperties
- com.
Implements
public final class InstancePoolProperties
implements JsonSerializable<InstancePoolProperties>
Properties of an instance pool.
Constructor Summary
| Constructor | Description |
|---|---|
| InstancePoolProperties() |
Creates an instance of Instance |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Instance |
fromJson(JsonReader jsonReader)
Reads an instance of Instance |
|
Instance |
licenseType()
Get the license |
| String |
subnetId()
Get the subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| int |
vCores()
Get the v |
|
Instance |
withLicenseType(InstancePoolLicenseType licenseType)
Set the license |
|
Instance |
withSubnetId(String subnetId)
Set the subnet |
|
Instance |
withVCores(int vCores)
Set the v |
Methods inherited from java.lang.Object
Constructor Details
InstancePoolProperties
public InstancePoolProperties()
Creates an instance of InstancePoolProperties class.
Method Details
fromJson
public static InstancePoolProperties fromJson(JsonReader jsonReader)
Reads an instance of InstancePoolProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
subnetId
public String subnetId()
Get the subnetId property: Resource ID of the subnet to place this instance pool in.
Returns:
toJson
validate
public void validate()
Validates the instance.
vCores
public int vCores()
Get the vCores property: Count of vCores belonging to this instance pool.
Returns:
withLicenseType
public InstancePoolProperties 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:
withSubnetId
public InstancePoolProperties withSubnetId(String subnetId)
Set the subnetId property: Resource ID of the subnet to place this instance pool in.
Parameters:
Returns:
withVCores
public InstancePoolProperties withVCores(int vCores)
Set the vCores property: Count of vCores belonging to this instance pool.
Parameters:
Returns: