java.lang.Object
com.azure.resourcemanager.storagecache.fluent.models.CacheProperties

public final class CacheProperties extends Object
Properties of the cache.
  • Constructor Details

    • CacheProperties

      public CacheProperties()
      Creates an instance of CacheProperties class.
  • Method Details

    • cacheSizeGB

      public Integer cacheSizeGB()
      Get the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>.
      Returns:
      the cacheSizeGB value.
    • withCacheSizeGB

      public CacheProperties withCacheSizeGB(Integer cacheSizeGB)
      Set the cacheSizeGB property: The size of this cache, in GB, when scalingFactor is 1.0. Values depend on the cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>.
      Parameters:
      cacheSizeGB - the cacheSizeGB value to set.
      Returns:
      the CacheProperties object itself.
    • scalingFactor

      public Double scalingFactor()
      Get the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. Values depend on the cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% larger than its base size.
      Returns:
      the scalingFactor value.
    • withScalingFactor

      public CacheProperties withScalingFactor(Double scalingFactor)
      Set the scalingFactor property: Multiplier that sets the current storage and throughput capacity of the cache. Values depend on the cache SKU - <a href="https://learn.microsoft.com/en-us/rest/api/storagecache/skus/list?tabs=HTTP">List SKUs</a>. Values above 1.0 increase the cache size and throughput - for example, the scaling factor 1.33 gives a cache that's 33% larger than its base size.
      Parameters:
      scalingFactor - the scalingFactor value to set.
      Returns:
      the CacheProperties object itself.
    • health

      public CacheHealth health()
      Get the health property: Health of the cache.
      Returns:
      the health value.
    • mountAddresses

      public List<String> mountAddresses()
      Get the mountAddresses property: Array of IPv4 addresses that can be used by clients mounting this cache.
      Returns:
      the mountAddresses value.
    • provisioningState

      public ProvisioningStateType provisioningState()
      Get the provisioningState property: ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
      Returns:
      the provisioningState value.
    • subnet

      public String subnet()
      Get the subnet property: Subnet used for the cache.
      Returns:
      the subnet value.
    • withSubnet

      public CacheProperties withSubnet(String subnet)
      Set the subnet property: Subnet used for the cache.
      Parameters:
      subnet - the subnet value to set.
      Returns:
      the CacheProperties object itself.
    • upgradeStatus

      public CacheUpgradeStatus upgradeStatus()
      Get the upgradeStatus property: Upgrade status of the cache.
      Returns:
      the upgradeStatus value.
    • upgradeSettings

      public CacheUpgradeSettings upgradeSettings()
      Get the upgradeSettings property: Upgrade settings of the cache.
      Returns:
      the upgradeSettings value.
    • withUpgradeSettings

      public CacheProperties withUpgradeSettings(CacheUpgradeSettings upgradeSettings)
      Set the upgradeSettings property: Upgrade settings of the cache.
      Parameters:
      upgradeSettings - the upgradeSettings value to set.
      Returns:
      the CacheProperties object itself.
    • networkSettings

      public CacheNetworkSettings networkSettings()
      Get the networkSettings property: Specifies network settings of the cache.
      Returns:
      the networkSettings value.
    • withNetworkSettings

      public CacheProperties withNetworkSettings(CacheNetworkSettings networkSettings)
      Set the networkSettings property: Specifies network settings of the cache.
      Parameters:
      networkSettings - the networkSettings value to set.
      Returns:
      the CacheProperties object itself.
    • encryptionSettings

      public CacheEncryptionSettings encryptionSettings()
      Get the encryptionSettings property: Specifies encryption settings of the cache.
      Returns:
      the encryptionSettings value.
    • withEncryptionSettings

      public CacheProperties withEncryptionSettings(CacheEncryptionSettings encryptionSettings)
      Set the encryptionSettings property: Specifies encryption settings of the cache.
      Parameters:
      encryptionSettings - the encryptionSettings value to set.
      Returns:
      the CacheProperties object itself.
    • securitySettings

      public CacheSecuritySettings securitySettings()
      Get the securitySettings property: Specifies security settings of the cache.
      Returns:
      the securitySettings value.
    • withSecuritySettings

      public CacheProperties withSecuritySettings(CacheSecuritySettings securitySettings)
      Set the securitySettings property: Specifies security settings of the cache.
      Parameters:
      securitySettings - the securitySettings value to set.
      Returns:
      the CacheProperties object itself.
    • directoryServicesSettings

      public CacheDirectorySettings directoryServicesSettings()
      Get the directoryServicesSettings property: Specifies Directory Services settings of the cache.
      Returns:
      the directoryServicesSettings value.
    • withDirectoryServicesSettings

      public CacheProperties withDirectoryServicesSettings(CacheDirectorySettings directoryServicesSettings)
      Set the directoryServicesSettings property: Specifies Directory Services settings of the cache.
      Parameters:
      directoryServicesSettings - the directoryServicesSettings value to set.
      Returns:
      the CacheProperties object itself.
    • zones

      public List<String> zones()
      Get the zones property: Availability zones for resources. This field should only contain a single element in the array.
      Returns:
      the zones value.
    • withZones

      public CacheProperties withZones(List<String> zones)
      Set the zones property: Availability zones for resources. This field should only contain a single element in the array.
      Parameters:
      zones - the zones value to set.
      Returns:
      the CacheProperties object itself.
    • primingJobs

      public List<PrimingJob> primingJobs()
      Get the primingJobs property: Specifies the priming jobs defined in the cache.
      Returns:
      the primingJobs value.
    • spaceAllocation

      public List<StorageTargetSpaceAllocation> spaceAllocation()
      Get the spaceAllocation property: Specifies the space allocation percentage for each storage target in the cache.
      Returns:
      the spaceAllocation value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.