Share via


SqlManagedInstanceSku Class

  • java.lang.Object
    • com.azure.resourcemanager.azurearcdata.models.SqlManagedInstanceSku

Implements

public final class SqlManagedInstanceSku
implements JsonSerializable<SqlManagedInstanceSku>

The resource model definition representing SKU for Azure Managed Instance - Azure Arc.

Constructor Summary

Constructor Description
SqlManagedInstanceSku()

Creates an instance of SqlManagedInstanceSku class.

Method Summary

Modifier and Type Method and Description
Integer capacity()

Get the capacity property: The capacity property.

Boolean dev()

Get the dev property: Whether dev/test is enabled.

String family()

Get the family property: The family property.

static SqlManagedInstanceSku fromJson(JsonReader jsonReader)

Reads an instance of SqlManagedInstanceSku from the JsonReader.

String name()

Get the name property: The name of the SKU.

String size()

Get the size property: The SKU size.

SqlManagedInstanceSkuTier tier()

Get the tier property: The pricing tier for the instance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlManagedInstanceSku withCapacity(Integer capacity)

Set the capacity property: The capacity property.

SqlManagedInstanceSku withDev(Boolean dev)

Set the dev property: Whether dev/test is enabled.

SqlManagedInstanceSku withFamily(String family)

Set the family property: The family property.

SqlManagedInstanceSku withSize(String size)

Set the size property: The SKU size.

SqlManagedInstanceSku withTier(SqlManagedInstanceSkuTier tier)

Set the tier property: The pricing tier for the instance.

Methods inherited from java.lang.Object

Constructor Details

SqlManagedInstanceSku

public SqlManagedInstanceSku()

Creates an instance of SqlManagedInstanceSku class.

Method Details

capacity

public Integer capacity()

Get the capacity property: The capacity property.

Returns:

the capacity value.

dev

public Boolean dev()

Get the dev property: Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.

Returns:

the dev value.

family

public String family()

Get the family property: The family property.

Returns:

the family value.

fromJson

public static SqlManagedInstanceSku fromJson(JsonReader jsonReader)

Reads an instance of SqlManagedInstanceSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlManagedInstanceSku 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.

name

public String name()

Get the name property: The name of the SKU.

Returns:

the name value.

size

public String size()

Get the size property: The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.

Returns:

the size value.

tier

public SqlManagedInstanceSkuTier tier()

Get the tier property: The pricing tier for the instance.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacity

public SqlManagedInstanceSku withCapacity(Integer capacity)

Set the capacity property: The capacity property.

Parameters:

capacity - the capacity value to set.

Returns:

the SqlManagedInstanceSku object itself.

withDev

public SqlManagedInstanceSku withDev(Boolean dev)

Set the dev property: Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose.

Parameters:

dev - the dev value to set.

Returns:

the SqlManagedInstanceSku object itself.

withFamily

public SqlManagedInstanceSku withFamily(String family)

Set the family property: The family property.

Parameters:

family - the family value to set.

Returns:

the SqlManagedInstanceSku object itself.

withSize

public SqlManagedInstanceSku withSize(String size)

Set the size property: The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.

Parameters:

size - the size value to set.

Returns:

the SqlManagedInstanceSku object itself.

withTier

public SqlManagedInstanceSku withTier(SqlManagedInstanceSkuTier tier)

Set the tier property: The pricing tier for the instance.

Parameters:

tier - the tier value to set.

Returns:

the SqlManagedInstanceSku object itself.

Applies to