Sku Class

  • java.lang.Object
    • com.microsoft.azure.management.sql.Sku

public class Sku

The resource model definition representing SKU.

Constructor Summary

Constructor Description
Sku()

Method Summary

Modifier and Type Method and Description
java.lang.Integer capacity()

Get if the SKU supports scale out/in then the capacity integer should be included.

java.lang.String family()

Get if the service has different generations of hardware, for the same SKU, then that can be captured here.

java.lang.String name()

Get the name of the SKU.

java.lang.String size()

Get the SKU size.

java.lang.String tier()

Get this field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.

Sku withCapacity(Integer capacity)

Set if the SKU supports scale out/in then the capacity integer should be included.

Sku withFamily(String family)

Set if the service has different generations of hardware, for the same SKU, then that can be captured here.

Sku withName(String name)

Set the name of the SKU.

Sku withSize(String size)

Set the SKU size.

Sku withTier(String tier)

Set this field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Sku

public Sku()

Method Details

capacity

public Integer capacity()

Get if the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.

Returns:

the capacity value

family

public String family()

Get if the service has different generations of hardware, for the same SKU, then that can be captured here.

Returns:

the family value

name

public String name()

Get the name of the SKU. Ex - P3. It is typically a letter+number code.

Returns:

the name value

size

public String size()

Get 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 String tier()

Get this field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.

Returns:

the tier value

withCapacity

public Sku withCapacity(Integer capacity)

Set if the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.

Parameters:

capacity - the capacity value to set

Returns:

the Sku object itself.

withFamily

public Sku withFamily(String family)

Set if the service has different generations of hardware, for the same SKU, then that can be captured here.

Parameters:

family - the family value to set

Returns:

the Sku object itself.

withName

public Sku withName(String name)

Set the name of the SKU. Ex - P3. It is typically a letter+number code.

Parameters:

name - the name value to set

Returns:

the Sku object itself.

withSize

public Sku withSize(String size)

Set 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 Sku object itself.

withTier

public Sku withTier(String tier)

Set this field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.

Parameters:

tier - the tier value to set

Returns:

the Sku object itself.

Applies to