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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RedisCache.DefinitionStages.WithCreatewithFirewallRule(RedisFirewallRule rule)Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.RedisCache.DefinitionStages.WithCreatewithFirewallRule(String name, String lowestIp, String highestIp)Creates Redis cache firewall rule with range of IP addresses permitted to connect to the cache.RedisCache.DefinitionStages.WithCreatewithMinimumTlsVersion(TlsVersion tlsVersion)Requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').RedisCache.DefinitionStages.WithCreatewithNonSslPort()Enables non-ssl Redis server port (6379).RedisCache.DefinitionStages.WithCreatewithPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc)Patch schedule on a Premium Cluster Cache.RedisCache.DefinitionStages.WithCreatewithPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc, Duration maintenanceWindow)Patch schedule on a Premium Cluster Cache.RedisCache.DefinitionStages.WithCreatewithPatchSchedule(ScheduleEntry scheduleEntry)Patch schedule on a Premium Cluster Cache.RedisCache.DefinitionStages.WithCreatewithPatchSchedule(List<ScheduleEntry> scheduleEntry)Patch schedule on a Premium Cluster Cache.RedisCache.DefinitionStages.WithCreatewithRedisConfiguration(RedisConfiguration redisConfiguration)Specifies Redis Setting.RedisCache.DefinitionStages.WithCreatewithRedisConfiguration(String key, String value)Specifies Redis Setting.RedisCache.DefinitionStages.WithCreatewithRedisConfiguration(Map<String,String> redisConfiguration)All Redis Settings.RedisCache.DefinitionStages.WithCreatewithRedisVersion(RedisCache.RedisVersion redisVersion)Explicitly specify the Redis version to create with-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Creatable
create, create, createAsync, createAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.DefinitionWithTags
withTag, withTags
-
-
-
-
Method Detail
-
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
RedisCache.DefinitionStages.WithCreate withRedisConfiguration(String key, String value)
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.
-
withRedisConfiguration
RedisCache.DefinitionStages.WithCreate withRedisConfiguration(RedisConfiguration redisConfiguration)
Specifies Redis Setting.- Parameters:
redisConfiguration- the Redis configuration.- Returns:
- the next stage of Redis Cache definition.
-
withFirewallRule
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
RedisCache.DefinitionStages.WithCreate withFirewallRule(RedisFirewallRule rule)
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
RedisCache.DefinitionStages.WithCreate withMinimumTlsVersion(TlsVersion tlsVersion)
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
RedisCache.DefinitionStages.WithCreate withPatchSchedule(DayOfWeek dayOfWeek, int startHourUtc)
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, Duration 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
RedisCache.DefinitionStages.WithCreate withPatchSchedule(ScheduleEntry scheduleEntry)
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
RedisCache.DefinitionStages.WithCreate withPatchSchedule(List<ScheduleEntry> scheduleEntry)
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.
-
withRedisVersion
RedisCache.DefinitionStages.WithCreate withRedisVersion(RedisCache.RedisVersion redisVersion)
Explicitly specify the Redis version to create with- Parameters:
redisVersion- the redisVersion value to set.- Returns:
- the next stage of Redis Cache with Premium SKU definition.
-
-