public class RedisCreateProperties extends RedisCommonProperties
| Constructor and Description |
|---|
RedisCreateProperties() |
| Modifier and Type | Method and Description |
|---|---|
Sku |
sku()
Get the sku property: The SKU of the Redis cache to deploy.
|
String |
staticIp()
Get the staticIp property: Static IP address.
|
String |
subnetId()
Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.
|
void |
validate()
Validates the instance.
|
RedisCreateProperties |
withEnableNonSslPort(Boolean enableNonSslPort)
Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.
|
RedisCreateProperties |
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').
|
RedisCreateProperties |
withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache.
|
RedisCreateProperties |
withRedisConfiguration(Map<String,String> redisConfiguration)
Set the redisConfiguration property: All Redis Settings.
|
RedisCreateProperties |
withReplicasPerMaster(Integer replicasPerMaster)
Set the replicasPerMaster property: The number of replicas to be created per master.
|
RedisCreateProperties |
withShardCount(Integer shardCount)
Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.
|
RedisCreateProperties |
withSku(Sku sku)
Set the sku property: The SKU of the Redis cache to deploy.
|
RedisCreateProperties |
withStaticIp(String staticIp)
Set the staticIp property: Static IP address.
|
RedisCreateProperties |
withSubnetId(String subnetId)
Set the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.
|
RedisCreateProperties |
withTenantSettings(Map<String,String> tenantSettings)
Set the tenantSettings property: A dictionary of tenant settings.
|
enableNonSslPort, minimumTlsVersion, publicNetworkAccess, redisConfiguration, replicasPerMaster, shardCount, tenantSettingspublic Sku sku()
public RedisCreateProperties withSku(Sku sku)
sku - the sku value to set.public String subnetId()
public RedisCreateProperties withSubnetId(String subnetId)
subnetId - the subnetId value to set.public String staticIp()
public RedisCreateProperties withStaticIp(String staticIp)
staticIp - the staticIp value to set.public RedisCreateProperties withRedisConfiguration(Map<String,String> redisConfiguration)
withRedisConfiguration in class RedisCommonPropertiesredisConfiguration - the redisConfiguration value to set.public RedisCreateProperties withEnableNonSslPort(Boolean enableNonSslPort)
withEnableNonSslPort in class RedisCommonPropertiesenableNonSslPort - the enableNonSslPort value to set.public RedisCreateProperties withReplicasPerMaster(Integer replicasPerMaster)
withReplicasPerMaster in class RedisCommonPropertiesreplicasPerMaster - the replicasPerMaster value to set.public RedisCreateProperties withTenantSettings(Map<String,String> tenantSettings)
withTenantSettings in class RedisCommonPropertiestenantSettings - the tenantSettings value to set.public RedisCreateProperties withShardCount(Integer shardCount)
withShardCount in class RedisCommonPropertiesshardCount - the shardCount value to set.public RedisCreateProperties withMinimumTlsVersion(TlsVersion minimumTlsVersion)
withMinimumTlsVersion in class RedisCommonPropertiesminimumTlsVersion - the minimumTlsVersion value to set.public RedisCreateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
withPublicNetworkAccess in class RedisCommonPropertiespublicNetworkAccess - the publicNetworkAccess value to set.public void validate()
validate in class RedisCommonPropertiesIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.