Partager via


InstancePoolInner Class

public final class InstancePoolInner
extends Resource

An Azure SQL instance pool.

Constructor Summary

Constructor Description
InstancePoolInner()

Creates an instance of InstancePoolInner class.

Method Summary

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

Reads an instance of InstancePoolInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

InstancePoolLicenseType licenseType()

Get the licenseType property: The license type.

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 subnetId property: Resource ID of the subnet to place this instance pool in.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Integer vCores()

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

void validate()

Validates the instance.

InstancePoolInner withLicenseType(InstancePoolLicenseType licenseType)

Set the licenseType property: The license type.

InstancePoolInner withLocation(String location)
InstancePoolInner withSku(Sku sku)

Set the sku property: The name and tier of the SKU.

InstancePoolInner withSubnetId(String subnetId)

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

InstancePoolInner withTags(Map<String,String> tags)
InstancePoolInner withVCores(Integer vCores)

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

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:

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:

IOException

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

InstancePoolInner.id()

Returns:

the id value.

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.

name

public String name()

Get the name property: The name of the resource.

Overrides:

InstancePoolInner.name()

Returns:

the name value.

sku

public Sku sku()

Get the sku property: The name and tier of the SKU.

Returns:

the sku 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)

Overrides:

InstancePoolInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

InstancePoolInner.type()

Returns:

the type value.

vCores

public Integer vCores()

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

Returns:

the vCores value.

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:

licenseType - the licenseType value to set.

Returns:

the InstancePoolInner object itself.

withLocation

public InstancePoolInner withLocation(String location)

Overrides:

InstancePoolInner.withLocation(String location)

Parameters:

location

withSku

public InstancePoolInner withSku(Sku sku)

Set the sku property: The name and tier of the SKU.

Parameters:

sku - the sku value to set.

Returns:

the InstancePoolInner object itself.

withSubnetId

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

withTags

public InstancePoolInner withTags(Map tags)

Overrides:

InstancePoolInner.withTags(Map<String,String> tags)

Parameters:

tags

withVCores

public InstancePoolInner withVCores(Integer vCores)

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

Parameters:

vCores - the vCores value to set.

Returns:

the InstancePoolInner object itself.

Applies to