public class RedisCommonProperties extends Object
| Constructor and Description |
|---|
RedisCommonProperties() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
enableNonSslPort()
Get the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
|
TlsVersion |
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').
|
PublicNetworkAccess |
publicNetworkAccess()
Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache.
|
Map<String,String> |
redisConfiguration()
Get the redisConfiguration property: All Redis Settings.
|
String |
redisVersion()
Get the redisVersion property: Redis version.
|
Integer |
replicasPerMaster()
Get the replicasPerMaster property: The number of replicas to be created per primary.
|
Integer |
replicasPerPrimary()
Get the replicasPerPrimary property: The number of replicas to be created per primary.
|
Integer |
shardCount()
Get the shardCount property: The number of shards to be created on a Premium Cluster Cache.
|
Map<String,String> |
tenantSettings()
Get the tenantSettings property: A dictionary of tenant settings.
|
void |
validate()
Validates the instance.
|
RedisCommonProperties |
withEnableNonSslPort(Boolean enableNonSslPort)
Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
|
RedisCommonProperties |
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').
|
RedisCommonProperties |
withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache.
|
RedisCommonProperties |
withRedisConfiguration(Map<String,String> redisConfiguration)
Set the redisConfiguration property: All Redis Settings.
|
RedisCommonProperties |
withRedisVersion(String redisVersion)
Set the redisVersion property: Redis version.
|
RedisCommonProperties |
withReplicasPerMaster(Integer replicasPerMaster)
Set the replicasPerMaster property: The number of replicas to be created per primary.
|
RedisCommonProperties |
withReplicasPerPrimary(Integer replicasPerPrimary)
Set the replicasPerPrimary property: The number of replicas to be created per primary.
|
RedisCommonProperties |
withShardCount(Integer shardCount)
Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
|
RedisCommonProperties |
withTenantSettings(Map<String,String> tenantSettings)
Set the tenantSettings property: A dictionary of tenant settings.
|
public Map<String,String> redisConfiguration()
public RedisCommonProperties withRedisConfiguration(Map<String,String> redisConfiguration)
redisConfiguration - the redisConfiguration value to set.public String redisVersion()
public RedisCommonProperties withRedisVersion(String redisVersion)
redisVersion - the redisVersion value to set.public Boolean enableNonSslPort()
public RedisCommonProperties withEnableNonSslPort(Boolean enableNonSslPort)
enableNonSslPort - the enableNonSslPort value to set.public Integer replicasPerMaster()
public RedisCommonProperties withReplicasPerMaster(Integer replicasPerMaster)
replicasPerMaster - the replicasPerMaster value to set.public Integer replicasPerPrimary()
public RedisCommonProperties withReplicasPerPrimary(Integer replicasPerPrimary)
replicasPerPrimary - the replicasPerPrimary value to set.public Map<String,String> tenantSettings()
public RedisCommonProperties withTenantSettings(Map<String,String> tenantSettings)
tenantSettings - the tenantSettings value to set.public Integer shardCount()
public RedisCommonProperties withShardCount(Integer shardCount)
shardCount - the shardCount value to set.public TlsVersion minimumTlsVersion()
public RedisCommonProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion)
minimumTlsVersion - the minimumTlsVersion value to set.public PublicNetworkAccess publicNetworkAccess()
public RedisCommonProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
publicNetworkAccess - the publicNetworkAccess value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.