Class CacheProfile
java.lang.Object
com.azure.resourcemanager.workloads.models.CacheProfile
Cache profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the cacheResourceId property: Cache resource Id.long
capacity()
Get the capacity property: Cache capacity.family()
Get the family property: Cache family.name()
Get the name property: Cache name.skuName()
Get the skuName property: Cache SKU name.void
validate()
Validates the instance.withCapacity
(long capacity) Set the capacity property: Cache capacity.withFamily
(RedisCacheFamily family) Set the family property: Cache family.Set the name property: Cache name.withSkuName
(String skuName) Set the skuName property: Cache SKU name.
-
Constructor Details
-
CacheProfile
public CacheProfile()
-
-
Method Details
-
name
Get the name property: Cache name.- Returns:
- the name value.
-
withName
Set the name property: Cache name.- Parameters:
name
- the name value to set.- Returns:
- the CacheProfile object itself.
-
skuName
Get the skuName property: Cache SKU name.- Returns:
- the skuName value.
-
withSkuName
Set the skuName property: Cache SKU name.- Parameters:
skuName
- the skuName value to set.- Returns:
- the CacheProfile object itself.
-
family
Get the family property: Cache family.- Returns:
- the family value.
-
withFamily
Set the family property: Cache family.- Parameters:
family
- the family value to set.- Returns:
- the CacheProfile object itself.
-
capacity
public long capacity()Get the capacity property: Cache capacity.- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Cache capacity.- Parameters:
capacity
- the capacity value to set.- Returns:
- the CacheProfile object itself.
-
cacheResourceId
Get the cacheResourceId property: Cache resource Id.- Returns:
- the cacheResourceId value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-