Class CacheProfile

java.lang.Object
com.azure.resourcemanager.workloads.models.CacheProfile

public final class CacheProfile extends Object
Cache profile.
  • Constructor Details

    • CacheProfile

      public CacheProfile()
  • Method Details

    • name

      public String name()
      Get the name property: Cache name.
      Returns:
      the name value.
    • withName

      public CacheProfile withName(String name)
      Set the name property: Cache name.
      Parameters:
      name - the name value to set.
      Returns:
      the CacheProfile object itself.
    • skuName

      public String skuName()
      Get the skuName property: Cache SKU name.
      Returns:
      the skuName value.
    • withSkuName

      public CacheProfile withSkuName(String skuName)
      Set the skuName property: Cache SKU name.
      Parameters:
      skuName - the skuName value to set.
      Returns:
      the CacheProfile object itself.
    • family

      public RedisCacheFamily family()
      Get the family property: Cache family.
      Returns:
      the family value.
    • withFamily

      public CacheProfile withFamily(RedisCacheFamily family)
      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

      public CacheProfile withCapacity(long capacity)
      Set the capacity property: Cache capacity.
      Parameters:
      capacity - the capacity value to set.
      Returns:
      the CacheProfile object itself.
    • cacheResourceId

      public String 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.