Share via


InstancePoolProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.InstancePoolProperties

Implements

public final class InstancePoolProperties
implements JsonSerializable<InstancePoolProperties>

Properties of an instance pool.

Constructor Summary

Constructor Description
InstancePoolProperties()

Creates an instance of InstancePoolProperties class.

Method Summary

Modifier and Type Method and Description
static InstancePoolProperties fromJson(JsonReader jsonReader)

Reads an instance of InstancePoolProperties from the JsonReader.

InstancePoolLicenseType licenseType()

Get the licenseType property: The license type.

String subnetId()

Get the subnetId property: Resource ID of the subnet to place this instance pool in.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

int vCores()

Get the vCores property: Count of vCores belonging to this instance pool.

InstancePoolProperties withLicenseType(InstancePoolLicenseType licenseType)

Set the licenseType property: The license type.

InstancePoolProperties withSubnetId(String subnetId)

Set the subnetId property: Resource ID of the subnet to place this instance pool in.

InstancePoolProperties withVCores(int vCores)

Set the vCores property: Count of vCores belonging to this instance pool.

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:

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

subnetId

public String subnetId()

Get the subnetId property: Resource ID of the subnet to place this instance pool in.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vCores

public int vCores()

Get the vCores property: Count of vCores belonging to this instance pool.

Returns:

the vCores value.

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:

licenseType - the licenseType value to set.

Returns:

the InstancePoolProperties object itself.

withSubnetId

public InstancePoolProperties 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 InstancePoolProperties object itself.

withVCores

public InstancePoolProperties withVCores(int vCores)

Set the vCores property: Count of vCores belonging to this instance pool.

Parameters:

vCores - the vCores value to set.

Returns:

the InstancePoolProperties object itself.

Applies to