Sku Class
- java.
lang. Object - com.
microsoft. azure. management. sql. Sku
- com.
public class Sku
The resource model definition representing SKU.
Method Summary
Modifier and Type | Method and Description |
---|---|
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. |
String |
family()
Get if the service has different generations of hardware, for the same SKU, then that can be captured here. |
String |
name()
Get the name of the SKU. Ex - P3. It is typically a letter+number code. |
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. |
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. If scale out/in is not possible for the resource this may be omitted. |
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. Ex - P3. It is typically a letter+number code. |
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. |
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. |
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:
family
public String family()
Get if the service has different generations of hardware, for the same SKU, then that can be captured here.
Returns:
name
public String name()
Get the name of the SKU. Ex - P3. It is typically a letter+number code.
Returns:
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:
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:
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:
Returns:
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:
Returns:
withName
public Sku withName(String name)
Set the name of the SKU. Ex - P3. It is typically a letter+number code.
Parameters:
Returns:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java