Class RedisConfiguration
java.lang.Object
com.azure.resourcemanager.redis.models.RedisConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RedisConfiguration>
public final class RedisConfiguration
extends Object
implements com.azure.json.JsonSerializable<RedisConfiguration>
All Redis Settings. Few possible keys:
rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,
maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0,
aof-storage-connection-string-1 etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the aadEnabled property: Specifies whether AAD based authentication has been enabled or disabled for the cache.Get the additionalProperties property: All Redis Settings.Get the aofBackupEnabled property: Specifies whether the aof backup is enabled.Get the aofStorageConnectionString0 property: First storage account connection string.Get the aofStorageConnectionString1 property: Second storage account connection string.Get the authnotrequired property: Specifies whether the authentication is disabled.static RedisConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RedisConfiguration from the JsonReader.Get the maxclients property: The max clients config.Get the maxfragmentationmemoryReserved property: Value in megabytes reserved for fragmentation per shard.Get the maxmemoryDelta property: Value in megabytes reserved for non-cache usage per shard e.g. failover.Get the maxmemoryPolicy property: The eviction strategy used when your data won't fit within its memory limit.Get the maxmemoryReserved property: Value in megabytes reserved for non-cache usage per shard e.g. failover.Get the notifyKeyspaceEvents property: The keyspace events which should be monitored.Get the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.Get the preferredDataPersistenceAuthMethod property: Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.Get the rdbBackupEnabled property: Specifies whether the rdb backup is enabled.Get the rdbBackupFrequency property: Specifies the frequency for creating rdb backup in minutes.Get the rdbBackupMaxSnapshotCount property: Specifies the maximum number of snapshots for rdb backup.Get the rdbStorageConnectionString property: The storage account connection string for storing rdb file.Get the storageSubscriptionId property: SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAadEnabled
(String aadEnabled) Set the aadEnabled property: Specifies whether AAD based authentication has been enabled or disabled for the cache.withAdditionalProperties
(Map<String, String> additionalProperties) Set the additionalProperties property: All Redis Settings.withAofBackupEnabled
(String aofBackupEnabled) Set the aofBackupEnabled property: Specifies whether the aof backup is enabled.withAofStorageConnectionString0
(String aofStorageConnectionString0) Set the aofStorageConnectionString0 property: First storage account connection string.withAofStorageConnectionString1
(String aofStorageConnectionString1) Set the aofStorageConnectionString1 property: Second storage account connection string.withAuthnotrequired
(String authnotrequired) Set the authnotrequired property: Specifies whether the authentication is disabled.withMaxfragmentationmemoryReserved
(String maxfragmentationmemoryReserved) Set the maxfragmentationmemoryReserved property: Value in megabytes reserved for fragmentation per shard.withMaxmemoryDelta
(String maxmemoryDelta) Set the maxmemoryDelta property: Value in megabytes reserved for non-cache usage per shard e.g. failover.withMaxmemoryPolicy
(String maxmemoryPolicy) Set the maxmemoryPolicy property: The eviction strategy used when your data won't fit within its memory limit.withMaxmemoryReserved
(String maxmemoryReserved) Set the maxmemoryReserved property: Value in megabytes reserved for non-cache usage per shard e.g. failover.withNotifyKeyspaceEvents
(String notifyKeyspaceEvents) Set the notifyKeyspaceEvents property: The keyspace events which should be monitored.withPreferredDataPersistenceAuthMethod
(String preferredDataPersistenceAuthMethod) Set the preferredDataPersistenceAuthMethod property: Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.withRdbBackupEnabled
(String rdbBackupEnabled) Set the rdbBackupEnabled property: Specifies whether the rdb backup is enabled.withRdbBackupFrequency
(String rdbBackupFrequency) Set the rdbBackupFrequency property: Specifies the frequency for creating rdb backup in minutes.withRdbBackupMaxSnapshotCount
(String rdbBackupMaxSnapshotCount) Set the rdbBackupMaxSnapshotCount property: Specifies the maximum number of snapshots for rdb backup.withRdbStorageConnectionString
(String rdbStorageConnectionString) Set the rdbStorageConnectionString property: The storage account connection string for storing rdb file.withStorageSubscriptionId
(String storageSubscriptionId) Set the storageSubscriptionId property: SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.Get the zonalConfiguration property: Zonal Configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RedisConfiguration
public RedisConfiguration()Creates an instance of RedisConfiguration class.
-
-
Method Details
-
rdbBackupEnabled
Get the rdbBackupEnabled property: Specifies whether the rdb backup is enabled.- Returns:
- the rdbBackupEnabled value.
-
withRdbBackupEnabled
Set the rdbBackupEnabled property: Specifies whether the rdb backup is enabled.- Parameters:
rdbBackupEnabled
- the rdbBackupEnabled value to set.- Returns:
- the RedisConfiguration object itself.
-
rdbBackupFrequency
Get the rdbBackupFrequency property: Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440).- Returns:
- the rdbBackupFrequency value.
-
withRdbBackupFrequency
Set the rdbBackupFrequency property: Specifies the frequency for creating rdb backup in minutes. Valid values: (15, 30, 60, 360, 720, 1440).- Parameters:
rdbBackupFrequency
- the rdbBackupFrequency value to set.- Returns:
- the RedisConfiguration object itself.
-
rdbBackupMaxSnapshotCount
Get the rdbBackupMaxSnapshotCount property: Specifies the maximum number of snapshots for rdb backup.- Returns:
- the rdbBackupMaxSnapshotCount value.
-
withRdbBackupMaxSnapshotCount
Set the rdbBackupMaxSnapshotCount property: Specifies the maximum number of snapshots for rdb backup.- Parameters:
rdbBackupMaxSnapshotCount
- the rdbBackupMaxSnapshotCount value to set.- Returns:
- the RedisConfiguration object itself.
-
rdbStorageConnectionString
Get the rdbStorageConnectionString property: The storage account connection string for storing rdb file.- Returns:
- the rdbStorageConnectionString value.
-
withRdbStorageConnectionString
Set the rdbStorageConnectionString property: The storage account connection string for storing rdb file.- Parameters:
rdbStorageConnectionString
- the rdbStorageConnectionString value to set.- Returns:
- the RedisConfiguration object itself.
-
aofBackupEnabled
Get the aofBackupEnabled property: Specifies whether the aof backup is enabled.- Returns:
- the aofBackupEnabled value.
-
withAofBackupEnabled
Set the aofBackupEnabled property: Specifies whether the aof backup is enabled.- Parameters:
aofBackupEnabled
- the aofBackupEnabled value to set.- Returns:
- the RedisConfiguration object itself.
-
aofStorageConnectionString0
Get the aofStorageConnectionString0 property: First storage account connection string.- Returns:
- the aofStorageConnectionString0 value.
-
withAofStorageConnectionString0
Set the aofStorageConnectionString0 property: First storage account connection string.- Parameters:
aofStorageConnectionString0
- the aofStorageConnectionString0 value to set.- Returns:
- the RedisConfiguration object itself.
-
aofStorageConnectionString1
Get the aofStorageConnectionString1 property: Second storage account connection string.- Returns:
- the aofStorageConnectionString1 value.
-
withAofStorageConnectionString1
Set the aofStorageConnectionString1 property: Second storage account connection string.- Parameters:
aofStorageConnectionString1
- the aofStorageConnectionString1 value to set.- Returns:
- the RedisConfiguration object itself.
-
maxfragmentationmemoryReserved
Get the maxfragmentationmemoryReserved property: Value in megabytes reserved for fragmentation per shard.- Returns:
- the maxfragmentationmemoryReserved value.
-
withMaxfragmentationmemoryReserved
Set the maxfragmentationmemoryReserved property: Value in megabytes reserved for fragmentation per shard.- Parameters:
maxfragmentationmemoryReserved
- the maxfragmentationmemoryReserved value to set.- Returns:
- the RedisConfiguration object itself.
-
maxmemoryPolicy
Get the maxmemoryPolicy property: The eviction strategy used when your data won't fit within its memory limit.- Returns:
- the maxmemoryPolicy value.
-
withMaxmemoryPolicy
Set the maxmemoryPolicy property: The eviction strategy used when your data won't fit within its memory limit.- Parameters:
maxmemoryPolicy
- the maxmemoryPolicy value to set.- Returns:
- the RedisConfiguration object itself.
-
maxmemoryReserved
Get the maxmemoryReserved property: Value in megabytes reserved for non-cache usage per shard e.g. failover.- Returns:
- the maxmemoryReserved value.
-
withMaxmemoryReserved
Set the maxmemoryReserved property: Value in megabytes reserved for non-cache usage per shard e.g. failover.- Parameters:
maxmemoryReserved
- the maxmemoryReserved value to set.- Returns:
- the RedisConfiguration object itself.
-
maxmemoryDelta
Get the maxmemoryDelta property: Value in megabytes reserved for non-cache usage per shard e.g. failover.- Returns:
- the maxmemoryDelta value.
-
withMaxmemoryDelta
Set the maxmemoryDelta property: Value in megabytes reserved for non-cache usage per shard e.g. failover.- Parameters:
maxmemoryDelta
- the maxmemoryDelta value to set.- Returns:
- the RedisConfiguration object itself.
-
maxclients
Get the maxclients property: The max clients config.- Returns:
- the maxclients value.
-
notifyKeyspaceEvents
Get the notifyKeyspaceEvents property: The keyspace events which should be monitored.- Returns:
- the notifyKeyspaceEvents value.
-
withNotifyKeyspaceEvents
Set the notifyKeyspaceEvents property: The keyspace events which should be monitored.- Parameters:
notifyKeyspaceEvents
- the notifyKeyspaceEvents value to set.- Returns:
- the RedisConfiguration object itself.
-
preferredDataArchiveAuthMethod
Get the preferredDataArchiveAuthMethod property: Preferred auth method to communicate to storage account used for data archive, specify SAS or ManagedIdentity, default value is SAS.- Returns:
- the preferredDataArchiveAuthMethod value.
-
preferredDataPersistenceAuthMethod
Get the preferredDataPersistenceAuthMethod property: Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.- Returns:
- the preferredDataPersistenceAuthMethod value.
-
withPreferredDataPersistenceAuthMethod
public RedisConfiguration withPreferredDataPersistenceAuthMethod(String preferredDataPersistenceAuthMethod) Set the preferredDataPersistenceAuthMethod property: Preferred auth method to communicate to storage account used for data persistence, specify SAS or ManagedIdentity, default value is SAS.- Parameters:
preferredDataPersistenceAuthMethod
- the preferredDataPersistenceAuthMethod value to set.- Returns:
- the RedisConfiguration object itself.
-
zonalConfiguration
Get the zonalConfiguration property: Zonal Configuration.- Returns:
- the zonalConfiguration value.
-
authnotrequired
Get the authnotrequired property: Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view.- Returns:
- the authnotrequired value.
-
withAuthnotrequired
Set the authnotrequired property: Specifies whether the authentication is disabled. Setting this property is highly discouraged from security point of view.- Parameters:
authnotrequired
- the authnotrequired value to set.- Returns:
- the RedisConfiguration object itself.
-
storageSubscriptionId
Get the storageSubscriptionId property: SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.- Returns:
- the storageSubscriptionId value.
-
withStorageSubscriptionId
Set the storageSubscriptionId property: SubscriptionId of the storage account for persistence (aof/rdb) using ManagedIdentity.- Parameters:
storageSubscriptionId
- the storageSubscriptionId value to set.- Returns:
- the RedisConfiguration object itself.
-
aadEnabled
Get the aadEnabled property: Specifies whether AAD based authentication has been enabled or disabled for the cache.- Returns:
- the aadEnabled value.
-
withAadEnabled
Set the aadEnabled property: Specifies whether AAD based authentication has been enabled or disabled for the cache.- Parameters:
aadEnabled
- the aadEnabled value to set.- Returns:
- the RedisConfiguration object itself.
-
additionalProperties
Get the additionalProperties property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the RedisConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RedisConfiguration>
- Throws:
IOException
-
fromJson
Reads an instance of RedisConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RedisConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RedisConfiguration.
-