Class RedisCreateProperties
- java.lang.Object
-
- com.azure.resourcemanager.redis.models.RedisCommonProperties
-
- com.azure.resourcemanager.redis.fluent.models.RedisCreateProperties
-
- Direct Known Subclasses:
RedisPropertiesInner
public class RedisCreateProperties extends RedisCommonProperties
Properties supplied to Create Redis operation.
-
-
Constructor Summary
Constructors Constructor Description RedisCreateProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Skusku()Get the sku property: The SKU of the Redis cache to deploy.StringstaticIp()Get the staticIp property: Static IP address.StringsubnetId()Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.voidvalidate()Validates the instance.RedisCreatePropertieswithEnableNonSslPort(Boolean enableNonSslPort)Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.RedisCreatePropertieswithMinimumTlsVersion(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').RedisCreatePropertieswithPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this cache.RedisCreatePropertieswithRedisConfiguration(RedisConfiguration redisConfiguration)Set the redisConfiguration property: All Redis Settings.RedisCreatePropertieswithRedisVersion(String redisVersion)Set the redisVersion property: Redis version.RedisCreatePropertieswithReplicasPerMaster(Integer replicasPerMaster)Set the replicasPerMaster property: The number of replicas to be created per primary.RedisCreatePropertieswithReplicasPerPrimary(Integer replicasPerPrimary)Set the replicasPerPrimary property: The number of replicas to be created per primary.RedisCreatePropertieswithShardCount(Integer shardCount)Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.RedisCreatePropertieswithSku(Sku sku)Set the sku property: The SKU of the Redis cache to deploy.RedisCreatePropertieswithStaticIp(String staticIp)Set the staticIp property: Static IP address.RedisCreatePropertieswithSubnetId(String subnetId)Set the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in.RedisCreatePropertieswithTenantSettings(Map<String,String> tenantSettings)Set the tenantSettings property: A dictionary of tenant settings.-
Methods inherited from class com.azure.resourcemanager.redis.models.RedisCommonProperties
enableNonSslPort, minimumTlsVersion, publicNetworkAccess, redisConfiguration, redisVersion, replicasPerMaster, replicasPerPrimary, shardCount, tenantSettings
-
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: The SKU of the Redis cache to deploy.- Returns:
- the sku value.
-
withSku
public RedisCreateProperties withSku(Sku sku)
Set the sku property: The SKU of the Redis cache to deploy.- Parameters:
sku- the sku value to set.- Returns:
- the RedisCreateProperties object itself.
-
subnetId
public String subnetId()
Get the subnetId property: The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.- Returns:
- the subnetId value.
-
withSubnetId
public 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. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.- Parameters:
subnetId- the subnetId value to set.- Returns:
- the RedisCreateProperties object itself.
-
staticIp
public String staticIp()
Get the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.- Returns:
- the staticIp value.
-
withStaticIp
public RedisCreateProperties withStaticIp(String staticIp)
Set the staticIp property: Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.- Parameters:
staticIp- the staticIp value to set.- Returns:
- the RedisCreateProperties object itself.
-
withRedisConfiguration
public RedisCreateProperties withRedisConfiguration(RedisConfiguration redisConfiguration)
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.- Overrides:
withRedisConfigurationin classRedisCommonProperties- Parameters:
redisConfiguration- the redisConfiguration value to set.- Returns:
- the RedisCommonProperties object itself.
-
withRedisVersion
public RedisCreateProperties withRedisVersion(String redisVersion)
Set the redisVersion property: Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6).- Overrides:
withRedisVersionin classRedisCommonProperties- Parameters:
redisVersion- the redisVersion value to set.- Returns:
- the RedisCommonProperties object itself.
-
withEnableNonSslPort
public RedisCreateProperties withEnableNonSslPort(Boolean enableNonSslPort)
Set the enableNonSslPort property: Specifies whether the non-ssl Redis server port (6379) is enabled.- Overrides:
withEnableNonSslPortin classRedisCommonProperties- Parameters:
enableNonSslPort- the enableNonSslPort value to set.- Returns:
- the RedisCommonProperties object itself.
-
withReplicasPerMaster
public RedisCreateProperties withReplicasPerMaster(Integer replicasPerMaster)
Set the replicasPerMaster property: The number of replicas to be created per primary.- Overrides:
withReplicasPerMasterin classRedisCommonProperties- Parameters:
replicasPerMaster- the replicasPerMaster value to set.- Returns:
- the RedisCommonProperties object itself.
-
withReplicasPerPrimary
public RedisCreateProperties withReplicasPerPrimary(Integer replicasPerPrimary)
Set the replicasPerPrimary property: The number of replicas to be created per primary.- Overrides:
withReplicasPerPrimaryin classRedisCommonProperties- Parameters:
replicasPerPrimary- the replicasPerPrimary value to set.- Returns:
- the RedisCommonProperties object itself.
-
withTenantSettings
public RedisCreateProperties withTenantSettings(Map<String,String> tenantSettings)
Set the tenantSettings property: A dictionary of tenant settings.- Overrides:
withTenantSettingsin classRedisCommonProperties- Parameters:
tenantSettings- the tenantSettings value to set.- Returns:
- the RedisCommonProperties object itself.
-
withShardCount
public RedisCreateProperties withShardCount(Integer shardCount)
Set the shardCount property: The number of shards to be created on a Premium Cluster Cache.- Overrides:
withShardCountin classRedisCommonProperties- Parameters:
shardCount- the shardCount value to set.- Returns:
- the RedisCommonProperties object itself.
-
withMinimumTlsVersion
public 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').- Overrides:
withMinimumTlsVersionin classRedisCommonProperties- Parameters:
minimumTlsVersion- the minimumTlsVersion value to set.- Returns:
- the RedisCommonProperties object itself.
-
withPublicNetworkAccess
public RedisCreateProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)
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'.- Overrides:
withPublicNetworkAccessin classRedisCommonProperties- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the RedisCommonProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classRedisCommonProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-