Class RedisUpdateProperties


  • public final class RedisUpdateProperties
    extends RedisCommonProperties
    Patchable properties of the redis cache.
    • Constructor Detail

      • RedisUpdateProperties

        public RedisUpdateProperties()
    • Method Detail

      • sku

        public Sku sku()
        Get the sku property: The SKU of the Redis cache to deploy.
        Returns:
        the sku value.
      • withSku

        public RedisUpdateProperties withSku​(Sku sku)
        Set the sku property: The SKU of the Redis cache to deploy.
        Parameters:
        sku - the sku value to set.
        Returns:
        the RedisUpdateProperties object itself.
      • withRedisConfiguration

        public RedisUpdateProperties withRedisConfiguration​(RedisConfiguration redisConfiguration)
        Set the redisConfiguration property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
        Overrides:
        withRedisConfiguration in class RedisCommonProperties
        Parameters:
        redisConfiguration - the redisConfiguration value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withRedisVersion

        public RedisUpdateProperties withRedisVersion​(String redisVersion)
        Set the redisVersion property: Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6).
        Overrides:
        withRedisVersion in class RedisCommonProperties
        Parameters:
        redisVersion - the redisVersion value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withEnableNonSslPort

        public RedisUpdateProperties withEnableNonSslPort​(Boolean enableNonSslPort)
        Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
        Overrides:
        withEnableNonSslPort in class RedisCommonProperties
        Parameters:
        enableNonSslPort - the enableNonSslPort value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withReplicasPerMaster

        public RedisUpdateProperties withReplicasPerMaster​(Integer replicasPerMaster)
        Set the replicasPerMaster property: The number of replicas to be created per primary.
        Overrides:
        withReplicasPerMaster in class RedisCommonProperties
        Parameters:
        replicasPerMaster - the replicasPerMaster value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withReplicasPerPrimary

        public RedisUpdateProperties withReplicasPerPrimary​(Integer replicasPerPrimary)
        Set the replicasPerPrimary property: The number of replicas to be created per primary.
        Overrides:
        withReplicasPerPrimary in class RedisCommonProperties
        Parameters:
        replicasPerPrimary - the replicasPerPrimary value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withShardCount

        public RedisUpdateProperties withShardCount​(Integer shardCount)
        Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
        Overrides:
        withShardCount in class RedisCommonProperties
        Parameters:
        shardCount - the shardCount value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withMinimumTlsVersion

        public RedisUpdateProperties withMinimumTlsVersion​(TlsVersion minimumTlsVersion)
        Set the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
        Overrides:
        withMinimumTlsVersion in class RedisCommonProperties
        Parameters:
        minimumTlsVersion - the minimumTlsVersion value to set.
        Returns:
        the RedisCommonProperties object itself.
      • withPublicNetworkAccess

        public RedisUpdateProperties withPublicNetworkAccess​(PublicNetworkAccess publicNetworkAccess)
        Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
        Overrides:
        withPublicNetworkAccess in class RedisCommonProperties
        Parameters:
        publicNetworkAccess - the publicNetworkAccess value to set.
        Returns:
        the RedisCommonProperties object itself.