Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.redis; import com.microsoft.azure.management.apigeneration.Beta; import org.joda.time.Period; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.redis.implementation.RedisManager; import com.microsoft.azure.management.redis.implementation.RedisResourceInner; import com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; import com.microsoft.azure.management.resources.fluentcore.arm.models.Resource; import com.microsoft.azure.management.resources.fluentcore.model.Appliable; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; import com.microsoft.azure.management.resources.fluentcore.model.Updatable; import java.util.List; import java.util.Map;
An immutable client-side representation of an Azure Redis Cache.
/** * An immutable client-side representation of an Azure Redis Cache. */
@Fluent public interface RedisCache extends GroupableResource<RedisManager, RedisResourceInner>, Refreshable<RedisCache>, Updatable<RedisCache.Update> {
Returns:exposes features available only to Premium Sku Redis Cache instances.
/** * @return exposes features available only to Premium Sku Redis Cache instances. */
@Method RedisCachePremium asPremium();
Returns:returns true if current Redis Cache instance has Premium Sku.
/** * @return returns true if current Redis Cache instance has Premium Sku. */
boolean isPremium();
Returns:the provisioningState value
/** * @return the provisioningState value */
String provisioningState();
Returns:the hostName value
/** * @return the hostName value */
String hostName();
Returns:the port value
/** * @return the port value */
int port();
Returns:the sslPort value
/** * @return the sslPort value */
int sslPort();
Returns:the Redis version value
/** * @return the Redis version value */
String redisVersion();
Returns:the sku value
/** * @return the sku value */
Sku sku();
Returns:the Redis configuration value
/** * @return the Redis configuration value */
Map<String, String> redisConfiguration();
Returns:true if non SSL port is enabled, false otherwise
/** * @return true if non SSL port is enabled, false otherwise */
boolean nonSslPort();
Returns:the shardCount value
/** * @return the shardCount value */
int shardCount();
Returns:the subnetId value
/** * @return the subnetId value */
String subnetId();
Returns:the staticIP value
/** * @return the staticIP value */
String staticIP();
Returns:the minimum TLS version (or higher) that clients require to use.
/** * @return the minimum TLS version (or higher) that clients require to use. */
@Beta(Beta.SinceVersion.V1_12_0) TlsVersion minimumTlsVersion();
Returns:Firewall Rules in the Redis Cache, indexed by name
/** * @return Firewall Rules in the Redis Cache, indexed by name */
@Beta(Beta.SinceVersion.V1_12_0) Map<String, RedisFirewallRule> firewallRules();
Returns:List of patch schedules for current Redis Cache.
/** * @return List of patch schedules for current Redis Cache. */
@Beta(Beta.SinceVersion.V1_12_0) List<ScheduleEntry> patchSchedules();
Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.
Params:
  • rebootType – specifies which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'.
/** * Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss. * * @param rebootType specifies which Redis node(s) to reboot. Depending on this value data loss is * possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'. */
void forceReboot(RebootType rebootType);
Returns:a Redis Cache's access keys. This operation requires write permission to the Cache resource.
/** * @return a Redis Cache's access keys. This operation requires write permission to the Cache resource. */
@Method RedisAccessKeys getKeys();
Returns:a Redis Cache's access keys. This operation requires write permission to the Cache resource.
/** * @return a Redis Cache's access keys. This operation requires write permission to the Cache resource. */
RedisAccessKeys keys();
Fetch the up-to-date access keys from Azure for this Redis Cache.
Returns:the access keys for this Redis Cache
/** * Fetch the up-to-date access keys from Azure for this Redis Cache. * * @return the access keys for this Redis Cache */
@Method RedisAccessKeys refreshKeys();
Regenerates the access keys for this Redis Cache.
Params:
  • keyType – key type to regenerate
Returns:the generated access keys for this Redis Cache
/** * Regenerates the access keys for this Redis Cache. * * @param keyType key type to regenerate * @return the generated access keys for this Redis Cache */
RedisAccessKeys regenerateKey(RedisKeyType keyType); /************************************************************** * Fluent interfaces to provision a RedisCache **************************************************************/
Container interface for all the definitions that need to be implemented.
/** * Container interface for all the definitions that need to be implemented. */
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithSku, DefinitionStages.WithCreate, DefinitionStages.WithPremiumSkuCreate { }
Grouping of all the Redis Cache definition stages.
/** * Grouping of all the Redis Cache definition stages. */
interface DefinitionStages {
The first stage of the Redis Cache definition.
/** * The first stage of the Redis Cache definition. */
interface Blank extends DefinitionWithRegion<WithGroup> { }
A Redis Cache definition allowing resource group to be set.
/** * A Redis Cache definition allowing resource group to be set. */
interface WithGroup extends GroupableResource.DefinitionStages.WithGroup<WithSku> { }
A Redis Cache definition allowing the sku to be set.
/** * A Redis Cache definition allowing the sku to be set. */
interface WithSku {
Specifies the Basic sku of the Redis Cache.
Returns:the next stage of Redis Cache definition.
/** * Specifies the Basic sku of the Redis Cache. * * @return the next stage of Redis Cache definition. */
@Method WithCreate withBasicSku();
Specifies the Basic sku of the Redis Cache.
Params:
  • capacity – specifies what size of Redis Cache to deploy for Basic sku with C family (0, 1, 2, 3, 4, 5, 6).
Returns:the next stage of Redis Cache definition.
/** * Specifies the Basic sku of the Redis Cache. * * @param capacity specifies what size of Redis Cache to deploy for Basic sku with C family (0, 1, 2, 3, 4, 5, 6). * @return the next stage of Redis Cache definition. */
WithCreate withBasicSku(int capacity);
Specifies the Standard Sku of the Redis Cache.
Returns:the next stage of Redis Cache definition.
/** * Specifies the Standard Sku of the Redis Cache. * * @return the next stage of Redis Cache definition. */
@Method WithCreate withStandardSku();
Specifies the Standard sku of the Redis Cache.
Params:
  • capacity – specifies what size of Redis Cache to deploy for Standard sku with C family (0, 1, 2, 3, 4, 5, 6).
Returns:the next stage of Redis Cache definition.
/** * Specifies the Standard sku of the Redis Cache. * * @param capacity specifies what size of Redis Cache to deploy for Standard sku with C family (0, 1, 2, 3, 4, 5, 6). * @return the next stage of Redis Cache definition. */
WithCreate withStandardSku(int capacity);
Specifies the Premium sku of the Redis Cache.
Returns:the next stage of Redis Cache definition.
/** * Specifies the Premium sku of the Redis Cache. * * @return the next stage of Redis Cache definition. */
@Method WithPremiumSkuCreate withPremiumSku();
Specifies the Premium sku of the Redis Cache.
Params:
  • capacity – specifies what size of Redis Cache to deploy for Standard sku with P family (1, 2, 3, 4).
Returns:the next stage of Redis Cache definition.
/** * Specifies the Premium sku of the Redis Cache. * * @param capacity specifies what size of Redis Cache to deploy for Standard sku with P family (1, 2, 3, 4). * @return the next stage of Redis Cache definition. */
WithPremiumSkuCreate withPremiumSku(int capacity); }
A Redis Cache definition with sufficient inputs to create a new Redis Cache in the cloud, but exposing additional optional inputs to specify.
/** * A Redis Cache definition with sufficient inputs to create a new * Redis Cache in the cloud, but exposing additional optional inputs to * specify. */
interface WithCreate extends Creatable<RedisCache>, DefinitionWithTags<WithCreate> {
Enables non-ssl Redis server port (6379).
Returns:the next stage of Redis Cache definition.
/** * Enables non-ssl Redis server port (6379). * * @return the next stage of Redis Cache definition. */
@Method WithCreate withNonSslPort();
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.
Params:
  • redisConfiguration – configuration of Redis Cache as a map indexed by configuration name
Returns:the next stage of Redis Cache definition.
/** * 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. * * @param redisConfiguration configuration of Redis Cache as a map indexed by configuration name * @return the next stage of Redis Cache definition. */
WithCreate withRedisConfiguration(Map<String, String> redisConfiguration);
Specifies Redis Setting. 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.
Params:
  • key – Redis configuration name.
  • value – Redis configuration value.
Returns:the next stage of Redis Cache definition.
/** * Specifies Redis Setting. * 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. * * @param key Redis configuration name. * @param value Redis configuration value. * @return the next stage of Redis Cache definition. */
WithCreate withRedisConfiguration(String key, String value);
Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.
Params:
  • name – name of the rule.
  • lowestIp – lowest IP address included in the range.
  • highestIp – highest IP address included in the range.
Returns:the next stage of Redis Cache definition.
/** * Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache. * * @param name name of the rule. * @param lowestIp lowest IP address included in the range. * @param highestIp highest IP address included in the range. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) WithCreate withFirewallRule(String name, String lowestIp, String highestIp);
Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.
Params:
  • rule – firewall rule that specifies name, lowest and highest IP address included in the range of permitted IP addresses.
Returns:the next stage of Redis Cache definition.
/** * Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache. * * @param rule firewall rule that specifies name, lowest and highest IP address included in the range of permitted IP addresses. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) WithCreate withFirewallRule(RedisFirewallRule rule);
Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
Params:
  • tlsVersion – minimum TLS version.
Returns:the next stage of Redis Cache definition.
/** * Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). * * @param tlsVersion minimum TLS version. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) WithCreate withMinimumTlsVersion(TlsVersion tlsVersion);
Patch schedule on a Premium Cluster Cache.
Params:
  • dayOfWeek – day of week when cache can be patched.
  • startHourUtc – start hour after which cache patching can start.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Patch schedule on a Premium Cluster Cache. * * @param dayOfWeek day of week when cache can be patched. * @param startHourUtc start hour after which cache patching can start. * @return the next stage of Redis Cache with Premium SKU definition. */
WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc);
Patch schedule on a Premium Cluster Cache.
Params:
  • dayOfWeek – day of week when cache can be patched.
  • startHourUtc – start hour after which cache patching can start.
  • maintenanceWindow – ISO8601 timespan specifying how much time cache patching can take.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Patch schedule on a Premium Cluster Cache. * * @param dayOfWeek day of week when cache can be patched. * @param startHourUtc start hour after which cache patching can start. * @param maintenanceWindow ISO8601 timespan specifying how much time cache patching can take. * @return the next stage of Redis Cache with Premium SKU definition. */
WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc, Period maintenanceWindow);
Patch schedule on a Premium Cluster Cache.
Params:
  • scheduleEntry – Patch schedule entry for Premium Redis Cache.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Patch schedule on a Premium Cluster Cache. * * @param scheduleEntry Patch schedule entry for Premium Redis Cache. * @return the next stage of Redis Cache with Premium SKU definition. */
WithCreate withPatchSchedule(ScheduleEntry scheduleEntry);
Patch schedule on a Premium Cluster Cache.
Params:
  • scheduleEntry – List of patch schedule entries for Premium Redis Cache.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Patch schedule on a Premium Cluster Cache. * * @param scheduleEntry List of patch schedule entries for Premium Redis Cache. * @return the next stage of Redis Cache with Premium SKU definition. */
WithCreate withPatchSchedule(List<ScheduleEntry> scheduleEntry); }
A Redis Cache definition with Premium Sku specific functionality.
/** * A Redis Cache definition with Premium Sku specific functionality. */
interface WithPremiumSkuCreate extends DefinitionStages.WithCreate {
The number of shards to be created on a Premium Cluster Cache.
Params:
  • shardCount – the shard count value to set.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * The number of shards to be created on a Premium Cluster Cache. * * @param shardCount the shard count value to set. * @return the next stage of Redis Cache with Premium SKU definition. */
WithPremiumSkuCreate withShardCount(int shardCount);
Assigns the specified subnet to this instance of Redis Cache.
Params:
  • network – instance of Network object.
  • subnetName – the name of the subnet.
Returns:the next stage of Redis Cache definition.
/** * Assigns the specified subnet to this instance of Redis Cache. * * @param network instance of Network object. * @param subnetName the name of the subnet. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) WithCreate withSubnet(HasId network, String subnetName);
Assigns the specified subnet to this instance of Redis Cache.
Params:
  • subnetId – resource id of subnet.
Returns:the next stage of Redis Cache definition.
/** * Assigns the specified subnet to this instance of Redis Cache. * * @param subnetId resource id of subnet. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) WithCreate withSubnet(String subnetId);
Sets Redis Cache static IP. Required when deploying a Redis Cache inside an existing Azure Virtual Network.
Params:
  • staticIP – the static IP value to set.
Returns:the next stage of Redis Cache definition.
/** * Sets Redis Cache static IP. Required when deploying a Redis Cache inside an existing Azure Virtual Network. * * @param staticIP the static IP value to set. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) WithCreate withStaticIP(String staticIP); } }
Grouping of all the Redis Cache update stages.
/** * Grouping of all the Redis Cache update stages. */
interface UpdateStages {
A Redis Cache update stage allowing to change the parameters.
/** * A Redis Cache update stage allowing to change the parameters. */
interface WithSku {
Updates Redis Cache to Basic sku with new capacity.
Params:
  • capacity – specifies what size of Redis Cache to update to for Basic sku with C family (0, 1, 2, 3, 4, 5, 6).
Returns:the next stage of Redis Cache update.
/** * Updates Redis Cache to Basic sku with new capacity. * * @param capacity specifies what size of Redis Cache to update to for Basic sku with C family (0, 1, 2, 3, 4, 5, 6). * @return the next stage of Redis Cache update. */
Update withBasicSku(int capacity);
Updates Redis Cache to Standard sku.
Returns:the next stage of Redis Cache update.
/** * Updates Redis Cache to Standard sku. * * @return the next stage of Redis Cache update. */
@Method Update withStandardSku();
Updates Redis Cache to Standard sku with new capacity.
Params:
  • capacity – specifies what size of Redis Cache to update to for Standard sku with C family (0, 1, 2, 3, 4, 5, 6).
Returns:the next stage of Redis Cache update.
/** * Updates Redis Cache to Standard sku with new capacity. * * @param capacity specifies what size of Redis Cache to update to for Standard sku with C family (0, 1, 2, 3, 4, 5, 6). * @return the next stage of Redis Cache update. */
Update withStandardSku(int capacity);
Updates Redis Cache to Premium sku.
Returns:the next stage of Redis Cache update.
/** * Updates Redis Cache to Premium sku. * * @return the next stage of Redis Cache update. */
@Method Update withPremiumSku();
Updates Redis Cache to Premium sku with new capacity.
Params:
  • capacity – specifies what size of Redis Cache to update to for Premium sku with P family (1, 2, 3, 4).
Returns:the next stage of Redis Cache update.
/** * Updates Redis Cache to Premium sku with new capacity. * * @param capacity specifies what size of Redis Cache to update to for Premium sku with P family (1, 2, 3, 4). * @return the next stage of Redis Cache update. */
Update withPremiumSku(int capacity); }
A Redis Cache update allowing non SSL port to be enabled or disabled.
/** * A Redis Cache update allowing non SSL port to be enabled or disabled. */
interface WithNonSslPort {
Enables non-ssl Redis server port (6379).
Returns:the next stage of Redis Cache update.
/** * Enables non-ssl Redis server port (6379). * * @return the next stage of Redis Cache update. */
@Method Update withNonSslPort();
Disables non-ssl Redis server port (6379).
Returns:the next stage of Redis Cache update.
/** * Disables non-ssl Redis server port (6379). * * @return the next stage of Redis Cache update. */
@Method Update withoutNonSslPort(); }
A Redis Cache update allowing Redis configuration to be modified.
/** * A Redis Cache update allowing Redis configuration to be modified. */
interface WithRedisConfiguration {
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.
Params:
  • redisConfiguration – configuration of Redis Cache as a map indexed by configuration name
Returns:the next stage of Redis Cache update.
/** * 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. * * @param redisConfiguration configuration of Redis Cache as a map indexed by configuration name * @return the next stage of Redis Cache update. */
Update withRedisConfiguration(Map<String, String> redisConfiguration);
Specifies Redis Setting. 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.
Params:
  • key – Redis configuration name.
  • value – Redis configuration value.
Returns:the next stage of Redis Cache update.
/** * Specifies Redis Setting. * 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. * * @param key Redis configuration name. * @param value Redis configuration value. * @return the next stage of Redis Cache update. */
Update withRedisConfiguration(String key, String value);
Cleans all the configuration settings being set on Redis Cache.
Returns:the next stage of Redis Cache update.
/** * Cleans all the configuration settings being set on Redis Cache. * * @return the next stage of Redis Cache update. */
@Method Update withoutRedisConfiguration();
Removes specified Redis Cache configuration setting.
Params:
  • key – Redis configuration name.
Returns:the next stage of Redis Cache update.
/** * Removes specified Redis Cache configuration setting. * * @param key Redis configuration name. * @return the next stage of Redis Cache update. */
Update withoutRedisConfiguration(String key); } }
The template for a Redis Cache update operation, containing all the settings that can be modified.
/** * The template for a Redis Cache update operation, containing all the settings that can be modified. */
interface Update extends Appliable<RedisCache>, Resource.UpdateWithTags<Update>, UpdateStages.WithSku, UpdateStages.WithNonSslPort, UpdateStages.WithRedisConfiguration {
The number of shards to be created on a Premium Cluster Cache.
Params:
  • shardCount – the shard count value to set.
Returns:the next stage of Redis Cache update.
/** * The number of shards to be created on a Premium Cluster Cache. * * @param shardCount the shard count value to set. * @return the next stage of Redis Cache update. */
Update withShardCount(int shardCount);
Adds Patch schedule to the current Premium Cluster Cache.
Params:
  • dayOfWeek – day of week when cache can be patched.
  • startHourUtc – start hour after which cache patching can start.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Adds Patch schedule to the current Premium Cluster Cache. * * @param dayOfWeek day of week when cache can be patched. * @param startHourUtc start hour after which cache patching can start. * @return the next stage of Redis Cache with Premium SKU definition. */
Update withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc);
Adds Patch schedule to the current Premium Cluster Cache.
Params:
  • dayOfWeek – day of week when cache can be patched.
  • startHourUtc – start hour after which cache patching can start.
  • maintenanceWindow – ISO8601 timespan specifying how much time cache patching can take.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Adds Patch schedule to the current Premium Cluster Cache. * * @param dayOfWeek day of week when cache can be patched. * @param startHourUtc start hour after which cache patching can start. * @param maintenanceWindow ISO8601 timespan specifying how much time cache patching can take. * @return the next stage of Redis Cache with Premium SKU definition. */
Update withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc, Period maintenanceWindow);
Adds Patch schedule to the current Premium Cluster Cache.
Params:
  • scheduleEntry – Patch schedule entry for Premium Redis Cache.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Adds Patch schedule to the current Premium Cluster Cache. * * @param scheduleEntry Patch schedule entry for Premium Redis Cache. * @return the next stage of Redis Cache with Premium SKU definition. */
Update withPatchSchedule(ScheduleEntry scheduleEntry);
Adds Patch schedule to the current Premium Cluster Cache.
Params:
  • scheduleEntry – List of patch schedule entries for Premium Redis Cache.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Adds Patch schedule to the current Premium Cluster Cache. * * @param scheduleEntry List of patch schedule entries for Premium Redis Cache. * @return the next stage of Redis Cache with Premium SKU definition. */
Update withPatchSchedule(List<ScheduleEntry> scheduleEntry);
Removes all Patch schedules from the current Premium Cluster Cache.
Returns:the next stage of Redis Cache with Premium SKU definition.
/** * Removes all Patch schedules from the current Premium Cluster Cache. * * @return the next stage of Redis Cache with Premium SKU definition. */
@Beta(Beta.SinceVersion.V1_12_0) @Method Update withoutPatchSchedule();
Creates or updates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.
Params:
  • name – name of the rule.
  • lowestIp – lowest IP address included in the range.
  • highestIp – highest IP address included in the range.
Returns:the next stage of Redis Cache update.
/** * Creates or updates Redis cache firewall rule with range of IP addresses permitted to connect to the cache. * * @param name name of the rule. * @param lowestIp lowest IP address included in the range. * @param highestIp highest IP address included in the range. * @return the next stage of Redis Cache update. */
@Beta(Beta.SinceVersion.V1_12_0) Update withFirewallRule(String name, String lowestIp, String highestIp);
Creates or updates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.
Params:
  • rule – firewall rule that specifies name, lowest and highest IP address included in the range of permitted IP addresses.
Returns:the next stage of Redis Cache update.
/** * Creates or updates Redis cache firewall rule with range of IP addresses permitted to connect to the cache. * * @param rule firewall rule that specifies name, lowest and highest IP address included in the range of permitted IP addresses. * @return the next stage of Redis Cache update. */
@Beta(Beta.SinceVersion.V1_12_0) Update withFirewallRule(RedisFirewallRule rule);
Deletes a single firewall rule in the current Redis cache instance.
Params:
  • name – name of the rule.
Returns:the next stage of Redis Cache update.
/** * Deletes a single firewall rule in the current Redis cache instance. * * @param name name of the rule. * @return the next stage of Redis Cache update. */
@Beta(Beta.SinceVersion.V1_12_0) Update withoutFirewallRule(String name);
Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').
Params:
  • tlsVersion – minimum TLS version.
Returns:the next stage of Redis Cache definition.
/** * Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). * * @param tlsVersion minimum TLS version. * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) Update withMinimumTlsVersion(TlsVersion tlsVersion);
Removes the requirement for clients minimum TLS version.
Returns:the next stage of Redis Cache definition.
/** * Removes the requirement for clients minimum TLS version. * * @return the next stage of Redis Cache definition. */
@Beta(Beta.SinceVersion.V1_12_0) @Method Update withoutMinimumTlsVersion(); } }