Class RedisCommonProperties
java.lang.Object
com.azure.resourcemanager.redis.models.RedisCommonProperties
- Direct Known Subclasses:
RedisCreateProperties,RedisUpdateProperties
Create/Update/Get common properties of the redis cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.Get the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache.Get the redisConfiguration property: All Redis Settings.Get the redisVersion property: Redis version.Get the replicasPerMaster property: The number of replicas to be created per primary.Get the replicasPerPrimary property: The number of replicas to be created per primary.Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.Get the tenantSettings property: A dictionary of tenant settings.voidvalidate()Validates the instance.withEnableNonSslPort(Boolean enableNonSslPort) Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.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').withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache.withRedisConfiguration(RedisConfiguration redisConfiguration) Set the redisConfiguration property: All Redis Settings.withRedisVersion(String redisVersion) Set the redisVersion property: Redis version.withReplicasPerMaster(Integer replicasPerMaster) Set the replicasPerMaster property: The number of replicas to be created per primary.withReplicasPerPrimary(Integer replicasPerPrimary) Set the replicasPerPrimary property: The number of replicas to be created per primary.withShardCount(Integer shardCount) Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.withTenantSettings(Map<String, String> tenantSettings) Set the tenantSettings property: A dictionary of tenant settings.
-
Constructor Details
-
RedisCommonProperties
public RedisCommonProperties()Creates an instance of RedisCommonProperties class.
-
-
Method Details
-
redisConfiguration
Get 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.- Returns:
- the redisConfiguration value.
-
withRedisConfiguration
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.- Parameters:
redisConfiguration- the redisConfiguration value to set.- Returns:
- the RedisCommonProperties object itself.
-
redisVersion
Get the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.- Returns:
- the redisVersion value.
-
withRedisVersion
Set the redisVersion property: Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.- Parameters:
redisVersion- the redisVersion value to set.- Returns:
- the RedisCommonProperties object itself.
-
enableNonSslPort
Get the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.- Returns:
- the enableNonSslPort value.
-
withEnableNonSslPort
Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.- Parameters:
enableNonSslPort- the enableNonSslPort value to set.- Returns:
- the RedisCommonProperties object itself.
-
replicasPerMaster
Get the replicasPerMaster property: The number of replicas to be created per primary.- Returns:
- the replicasPerMaster value.
-
withReplicasPerMaster
Set the replicasPerMaster property: The number of replicas to be created per primary.- Parameters:
replicasPerMaster- the replicasPerMaster value to set.- Returns:
- the RedisCommonProperties object itself.
-
replicasPerPrimary
Get the replicasPerPrimary property: The number of replicas to be created per primary.- Returns:
- the replicasPerPrimary value.
-
withReplicasPerPrimary
Set the replicasPerPrimary property: The number of replicas to be created per primary.- Parameters:
replicasPerPrimary- the replicasPerPrimary value to set.- Returns:
- the RedisCommonProperties object itself.
-
tenantSettings
Get the tenantSettings property: A dictionary of tenant settings.- Returns:
- the tenantSettings value.
-
withTenantSettings
Set the tenantSettings property: A dictionary of tenant settings.- Parameters:
tenantSettings- the tenantSettings value to set.- Returns:
- the RedisCommonProperties object itself.
-
shardCount
Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.- Returns:
- the shardCount value.
-
withShardCount
Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.- Parameters:
shardCount- the shardCount value to set.- Returns:
- the RedisCommonProperties object itself.
-
minimumTlsVersion
Get the minimumTlsVersion property: Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').- Returns:
- the minimumTlsVersion value.
-
withMinimumTlsVersion
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').- Parameters:
minimumTlsVersion- the minimumTlsVersion value to set.- Returns:
- the RedisCommonProperties object itself.
-
publicNetworkAccess
Get 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'.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
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'.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the RedisCommonProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-