Interface RedisCache.DefinitionStages.WithCreate
- All Superinterfaces:
Creatable<RedisCache>
,HasName
,Indexable
,Resource.DefinitionWithTags<RedisCache.DefinitionStages.WithCreate>
- All Known Subinterfaces:
RedisCache.Definition
,RedisCache.DefinitionStages.WithPremiumSkuCreate
- Enclosing interface:
- RedisCache.DefinitionStages
public static interface RedisCache.DefinitionStages.WithCreate
extends Creatable<RedisCache>, Resource.DefinitionWithTags<RedisCache.DefinitionStages.WithCreate>
A Redis Cache definition with sufficient inputs to create a new
Redis Cache in the cloud, but exposing additional optional inputs to
specify.
-
Method Summary
Modifier and TypeMethodDescriptionCreates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.withFirewallRule
(String name, String lowestIp, String highestIp) Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.withMinimumTlsVersion
(TlsVersion tlsVersion) Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').Enables non-ssl Redis server port (6379).withPatchSchedule
(DayOfWeek dayOfWeek, int startHourUtc) Patch schedule on a Premium Cluster Cache.withPatchSchedule
(DayOfWeek dayOfWeek, int startHourUtc, org.joda.time.Period maintenanceWindow) Patch schedule on a Premium Cluster Cache.withPatchSchedule
(ScheduleEntry scheduleEntry) Patch schedule on a Premium Cluster Cache.withPatchSchedule
(List<ScheduleEntry> scheduleEntry) Patch schedule on a Premium Cluster Cache.withRedisConfiguration
(String key, String value) Specifies Redis Setting.withRedisConfiguration
(Map<String, String> redisConfiguration) All Redis Settings.Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Creatable
create, createAsync, createAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags
withTag, withTags
-
Method Details
-
withNonSslPort
RedisCache.DefinitionStages.WithCreate withNonSslPort()Enables non-ssl Redis server port (6379).- Returns:
- the next stage of Redis Cache definition.
-
withRedisConfiguration
RedisCache.DefinitionStages.WithCreate withRedisConfiguration(Map<String, String> redisConfiguration) 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.- Parameters:
redisConfiguration
- configuration of Redis Cache as a map indexed by configuration name- Returns:
- the next stage of Redis Cache definition.
-
withRedisConfiguration
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.- Parameters:
key
- Redis configuration name.value
- Redis configuration value.- Returns:
- the next stage of Redis Cache definition.
-
withFirewallRule
@Beta(V1_12_0) RedisCache.DefinitionStages.WithCreate withFirewallRule(String name, String lowestIp, String highestIp) Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.- Parameters:
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.
-
withFirewallRule
Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.- Parameters:
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.
-
withMinimumTlsVersion
Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').- Parameters:
tlsVersion
- minimum TLS version.- Returns:
- the next stage of Redis Cache definition.
-
withPatchSchedule
Patch schedule on a Premium Cluster Cache.- Parameters:
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.
-
withPatchSchedule
RedisCache.DefinitionStages.WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc, org.joda.time.Period maintenanceWindow) Patch schedule on a Premium Cluster Cache.- Parameters:
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.
-
withPatchSchedule
Patch schedule on a Premium Cluster Cache.- Parameters:
scheduleEntry
- Patch schedule entry for Premium Redis Cache.- Returns:
- the next stage of Redis Cache with Premium SKU definition.
-
withPatchSchedule
Patch schedule on a Premium Cluster Cache.- Parameters:
scheduleEntry
- List of patch schedule entries for Premium Redis Cache.- Returns:
- the next stage of Redis Cache with Premium SKU definition.
-