Class Sku
- java.lang.Object
-
- com.azure.resourcemanager.redisenterprise.models.Sku
-
public final class Sku extends Object
SKU parameters supplied to the create RedisEnterprise operation.
-
-
Constructor Summary
Constructors Constructor Description Sku()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
capacity()
Get the capacity property: The size of the RedisEnterprise cluster.SkuName
name()
Get the name property: The type of RedisEnterprise cluster to deploy.void
validate()
Validates the instance.Sku
withCapacity(Integer capacity)
Set the capacity property: The size of the RedisEnterprise cluster.Sku
withName(SkuName name)
Set the name property: The type of RedisEnterprise cluster to deploy.
-
-
-
Method Detail
-
name
public SkuName name()
Get the name property: The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.).- Returns:
- the name value.
-
withName
public Sku withName(SkuName name)
Set the name property: The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.).- Parameters:
name
- the name value to set.- Returns:
- the Sku object itself.
-
capacity
public Integer capacity()
Get the capacity property: The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.- Returns:
- the capacity value.
-
withCapacity
public Sku withCapacity(Integer capacity)
Set the capacity property: The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs.- Parameters:
capacity
- the capacity value to set.- Returns:
- the Sku object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-